/* ==========================================================
   Top Properties Bienes Raíces — hoja de estilos
   ========================================================== */
:root {
  --navy: #0F2036;
  --navy-2: #142440;
  --navy-deep: #0B1526;
  --gold: #C6A15B;
  --gold-soft: #E4CFA0;
  --teal: #2FA8A0;
  --teal-dark: #1F7A74;
  --teal-bg: #EEF6F5;
  --ivory: #FAF8F4;
  --sand: #F3EFE7;
  --line: #E7E2D8;
  --ink: #1C1C1C;
  --text: #4A4F58;
  --muted: #6B6F76;
  --light: #9BAEC2;
  --wa: #25D366;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(20, 36, 64, .06);
  --shadow-lg: 0 24px 48px rgba(15, 32, 54, .18);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--navy-2); }
h1, h2 { font-family: var(--serif); font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

.wrap { width: 100%; max-width: 1328px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.pt-0 { padding-top: 0 !important; }
.pb-section { padding-bottom: 100px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); border-radius: 10px; }
.btn-gold:hover { background: #d3b173; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fbd59; }
.btn-outline { border-color: var(--navy-2); color: var(--navy-2); background: transparent; }
.btn-outline:hover { background: var(--navy-2); color: #fff; }
.btn-outline:hover svg { stroke: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #E6EAF0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 23px; color: #fff; letter-spacing: .02em; }
.brand-sub { font-size: 10px; letter-spacing: .22em; color: #7C93AC; margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.main-nav > a { padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav > a:hover { color: #fff; }
.main-nav > a.is-active { color: var(--gold); border-color: var(--gold); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #0B1526 0%, #123A5E 55%, #175C63 100%); color: #fff; padding: 110px 0 150px; text-align: center; }
.hero-deco { position: absolute; right: -80px; top: -120px; width: 620px; height: 620px; border: 1.5px solid rgba(198,161,91,.22); border-radius: 50%; box-shadow: inset 0 0 0 70px transparent, 0 0 0 70px rgba(198,161,91,.06); pointer-events: none; }
.hero-inner { position: relative; max-width: 860px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); margin: 18px 0; }
.hero-lead { color: #C9D6E0; font-size: 17px; max-width: 580px; margin: 0 auto; }
.hero-lead.small { font-size: 14px; color: var(--light); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--teal); }
.eyebrow-gold { color: var(--gold); letter-spacing: .3em; }

.page-hero { background: var(--navy); color: #fff; text-align: center; padding: 80px 0 88px; border-top: 1px solid rgba(255,255,255,.06); }
.page-hero.compact { padding: 64px 0 70px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); max-width: 900px; margin: 16px auto; }
.hero-mono { height: 84px; width: auto; margin: 0 auto 14px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Buscador ---------- */
.search-wrap { position: relative; z-index: 3; margin-top: -84px; max-width: 1228px; }
.search-card { padding: 28px 32px; box-shadow: var(--shadow-lg); border: 0; }
.op-toggle { border: 0; padding: 0; margin: 0 0 20px; display: flex; gap: 8px; }
.op-toggle label { cursor: pointer; }
.op-toggle input { position: absolute; opacity: 0; }
.op-toggle span { display: inline-block; padding: 10px 24px; border-radius: 999px; background: #F1EEE7; color: #5B6070; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.op-toggle input:checked + span { background: var(--navy); color: #fff; }
.op-toggle input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.op-toggle.small span { padding: 9px 14px; font-size: 12px; }
.search-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.search-fields .field { margin: 0; }
.field label, .field .label, .field legend { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5B6070; }
.form-card .field label, .contact-card .field label { color: var(--navy-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #FCFBF9; padding: 0 14px; font-size: 15px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(198,161,91,.25); }
.field.has-error input { border-color: #B4332A; }
.field-error { color: #B4332A; font-size: 13px; }
.req { color: #B4332A; }
.check { display: flex !important; gap: 10px; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 14px !important; color: var(--text) !important; line-height: 1.5; cursor: pointer; }
.check input { width: 20px !important; height: 20px; min-height: 0 !important; margin-top: 1px; accent-color: var(--gold); flex-shrink: 0; }
.check a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-sub { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--teal); text-transform: uppercase; margin: 8px 0 14px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.alert-ok { background: #E6F4EA; color: #1E6B35; }
.alert-err { background: #FBEAEA; color: #8E2A22; }

/* ---------- Tarjetas y rejillas ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); margin: 12px 0; }
.lead { color: var(--muted); font-size: 16px; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead, .section-navy p { color: var(--light); }
.section-sand { background: var(--sand); }

/* ---------- Propiedad (tarjeta) ---------- */
.prop-card { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.prop-card:hover { box-shadow: 0 14px 30px rgba(15,32,54,.12); transform: translateY(-2px); }
.prop-media { position: relative; display: block; aspect-ratio: 16 / 11; background: linear-gradient(135deg, #123A5E, #2FA8A0); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; }
.prop-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; }
.tag.static { position: static; }
.tag-gold { background: var(--gold); color: var(--navy); }
.tag-teal { background: var(--teal-dark); color: #fff; }
.tag-360 { left: auto; right: 14px; display: inline-flex; align-items: center; gap: 5px; background: rgba(15,32,54,.88); color: #fff; }
.tour-pill { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tour-pill:hover { filter: brightness(1.05); }
.embed.tour { aspect-ratio: 16 / 10; }
h2#tour360 { display: flex; align-items: center; gap: 8px; scroll-margin-top: 100px; }
.chips span svg { vertical-align: -2px; margin-right: 4px; }
.prop-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prop-loc { display: flex; align-items: center; gap: 6px; color: #7A7F87; font-size: 12px; }
.prop-loc.big { font-size: 15px; }
.prop-title { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.3; }
.prop-title a:hover { color: var(--teal-dark); }
.prop-feats { display: flex; flex-wrap: wrap; gap: 14px; color: #5B6070; font-size: 13px; }
.prop-feats span { display: flex; align-items: center; gap: 5px; }
.prop-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #EEEAE1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prop-price { font-family: var(--serif); font-size: 19px; color: var(--navy); }
.more { display: flex; align-items: center; gap: 4px; color: var(--teal-dark); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.empty { padding: 48px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.empty h2 { font-size: 24px; }
.empty-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Por qué elegirnos ---------- */
.why > div { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.why h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; }
.why p { font-size: 14px; }
.round-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(198,161,91,.15); display: flex; align-items: center; justify-content: center; }

/* ---------- Testimonio ---------- */
.testimonial { background: #fff; border-bottom: 1px solid #EEEAE1; }
.quote-mark { margin: 0 auto 20px; }
.testimonial blockquote { margin: 0 auto; max-width: 720px; }
.testimonial blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 25px); color: var(--navy-2); line-height: 1.6; }
.testimonial blockquote footer { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.stats { display: flex; justify-content: center; gap: 70px; flex-wrap: wrap; margin: 56px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1; }
.stats dt { font-size: 12px; color: #7A7F87; letter-spacing: .06em; }

/* Reseñas de Google */
.g-reviews { background: var(--sand, #F8F6F1); }
.g-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.g-head h2 { margin: 6px 0 0; font-size: clamp(28px, 3.2vw, 38px); }
.g-score { display: flex; align-items: center; gap: 14px; }
.g-score strong { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--navy); }
.g-score > div { display: flex; flex-direction: column; gap: 4px; }
.stars { display: inline-flex; gap: 2px; }
.g-card { margin: 0; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.g-card blockquote { margin: 0; flex: 1; }
.g-card blockquote p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--navy-2, #1B3350); }
.g-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.g-card figcaption img, .g-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.g-avatar { display: grid; place-items: center; background: var(--teal-dark); color: #fff; font-weight: 700; }
.g-card figcaption span { display: flex; flex-direction: column; font-size: 14px; }
.g-card figcaption a, .g-card figcaption strong { font-weight: 700; color: var(--navy); text-decoration: none; }
.g-card figcaption a:hover { text-decoration: underline; }
.g-card small { color: var(--muted); font-size: 12px; }
.g-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.g-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 36px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-cta h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.g-cta p { margin: 0; max-width: 560px; line-height: 1.6; }
.g-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.g-qr img { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--line); padding: 6px; background: #fff; }
@media (max-width: 720px) {
  .g-cta { flex-direction: column; text-align: center; padding: 24px 20px; }
  .g-cta .g-actions { justify-content: center; }
  .g-qr img { width: 190px; height: 190px; }
}
/* Únete */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { padding: 34px 32px; }
.mv-card.dark { background: var(--navy); border-color: var(--navy); }
.mv-card.dark h2, .mv-card.dark p { color: #fff; }
.mv-card h2 { font-size: 26px; margin: 14px 0 12px; }
.mv-card p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--navy-2); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-card { padding: 26px 20px; text-align: center; }
.value-card .num { display: block; font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.value-card h3 { font-size: 18px; margin: 14px 0 8px; }
.value-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.value-card .round-icon { margin: 0 auto; }
.profile-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.profile-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.profile-list svg { flex: none; margin-top: 4px; }
@media (max-width: 1080px) { .values { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .mv-grid, .values { grid-template-columns: 1fr; } }
.g-actions .btn svg { vertical-align: -3px; }

/* ---------- Listado ---------- */
.page-bar { padding: 30px 0 0; }
.crumbs { font-size: 13px; color: #7A7F87; margin-bottom: 14px; }
.crumbs a:hover { color: var(--teal-dark); }
.crumbs span { color: var(--navy-2); font-weight: 600; }
.page-bar-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-bar h1 { font-size: clamp(26px, 3vw, 34px); }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-form select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.listing { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 90px; }
.filters { padding: 26px; position: sticky; top: 108px; }
.filters .op-toggle { flex-wrap: wrap; }
.range { display: flex; align-items: center; gap: 8px; }
.chips { border: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.chips input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--gold); }
.clear-link { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.filters-toggle { display: none; }
.results-grid { gap: 24px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.pager span { border: 0; background: none; }
.pager a.is-current { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }

/* ---------- Detalle ---------- */
.detail { padding-bottom: 90px; }
.gallery { margin-top: 10px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #0B1526; aspect-ratio: 16 / 8; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gal-nav.prev { left: 16px; } .gal-nav.next { right: 16px; }
.gal-count { position: absolute; right: 16px; bottom: 16px; background: rgba(15,32,54,.75); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 110px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .7; background: none; }
.gallery-thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; margin-top: 32px; align-items: start; }
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.detail-title { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 10px; }
.detail-price { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--navy); margin: 16px 0 6px; }
.ops-list { margin: 0 0 10px; padding-left: 18px; color: var(--text); }
.spec-grid { list-style: none; padding: 0; margin: 26px 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.spec-grid li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.spec-grid strong { font-size: 18px; color: var(--navy-2); margin-top: 6px; }
.spec-grid span { font-size: 12px; color: var(--muted); }
.h3 { font-family: var(--serif); font-size: 24px; margin: 36px 0 16px; }
.prose { color: var(--text); font-size: 16px; line-height: 1.8; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.amenities li { display: flex; gap: 8px; align-items: center; color: var(--text); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #E9ECE6; }
.embed.map { aspect-ratio: 16 / 8; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nom-note { display: flex; gap: 14px; background: var(--teal-bg); border-radius: 12px; padding: 18px 20px; margin-top: 40px; font-size: 14px; color: var(--text); }
.nom-note svg { flex-shrink: 0; margin-top: 2px; }
.nom-note a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
.detail-side { position: sticky; top: 108px; }
.contact-card { padding: 28px; }
.contact-card .h3 { margin: 0 0 18px; font-size: 22px; }
.contact-card .btn { margin-bottom: 10px; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 16px; }

/* ---------- Nosotros ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.two-col.top { align-items: start; }
.two-col h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 14px; }
.story p:not(.eyebrow) { color: var(--text); margin-top: 20px; line-height: 1.8; }
.stat-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.stat-card strong { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.stat-card .t { font-weight: 700; font-size: 14px; color: var(--navy-2); }
.stat-card .d { font-size: 13px; color: var(--muted); line-height: 1.6; }
.stat-card.dark { background: var(--navy); border-color: var(--navy); }
.stat-card.dark .t { color: #fff; }
.stat-card.dark .d { color: var(--light); }
.group-photo { width: 100%; border-radius: 24px; box-shadow: 0 24px 48px rgba(15,32,54,.14); }
.member { overflow: hidden; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.member-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.member h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.member .muted { font-size: 13px; }
.badge-line { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--teal-dark); }
.feature-card { padding: 32px 26px; display: flex; flex-direction: column; gap: 12px; }
.feature-card h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; }
.feature-card p { color: #5B6070; font-size: 14px; line-height: 1.7; }
.icon-box { width: 64px; height: 64px; border-radius: 16px; background: var(--teal-bg); display: flex; align-items: center; justify-content: center; }
.icon-box.small { width: 48px; height: 48px; border-radius: 12px; }

/* ---------- NOM-247 ---------- */
.contract-box { background: var(--navy); border-radius: 24px; padding: 52px 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff; }
.contract-info { display: flex; gap: 26px; align-items: center; }
.contract-box h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.contract-box p { color: var(--light); font-size: 14px; max-width: 580px; }
.contract-box .reg { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .06em; margin-top: 10px; }
.pdf-icon { flex-shrink: 0; width: 88px; height: 108px; border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.pdf-icon span { font-size: 11px; font-weight: 700; color: #B4332A; letter-spacing: .06em; }

/* ---------- Formularios de página ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; scroll-margin-top: 110px; }
.form-card { padding: 44px; }
.form-card h2 { font-size: 28px; margin-bottom: 22px; }
.side-dark { background: var(--navy); border: 0; padding: 42px 38px; color: #fff; display: flex; flex-direction: column; gap: 26px; }
.side-dark h2 { color: #fff; font-size: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps li { display: flex; gap: 16px; }
.steps li > span { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--serif); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { color: #fff; font-size: 16px; }
.steps p { color: var(--light); font-size: 14px; margin-top: 4px; }
.ticks { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 12px; color: #E6EAF0; font-size: 14px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.sq { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: rgba(198,161,91,.15); display: flex; align-items: center; justify-content: center; }
.info-list .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.info-list p { color: #fff; }
.map-box { position: relative; height: 460px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #E9ECE6; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.map-card { position: absolute; left: 24px; bottom: 24px; background: #fff; border-radius: 14px; padding: 18px 22px; box-shadow: 0 12px 32px rgba(15,32,54,.16); display: flex; align-items: center; gap: 22px; }
.map-card strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--navy-2); }
.map-card span { font-size: 13px; color: #5B6070; }

/* ---------- Aviso ---------- */
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { padding: 26px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; position: sticky; top: 108px; }
.toc-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #7A7F87; text-transform: uppercase; }
.toc a { color: var(--navy-2); }
.toc a:hover { color: var(--teal-dark); }
.legal { padding: 52px 56px; display: flex; flex-direction: column; gap: 34px; }
.legal > div { scroll-margin-top: 110px; }
.legal h2 { font-size: 24px; margin-bottom: 14px; }
.legal h3 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; font-family: var(--sans); }
.legal a { color: var(--teal-dark); font-weight: 600; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-deep); color: #8FA2B8; padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.footer-logo { height: 110px; width: auto; }
.footer-about { margin-top: 14px; max-width: 300px; line-height: 1.7; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.social a:hover { background: rgba(255,255,255,.18); }
.footer-title { font-family: var(--sans); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #7B8EA4; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: #fff; }
.strong-link { color: #E6EAF0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1360px) {
  .main-nav { gap: 26px; }
  .header-phone span { display: none; }
}
@media (max-width: 1200px) {
  .main-nav { gap: 20px; }
  .header-phone span { display: none; }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-fields .btn { grid-column: 1 / -1; }
  .listing { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; justify-self: start; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .form-layout { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contract-box { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}

@media (max-width: 1060px) {
  .header-inner { min-height: 70px; }
  .brand img { height: 40px; }
  .brand-name { font-size: 19px; }
  .brand-sub { display: none; }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .header-actions .btn-wa { padding: 0 14px; min-height: 40px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 30px rgba(0,0,0,.25); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
  .main-nav > a.is-active { border-color: rgba(255,255,255,.08); }
  .nav-mobile-extra { display: block; padding-top: 18px; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .toc, .detail-side { top: 88px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .header-actions .btn-wa span { display: none; }
  .hero { padding: 64px 0 110px; }
  .search-wrap { margin-top: -70px; }
  .search-card { padding: 22px 18px; }
  .search-fields, .row-2, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .member-body { padding: 14px; }
  .member h3 { font-size: 16px; }
  .badge-line { font-size: 10px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .stats { gap: 30px 40px; }
  .page-hero { padding: 56px 0 60px; }
  .form-card, .side-dark, .legal { padding: 28px 20px; }
  .contract-info { flex-direction: column; align-items: flex-start; }
  .map-box { height: 420px; }
  .map-card { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .gal-nav { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .pb-section { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
