:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --ink: #10243f;
  --muted: #445c7d;
  --brand: #0d3566;
  --brand-deep: #08254a;
  --accent: #5cc20f;
  --accent-deep: #3a8d09;
  --line: #d5e1ee;
  --ok: #1f8a34;
  --shadow: 0 20px 50px rgba(8, 37, 74, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, #d7e7ff 0%, transparent 40%),
    radial-gradient(circle at 95% 5%, #d8ffd2 0%, transparent 35%),
    var(--bg);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(243, 247, 252, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand-logo {
  width: clamp(170px, 24vw, 290px);
  height: auto;
  display: block;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.main-nav a.btn {
  color: #fff;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s transform ease, 0.2s background ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--brand-deep);
}

.btn-ghost {
  color: var(--brand);
  background: transparent;
  border-color: #a8bdd8;
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--brand);
}

.btn-sm {
  min-height: 2.3rem;
  padding-inline: 0.95rem;
}

.section {
  padding: 5.5rem 0;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 6.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow {
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 54ch;
  color: var(--muted);
  margin-bottom: 1.65rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-panel {
  background: linear-gradient(150deg, #ffffff, #eef5ff);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.hero-panel li + li {
  margin-top: 0.4rem;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.orb-1 {
  width: 260px;
  height: 260px;
  left: -90px;
  top: 60px;
  background: rgba(13, 53, 102, 0.2);
}

.orb-2 {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: 20px;
  background: rgba(92, 194, 15, 0.28);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  margin-bottom: 2.4rem;
}

.featured-note {
  margin-bottom: 1rem;
  color: var(--muted);
}

.catalog-head {
  margin-top: 0.5rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-photo {
  height: 175px;
  position: relative;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo .status-badge {
  top: 0.55rem;
  left: 0.55rem;
}

.photo-1 {
  background: linear-gradient(150deg, #24528c, #0d3566);
}

.photo-2 {
  background: linear-gradient(150deg, #4f9f1a, #2d7609);
}

.photo-3 {
  background: linear-gradient(150deg, #7fb1e6, #2b5f98);
}

.card-body {
  padding: 1rem;
}

.card-body h3 {
  margin-bottom: 0.2rem;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.listing-card {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.listing-media {
  position: relative;
  margin: 0;
  height: 220px;
  background: #dce7f5;
  cursor: pointer;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-disponible {
  background: #e8ffe7;
  color: #1b7a2f;
  border-color: #8de49f;
}

.status-arrendado {
  background: #eaf2ff;
  color: #0f3e73;
  border-color: #a8c3e8;
}

.status-vendido {
  background: #ffeaea;
  color: #8b1e1e;
  border-color: #f2b0b0;
}

.status-en-proceso {
  background: #fff6dc;
  color: #885d00;
  border-color: #eacb76;
}

.listing-body {
  padding: 0.95rem;
}

.listing-body h3 {
  margin-bottom: 0.45rem;
}

.listing-meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0.45rem;
}

.listing-price {
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 0.45rem;
}

.listing-description {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.listing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.listing-features span {
  font-size: 0.78rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  border: 1px solid #c4d4e6;
  color: #1a3f6d;
  background: #f4f9ff;
}

.listing-action {
  margin-top: 0.8rem;
}

.property-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.property-modal.open {
  display: block;
}

.property-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 34, 0.62);
  backdrop-filter: blur(3px);
}

.property-modal-card {
  position: relative;
  width: min(1020px, calc(100% - 2rem));
  margin: 2.4rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  z-index: 1;
  overflow: visible;
}

.property-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border: 1px solid #0b2f58;
  background: #0d3566;
  color: #fff;
  border-radius: 0.75rem;
  min-height: 2.35rem;
  padding: 0.38rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.property-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 520px;
  padding-top: 1.1rem;
}

.property-modal-figure {
  margin: 0;
  padding: 0.9rem;
  border-right: 1px solid var(--line);
  position: relative;
}

.property-modal-figure > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.85rem;
}

.property-modal-nav {
  position: absolute;
  top: calc(50% - 1.2rem);
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(13, 53, 102, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0d3566;
  font-size: 1.55rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.property-modal-nav:hover {
  background: #ffffff;
}

.property-modal-nav-prev {
  left: 1.3rem;
}

.property-modal-nav-next {
  right: 1.3rem;
}

.property-modal-figure .status-badge {
  left: 1.4rem;
  top: 1.4rem;
}

.property-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.property-thumb {
  border: 1px solid #b8cbe2;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.property-thumb img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  display: block;
}

.property-thumb.active {
  border-color: var(--brand);
  outline: 2px solid rgba(13, 53, 102, 0.24);
}

.property-modal-body {
  padding: 1rem 1rem 1.1rem;
  overflow-y: auto;
}

.property-modal-code {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.property-modal-meta {
  color: var(--muted);
  margin-block: 0.55rem;
}

.property-modal-price {
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 0.55rem;
}

.property-modal-description {
  color: #26496f;
  margin-bottom: 0.8rem;
  white-space: pre-line;
}

.band {
  background: linear-gradient(180deg, #ecf3fb, #f3f7fc);
  border-block: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.services-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.services-grid h3 {
  margin-bottom: 0.4rem;
}

.services-grid p {
  color: var(--muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  padding: 1.35rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

cite {
  display: block;
  margin-top: 0.8rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: normal;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.contact-direct {
  margin-top: 0.6rem;
  color: var(--brand-deep);
  font-weight: 600;
}

.contact-direct a {
  color: inherit;
  text-decoration-color: rgba(13, 53, 102, 0.35);
}

.wa-quick-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wa-quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid #30a741;
  background: #eaffed;
  color: #11652b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.wa-quick-links a:hover {
  background: #dcffe2;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid #259c23;
  background: linear-gradient(160deg, #31c44a, #259c23);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(17, 89, 34, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.68rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #b7cbe1;
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(92, 194, 15, 0.35);
  border-color: var(--accent);
}

.form-msg {
  margin-top: 0.45rem;
  color: var(--ok);
  font-weight: 600;
  min-height: 1.1rem;
}

.form-msg.error {
  color: #a11212;
}

.form-msg.loading {
  color: var(--brand);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .hero-grid,
  .cards,
  .listing-grid,
  .services-grid,
  .testimonials,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 1.25rem;
    background: #f3f7fc;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    min-width: 210px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.4rem 0.72rem;
    font-weight: 700;
    color: var(--brand);
  }

  .property-modal-card {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
    overflow: visible;
  }

  .property-modal-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .property-modal-figure {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .property-modal-figure > img {
    height: 260px;
  }

  .property-modal-nav {
    top: 1.35rem;
  }

  .property-modal-nav-prev {
    left: 1.35rem;
  }

  .property-modal-nav-next {
    right: 1.35rem;
  }

  .property-modal-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .property-modal-close {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 60;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
