/* ==========================================================================
   Comin Capital — hoja de estilos
   Colores del Brandbook 2026 (dos familias): Océano #085888 · Cielo #CFE3EF · Hielo #EAF3F8
   y Bermellón #C23B0B · Rubor #F4CFC3. Bermellón nunca es fondo: solo resalta cifras, símbolos
   y palabras clave. Sobre Océano el texto va en Hielo y lo importante en blanco.
   (Los nombres de variables --navy/--gold se conservan para no tocar el resto del CSS.)
   ========================================================================== */

:root {
  --navy: #085888;          /* Océano */
  --navy-2: #074b75;        /* Océano un tono más profundo (pie y degradados) */
  --navy-3: #0b67a0;        /* Océano un tono más claro (hover) */
  --gold: #f4cfc3;          /* Rubor: acento sobre fondos Océano */
  --gold-ink: #c23b0b;      /* Bermellón: cifras, símbolos y palabras clave sobre claro */
  --gold-soft: #cfe3ef;     /* Cielo */
  --white: #ffffff;
  --cream: #eaf3f8;         /* Hielo: fondo alterno */
  --gray: #cfe3ef;          /* Cielo */
  --ink: #085888;
  --text: #34506a;
  --muted: #64809a;
  --line: #d6e5ef;
  --line-dark: rgba(255, 255, 255, .14);
  --ok: #2f7a55;
  --err: #b3413b;

  --f-head: "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-label: "Barlow", "Manrope", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(8, 88, 136, .05), 0 10px 30px -12px rgba(8, 88, 136, .16);
  --shadow-lg: 0 30px 60px -30px rgba(8, 88, 136, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; }

/* ---------- Tipografía ---------- */
.label {
  display: inline-block; font-family: var(--f-label); font-weight: 600;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink);
}
.dark .label { color: var(--gold); }
.h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--text); max-width: 58ch; }
.hl { color: var(--gold-ink); }
.dark .hl, .page-hero .hl { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-head); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-3); box-shadow: 0 10px 24px -10px rgba(8, 88, 136, .6); }
.btn-gold { background: var(--white); color: var(--navy); }
.btn-gold:hover { background: var(--cream); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--navy); }
.dark .btn-line, .page-hero .btn-line, .cta-band .btn-line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }
.dark .btn-line:hover, .page-hero .btn-line:hover, .cta-band .btn-line:hover { border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; }
.link svg { width: 16px; height: 16px; transition: transform .2s; }
.link:hover svg { transform: translateX(4px); }
.dark .link { color: var(--gold); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(8, 88, 136, .35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn) {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s, color .2s;
  white-space: nowrap;
}
@media (min-width: 1041px) and (max-width: 1320px) {
  .nav > a:not(.btn) { padding: 10px 9px; font-size: 14px; }
  .nav .btn { margin-left: 6px; }
}
.nav > a:not(.btn):hover { background: var(--gray); }
.nav > a[aria-current="page"] { color: var(--gold-ink); }
.nav .btn { margin-left: 12px; }
.nav-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-contact { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; top: 72px; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--white); padding: 12px var(--gutter) 32px; border-top: 1px solid var(--line);
  }
  body.nav-open .nav { display: flex; }
  .nav > a:not(.btn) { padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .nav > a:not(.btn):hover { background: none; }
  .nav .btn { margin: 28px 0 0; min-height: 56px; }
  .nav-contact { display: grid; gap: 6px; margin-top: 24px; font-size: 15px; }
  .nav-contact a { text-decoration: none; color: var(--text); }
  .site-header .wrap { min-height: 72px; }
  .brand img { height: 26px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream { background: var(--cream); }
.bg-gray { background: var(--gray); }
.dark { background: var(--navy); color: rgba(255, 255, 255, .78); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark .lead { color: rgba(255, 255, 255, .78); }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head.center { margin-inline: auto; justify-items: center; text-align: center; }
.head.center .lead { margin-inline: auto; }

/* ---------- Hero de páginas interiores (foto a lo ancho) ---------- */
.page-hero { position: relative; color: var(--white); overflow: hidden; background: var(--navy);
  display: flex; align-items: center; min-height: clamp(480px, 66vh, 720px); }
.page-hero.hero-full { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); }
@media (max-width: 1040px) { .page-hero.hero-full { min-height: calc(100svh - 72px); } }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 58, 92, .94) 0%, rgba(5, 58, 92, .75) 50%, rgba(5, 58, 92, .3) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 110px); }
.page-hero .label a { color: inherit; }
.h1-post { font-size: clamp(32px, 4vw, 52px); max-width: 24ch !important; }
.page-hero h1 { color: var(--white); margin: 16px 0 20px; max-width: 17ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.h1-home { font-size: clamp(40px, 6vw, 76px); max-width: 15ch; }
.page-hero .lead { color: rgba(255, 255, 255, .86); }
.page-hero .label { color: var(--gold); }
@media (max-width: 700px) { .page-hero::after { background: rgba(5, 58, 92, .82); } }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 24px; text-align: center; }
.stat b { display: block; font-family: var(--f-head); font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Foto + texto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split-media img { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 4 / 5; }
.split-media.wide img { aspect-ratio: 4 / 3; }
.split h2 { margin: 16px 0 20px; }
.split .lead + .lead { margin-top: 16px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .split-media img, .split-media.wide img { aspect-ratio: 16 / 11; }
}

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 20px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 12px; align-content: start;
}
.bg-cream .card, .bg-gray .card { border-color: transparent; box-shadow: var(--shadow); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; margin-bottom: 8px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; }
.card p { font-size: 16px; }
.card.navy { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .8); }
.card.navy h3 { color: var(--white); }
.card.navy .ico { background: rgba(244, 207, 195, .16); color: var(--gold); }
.card.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-2); }
.card.gold h3 { color: var(--gold-ink); }
.card.gold .ico { background: rgba(8, 88, 136, .1); color: var(--navy); }
.dark .card { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); color: rgba(255, 255, 255, .75); box-shadow: none; }
.dark .card h3 { color: var(--white); }
.dark .card .ico { background: rgba(244, 207, 195, .14); color: var(--gold); }
@media (max-width: 1000px) { .cards.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .cards.c3, .cards.c2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards.c4 { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps.s3 { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.bg-cream .step { border-color: transparent; box-shadow: var(--shadow); }
.step .n { font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--gold-ink); }
.step h3 { font-size: 21px; }
.step p { font-size: 15.5px; }
.step.navy { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .8); }
.step.navy h3 { color: var(--white); }
.step.navy .n { color: var(--gold); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 7px; height: 2px; background: linear-gradient(90deg, var(--gold-ink), var(--navy)); }
.tl { text-align: center; position: relative; }
.tl i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-ink); margin: 0 auto 14px; box-shadow: 0 0 0 6px var(--cream); }
.tl:last-child i { background: var(--navy); }
.tl b { display: block; font-family: var(--f-head); color: var(--ink); font-size: 17px; }
.tl span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .steps.s3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-ink), var(--navy)); }
  .tl { text-align: left; padding-left: 36px; }
  .tl i { position: absolute; left: 0; top: 4px; margin: 0; }
}

/* ---------- Comparativa ---------- */
.compare { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; }
.compare-row > div { padding: 18px 24px; border-top: 1px solid var(--line); font-size: 15.5px; }
.compare-row:first-child > div { border-top: 0; }
.compare-row .k { font-weight: 700; color: var(--ink); }
.compare-row .us { background: var(--gold-soft); color: var(--ink); }
.compare-row .us b, .compare-row .them b { display: block; font-weight: 700; }
.compare-row .them { color: var(--muted); }
.compare-row .them b { color: var(--text); }
.compare-head > div { font-weight: 700; font-size: 14px; color: var(--muted); background: var(--white); align-self: stretch; }
.compare-head .us { background: var(--navy); color: var(--white); }
.compare-head .us small { display: block; font-family: var(--f-label); letter-spacing: .2em; font-size: 11px; color: var(--gold); text-transform: uppercase; }
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row .k { grid-column: 1 / -1; background: var(--gray); padding-block: 12px; }
  .compare-head .k { display: none; }
  .compare-row > div { padding: 14px 16px; font-size: 14.5px; }
}

/* ---------- Caso real ---------- */
.case-wrap { display: grid; grid-template-columns: .75fr 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.case-photo img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.case-box { border-radius: var(--r); padding: clamp(24px, 3vw, 32px); }
.case-box.before { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.case-box.after { background: var(--gold); color: var(--navy-2); }
.case-box h3 { font-family: var(--f-label); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.dark .case-box.before h3 { color: var(--gold-soft); }
.dark .case-box.after h3 { color: var(--gold-ink); }
.case-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.case-box li { padding-left: 22px; position: relative; font-size: 16.5px; }
.case-box li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.case-box.before li { color: rgba(255, 255, 255, .88); }
.case-box b { font-weight: 800; }
.case-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.case-facts li { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .9); }
@media (max-width: 960px) { .case-wrap { grid-template-columns: 1fr; } .case-photo { display: none; } }
@media (max-width: 700px) { .case { grid-template-columns: 1fr; } }

/* ---------- Escudo fiscal ---------- */
.tax { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tax-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.tax-card.us { border: 2px solid var(--gold-ink); }
.tax-card h3 { font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tax-card.us h3 { color: var(--gold-ink); }
.tax-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.tax-line b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tax-line small { display: block; color: var(--muted); font-size: 13px; }
.tax-total { margin-top: 18px; border-radius: var(--r-sm); padding: 16px 18px; background: var(--gray); }
.tax-card.us .tax-total { background: var(--gold); }
.tax-card.us .tax-total b { color: var(--gold-ink); }
.tax-total small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tax-total b { font-family: var(--f-head); font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.tax-banner { margin-top: 20px; background: var(--navy); color: rgba(255, 255, 255, .85); border-radius: var(--r); padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.tax-banner b { color: var(--gold); font-family: var(--f-head); font-size: 24px; }
.footnote { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 95ch; }
@media (max-width: 800px) { .tax { grid-template-columns: 1fr; } }

/* ---------- Barras "capital atrapado" ---------- */
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 32px); align-items: end; max-width: 860px; margin-inline: auto; }
.bar { display: grid; gap: 12px; align-content: end; text-align: center; }
.bar b { font-family: var(--f-head); font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.bar i { display: block; border-radius: 12px 12px 4px 4px; }
.bar.b1 i { height: 14px; background: var(--gold); }
.bar.b2 i { height: 110px; background: var(--navy-3); }
.bar.b3 i { height: 240px; background: var(--gold-ink); }
.bar.b1 b { color: var(--err); }
.bar.b3 b { color: var(--gold-ink); }
.bar strong { color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.bar span { font-size: 14px; color: var(--muted); margin-top: -8px; }

/* ---------- Testimonios ---------- */
.quote { background: var(--white); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); margin: 0; }
.quote .stars { color: var(--gold-ink); display: flex; gap: 2px; }
.quote .stars svg { width: 18px; height: 18px; }
.quote blockquote { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.quote footer { display: flex; gap: 12px; align-items: center; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.quote footer b { display: block; color: var(--ink); font-size: 15px; }
.quote footer span { font-size: 14px; color: var(--muted); }

/* ---------- Listas simples (sin iconos) ---------- */
.plain { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.plain li { position: relative; padding: 14px 0 14px 22px; border-top: 1px solid var(--line); font-size: 16.5px; }
.plain li:last-child { border-bottom: 1px solid var(--line); }
.plain li::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 2px; background: var(--gold-ink); }
.card.navy .plain li::before, .dark .plain li::before { background: var(--gold); }
.plain b { color: var(--ink); }
.card.navy .plain li { border-color: var(--line-dark); color: rgba(255, 255, 255, .9); }

/* ---------- Bloque breve con botón ---------- */
.teaser { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.teaser > div { max-width: 640px; }
.teaser .h2 { font-size: clamp(26px, 3vw, 38px); }

/* Número discreto en tarjetas */
.card .num { font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--gold-ink); }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 26px; font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; background: var(--gray); display: grid; place-items: center; flex: none; transition: transform .25s, background .2s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] .pm { transform: rotate(45deg); background: var(--navy); color: var(--white); }
.faq details p { padding: 0 26px 24px; }

/* ---------- Formularios ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-lg); color: var(--text); }
.form-card h2 { font-size: clamp(24px, 2.4vw, 30px); color: var(--ink); }
.form-card > p { margin: 8px 0 24px; color: var(--muted); font-size: 15.5px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(8, 88, 136, .08); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.check a { color: var(--navy); font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.form-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.form-note svg { width: 14px; height: 14px; flex: none; }
.form-status { display: none; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.form-status.ok { display: block; background: #e8f3ec; color: var(--ok); }
.form-status.err { display: block; background: #f8e9e7; color: var(--err); }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.contact-lines { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.contact-lines a { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 16px 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.contact-lines a:hover { border-color: var(--navy); }
.contact-lines .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; }
.contact-lines .ico svg { width: 20px; height: 20px; }
.contact-lines small { display: block; font-size: 13px; color: var(--muted); }
.contact-lines strong { color: var(--ink); font-size: 17px; }
.dark .contact-lines a { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); }
.dark .contact-lines a:hover { border-color: var(--gold); }
.dark .contact-lines strong { color: var(--white); }
.dark .contact-lines small { color: rgba(255, 255, 255, .6); }
.dark .contact-lines .ico { background: var(--gold); color: var(--navy); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { position: relative; border-radius: var(--r-lg); overflow: hidden; color: var(--white); background: var(--navy); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 58, 92, .95), rgba(5, 58, 92, .72)); }
.cta-inner { position: relative; z-index: 1; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-inner h2 { color: var(--white); max-width: 20ch; }
.cta-inner p { color: rgba(255, 255, 255, .82); margin-top: 14px; font-size: 18px; }
.cta-inner .btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Nosotros ---------- */
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.values span { font-weight: 700; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; background: var(--gold-soft); color: var(--navy); }
.concept { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.concept img { width: clamp(160px, 20vw, 240px); }
@media (max-width: 700px) { .concept { grid-template-columns: 1fr; } }

/* ---------- Referidos ---------- */
.big-money { font-family: var(--f-head); font-weight: 800; font-size: clamp(56px, 8vw, 104px); letter-spacing: -0.05em; line-height: 1; color: var(--navy); }

/* ---------- Texto legal ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin: 48px 0 14px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin: 14px 0; }
.prose a { color: var(--navy); font-weight: 700; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-2); color: rgba(255, 255, 255, .7); padding-top: clamp(56px, 7vw, 88px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 56px; }
.footer-brand img { width: 260px; max-width: 100%; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }


/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px; background: #25d366; color: #0b3d20; text-decoration: none;
  font-weight: 700; font-size: 15px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); transition: transform .2s;
}
.wa:hover { transform: translateY(-2px); }
.wa svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .wa span { display: none; } .wa { padding: 14px; } }

/* ---------- Aparición suave ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Filas de botones y encabezados con acción ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card > div { padding: 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.post-card .meta { font-size: 13px; color: var(--muted); }
.post-card h3 { font-size: 20px; line-height: 1.3; }
.post-card p { font-size: 15.5px; }
.post-card .link { margin-top: 6px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article { max-width: 720px; font-size: 18px; }
.article h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 14px; }
.article p, .article li { font-size: 18px; line-height: 1.75; }
.article p + p { margin-top: 18px; }
.article ul { margin: 18px 0; }
.article strong { color: var(--ink); }
.article-aside { position: sticky; top: 110px; }
@media (max-width: 960px) { .article-wrap { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* ---------- Video con carga ligera ---------- */
.video { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); box-shadow: var(--shadow-lg); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 60px; border: 0; background: none; cursor: pointer; transition: transform .2s; }
.video-play:hover { transform: scale(1.08); }
.video-play svg { width: 100%; height: 100%; }

/* ---------- Redes sociales ---------- */
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); transition: background .2s; }
.social a:hover { background: var(--gold); color: var(--navy); }
.social svg { width: 18px; height: 18px; }

/* ---------- Alineación de textos ----------
   Títulos: reparto parejo de palabras por renglón. Párrafos: alineados a la izquierda, sin palabras sueltas al final.
   Solo se justifica el texto largo de lectura continua (artículos del blog y aviso legal), donde la columna es ancha. */
h1, h2, h3, .head .lead, .center .lead { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
@media (min-width: 900px) { .article p, .prose p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; } }
.stat span { text-wrap: balance; }

/* ---------- Referidos: banda del 20% ---------- */
.pct-band { background: linear-gradient(120deg, var(--navy-2), var(--navy) 60%, var(--navy-3)); color: var(--white); padding-block: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.pct-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 207, 195, .28), transparent 70%); }
.pct-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; }
.pct-big { font-family: var(--f-head); font-weight: 800; font-size: clamp(120px, 18vw, 240px); line-height: .85; letter-spacing: -0.06em; color: var(--gold); }
.pct-big span { font-size: .45em; letter-spacing: 0; margin-left: 4px; }
.pct-band h2 { color: var(--white); }
.pct-band .lead { color: rgba(255, 255, 255, .82); margin-top: 16px; }
@media (max-width: 760px) { .pct-inner { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Cobertura por ciudad ---------- */
.cities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.city-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; color: var(--white); }
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 58, 92, 0) 35%, rgba(5, 58, 92, .9)); }
.city-card:hover img { transform: scale(1.05); }
.city-card span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-family: var(--f-head); font-weight: 800; font-size: 20px; line-height: 1.2; }
.city-card small { display: block; font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .75); }
@media (max-width: 1040px) { .cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cities { grid-template-columns: 1fr 1fr; } .city-card { aspect-ratio: 4 / 5; } }
.values-lg { justify-content: center; gap: 10px; }
.values-lg span { font-size: 16px; padding: 10px 20px; }

/* ---------- Ajustes para iPad y teléfono ---------- */
@media (max-width: 1040px) {
  .section { padding-block: clamp(64px, 8vw, 96px); }
  .split { gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .page-hero { min-height: 0; }
  .page-hero .wrap { padding-block: 72px 64px; }
  .page-hero.hero-full .wrap { padding-block: 64px; }
  .page-hero h1 { max-width: none; }
  .hero-actions .btn, .cta-inner .btns .btn { flex: 1 1 auto; }
  .teaser { flex-direction: column; align-items: stretch; }
  .teaser .btn, .teaser .btn-row .btn { width: 100%; }
  .head-row .btn { width: 100%; }
  .cta-inner { padding: 36px 24px; }
  .stat { padding: 24px 14px; }
  .form-card { padding: 24px 18px; }
  .faq summary { padding: 18px 18px; font-size: 16.5px; }
  .faq details p { padding: 0 18px 20px; }
  .compare-row > div { padding: 12px 14px; }
  .wa { right: 14px; bottom: 14px; }
  .btn { white-space: normal; text-align: center; padding-block: 12px; line-height: 1.3; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .stat b { font-size: 34px; }
}

/* ---------- Referidos: ejemplos de ganancia ---------- */
.earn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.earn-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 18px; text-align: center; display: grid; gap: 8px; box-shadow: var(--shadow); }
.earn-item span { font-size: 15px; color: var(--muted); }
.earn-item b { font-family: var(--f-head); font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.earn-item.navy { background: var(--navy); border-color: var(--navy); }
.earn-item.navy span { color: rgba(255, 255, 255, .7); }
.earn-item.navy b { color: var(--gold); }
@media (max-width: 860px) { .earn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .earn { gap: 12px; } .earn-item { padding: 22px 10px; } .earn-item b { font-size: clamp(21px, 6.2vw, 28px); } }

/* Dos cifras (Experiencia) */
.stats.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
@media (max-width: 380px) { .stats.stats-2 { grid-template-columns: 1fr; } }

/* ---------- Definición destacada (clara y citable) ---------- */
.definition { max-width: 900px; }
.definition h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.definition p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--ink); }
.definition p + p { margin-top: 10px; }
.definition strong { color: var(--navy); }

/* ---------- Tarjetas que enlazan ---------- */
.link-card { text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-ink); }
.link-card .link { margin-top: 6px; }

/* ---------- Glosario ---------- */
.glossary { margin: 8px 0 0; display: grid; gap: 0; }
.glossary dt { font-family: var(--f-head); font-weight: 800; color: var(--ink); font-size: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.glossary dt:first-child { border-top: 0; padding-top: 0; }
.glossary dd { margin: 6px 0 20px; }

/* ==========================================================================
   Familias de color (Brandbook 2026): las secciones alternan familia fría y cálida.
   - Fría:   Océano (base), Cielo (fondo frío), Hielo (texto sobre Océano).
   - Cálida: Rubor (fondo cálido) con Bermellón para títulos, cifras y palabras clave.
   - Sobre Océano: texto en Hielo y palabra clave en blanco negrita (nada de naranja).
   - Bermellón nunca es fondo: solo resalta sobre Rubor o blanco.
   ========================================================================== */
:root { --warm-text: #7c2c0e; }   /* Bermellón profundo para párrafos sobre Rubor */

/* --- Familia cálida: las secciones alternas (antes crema) pasan a Rubor --- */
.bg-cream { background: var(--gold); --ink: var(--gold-ink); --text: var(--warm-text); --muted: var(--warm-text); --line: #ebbcab; }
.bg-cream .label, .bg-cream .hl { color: var(--gold-ink); }
.bg-cream .card, .bg-cream .step, .bg-cream .quote, .bg-cream .form-card, .bg-cream details, .bg-cream .earn-item { background: var(--white); }
.bg-cream .btn-primary { background: var(--white); color: var(--gold-ink); box-shadow: inset 0 0 0 2px var(--gold-ink); }
.bg-cream .btn-primary:hover { background: var(--gold-ink); color: var(--white); box-shadow: none; }
.bg-cream .btn-line { border-color: var(--gold-ink); color: var(--gold-ink); background: transparent; }
.bg-cream .contact-lines a { background: var(--white); border-color: transparent; }
.bg-cream .contact-lines .ico { background: var(--gold); color: var(--gold-ink); }
.bg-cream .field input, .bg-cream .field select, .bg-cream .field textarea { color: var(--navy); }
.bg-cream .tl i { box-shadow: 0 0 0 6px var(--gold); }
.bg-cream .step.navy, .bg-cream .card.navy { background: var(--navy); }
.bg-cream .step.navy h3, .bg-cream .card.navy h3 { color: var(--white); }

/* --- Familia fría: sobre Cielo resalta Océano (no Bermellón) --- */
.bg-gray .label, .bg-gray .hl { color: var(--navy); }
.bg-gray .hl { font-weight: 800; }
.bg-gray .card, .bg-gray .step { background: var(--white); }

/* --- Sobre Océano: texto Hielo, palabra clave en blanco negrita --- */
.dark, .page-hero .lead, .cta-band p { color: var(--cream); }
.dark .label, .page-hero .label, .site-footer h4 { color: var(--gold-soft); }
.dark .hl, .page-hero .hl, .cta-band .hl { color: var(--white); font-weight: 800; }
.dark .link { color: var(--white); }
.card.navy .ico, .dark .card .ico { background: rgba(255, 255, 255, .12); color: var(--white); }
.step.navy .n { color: var(--gold-soft); }
.card.navy .plain li::before, .dark .plain li::before { background: var(--gold-soft); }
.compare-head .us small { color: var(--gold-soft); }
.tax-banner b, .earn-item.navy b { color: var(--white); }
.quote .av { color: var(--white); }
.contact-lines .ico { color: var(--white); }
.dark .contact-lines .ico { background: var(--white); color: var(--navy); }
.dark .contact-lines a:hover { border-color: var(--white); }
.social a:hover { background: var(--white); color: var(--navy); }
.site-footer { color: rgba(234, 243, 248, .78); }

/* --- Cifras y piezas que ganan acento cálido sobre blanco --- */
.stat b, .earn-item b, .big-money { color: var(--gold-ink); }
.compare-row .us { background: var(--gold); color: var(--warm-text); }
.compare-row .us b { color: var(--gold-ink); }
.compare-head .us { background: var(--navy); color: var(--white); }
.card .ico { background: var(--gold); color: var(--gold-ink); }
.values span { background: var(--gold); color: var(--gold-ink); }

/* --- Banda del 20% (Referidos): lámina cálida, como el "Caso real" del brandbook --- */
.pct-band { background: var(--gold); color: var(--warm-text); }
.pct-band::before { display: none; }
.pct-big { color: var(--gold-ink); }
.pct-band h2 { color: var(--gold-ink); }
.pct-band .lead { color: var(--warm-text); }

/* --- Caso real: caja "Solución" cálida dentro de la banda Océano --- */
.case-box.after { color: var(--warm-text); }
.case-box.after b { color: var(--gold-ink); }
.bg-cream .quote .av { background: var(--gold); color: var(--gold-ink); }

/* ==========================================================================
   Fase 1 de dinamismo (oct 2026): menú flotante, tarjetas de vidrio, frase grande,
   bloque redondeado, carrusel de testimonios. Sin librerías; respeta "reducir movimiento".
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Menú flotante tipo píldora --- */
:root { --hdr: 68px; --hdr-gap: 14px; }
.site-header {
  position: sticky; top: var(--hdr-gap); margin: var(--hdr-gap) auto 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) + 48px);
  border-radius: 999px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 10px 30px -18px rgba(5, 58, 92, .45);
  transition: box-shadow .3s, background .3s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.site-header.scrolled { background: rgba(255, 255, 255, .96); border-color: var(--line); box-shadow: 0 14px 36px -18px rgba(5, 58, 92, .5); }
.site-header .wrap { min-height: var(--hdr); padding-inline: 24px 12px; max-width: none; }
.site-header.hide { transform: translateY(calc(-100% - 2 * var(--hdr-gap))); }
body.nav-open .site-header { transform: none; }
main { margin-top: calc(-1 * (var(--hdr) + var(--hdr-gap) + 2px)); }
.page-hero .wrap { padding-top: calc(clamp(64px, 8vw, 110px) + var(--hdr) + var(--hdr-gap)); }
.page-hero.hero-full { min-height: 100vh; min-height: 100svh; }
main > section:first-child:not(.page-hero) { padding-top: calc(clamp(72px, 9vw, 120px) + var(--hdr) + var(--hdr-gap)); }
@media (max-width: 1040px) {
  :root { --hdr: 60px; --hdr-gap: 10px; }
  .site-header .wrap { min-height: var(--hdr); padding-inline: 18px 8px; }
  .page-hero.hero-full { min-height: 100svh; }
  .nav { top: calc(var(--hdr) + 2 * var(--hdr-gap)); left: var(--hdr-gap); right: var(--hdr-gap); bottom: var(--hdr-gap); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
}

/* --- Portada: tarjetas de vidrio flotantes --- */
.hero-float { display: grid; gap: 14px; margin-top: 40px; max-width: 560px; grid-template-columns: 1fr 1fr; }
.glass {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; text-decoration: none; color: var(--cream);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .3s, background .3s;
}
.glass:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.glass small { font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.glass b { font-family: var(--f-head); font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; color: var(--white); line-height: 1.05; }
.glass span { font-size: 14.5px; line-height: 1.4; }
@media (min-width: 1100px) {
  .hero-full .hero-float { position: absolute; right: var(--gutter); bottom: clamp(48px, 7vw, 96px); margin: 0; width: 300px; grid-template-columns: 1fr; }
  .hero-full .wrap { position: static; }
  .hero-full { display: flex; align-items: center; }
  .hero-full > .wrap { position: relative; z-index: 1; }
}
.js .hero-float .glass { animation: flotar-in .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-float .glass:nth-child(2) { animation-delay: .18s; }
.js .page-hero h1, .js .page-hero .lead, .js .page-hero .hero-actions, .js .page-hero .label { animation: subir-in .9s cubic-bezier(.2,.7,.2,1) both; }
.js .page-hero .label { animation-delay: .05s; } .js .page-hero h1 { animation-delay: .12s; }
.js .page-hero .lead { animation-delay: .24s; } .js .page-hero .hero-actions { animation-delay: .34s; }
.page-hero > img { transform-origin: 60% 40%; }
.js .page-hero > img { animation: acercar 14s ease-out both; }
@keyframes subir-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes flotar-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }

/* --- Frase grande (sobre Cielo: palabra clave en Océano negrita) --- */
.statement { font-family: var(--f-head); font-weight: 500; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.22; letter-spacing: -0.025em; color: var(--navy); max-width: 24ch; margin-inline: auto; }
.statement b { font-weight: 800; }

/* --- Bloque grande redondeado (familia cálida) --- */
.block { border-radius: 36px; padding: clamp(28px, 5vw, 72px); overflow: visible; }
.block.split { align-items: center; }
.float-host { position: relative; }
.float-card {
  position: absolute; left: clamp(-16px, -2vw, -8px); bottom: 28px; max-width: 290px; display: grid; gap: 4px;
  background: var(--white); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-lg);
}
.float-card small { font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.float-card b { font-family: var(--f-head); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-ink); line-height: 1; }
.float-card span { font-size: 14.5px; color: var(--warm-text); line-height: 1.45; }
.js .float-host .float-card { opacity: 0; transform: translateY(24px); transition: opacity .7s .35s, transform .7s .35s cubic-bezier(.2,.7,.2,1); }
.js .float-host.in .float-card { opacity: 1; transform: none; }
@media (max-width: 900px) { .float-card { position: relative; left: auto; bottom: auto; margin: -48px 16px 0; max-width: none; } }

/* --- Testimonios: carrusel sobre foto con franja en movimiento --- */
.testi { position: relative; overflow: hidden; padding-top: clamp(40px, 5vw, 64px); }
.testi-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.testi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 88, 136, .55), rgba(5, 58, 92, .9)); }
.testi > * { position: relative; z-index: 1; }
.testi > img.testi-bg { position: absolute; z-index: 0; }
.testi::after { z-index: 0; }
.marquee { display: flex; width: max-content; white-space: nowrap; font-family: var(--f-head); font-weight: 800; font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.04em; color: var(--white); line-height: 1.1; margin-bottom: clamp(32px, 5vw, 56px); }
.marquee span { padding-right: .3em; }
.js .marquee { animation: desliza 38s linear infinite; }
@keyframes desliza { to { transform: translateX(-50%); } }
.carousel .track { display: grid; grid-auto-flow: column; grid-auto-columns: min(520px, 86%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.glass-quote { scroll-snap-align: start; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: none; }
.glass-quote blockquote { color: var(--white); font-size: clamp(18px, 1.6vw, 21px); }
.glass-quote .stars { color: var(--gold-soft); }
.glass-quote footer { display: grid; gap: 2px; }
.glass-quote footer b { color: var(--white); }
.glass-quote footer span { color: var(--cream); }
.car-nav { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.car-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.car-btn:hover { background: var(--white); color: var(--navy); }
.car-btn svg { width: 20px; height: 20px; }
.car-btn[data-dir="-1"] svg { transform: rotate(180deg); }

/* --- Tarjetas con foto: acercamiento suave al pasar el cursor --- */
.city-card img, .post-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.city-card:hover img, .post-card:hover img { transform: scale(1.06); }
.split-media { overflow: visible; }
.split-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .js .hero-float .glass, .js .page-hero h1, .js .page-hero .lead, .js .page-hero .hero-actions, .js .page-hero .label, .js .page-hero > img, .js .marquee { animation: none; }
  .js .float-host .float-card { opacity: 1; transform: none; transition: none; }
  .site-header.hide { transform: none; }
}
@media (max-width: 1040px) {
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
}
@media (max-width: 560px) { .glass { padding: 14px 16px; } .glass b { font-size: 24px; } .glass span { font-size: 13.5px; } }

/* ==========================================================================
   Fase 1b: más movimiento (pedido del dueño). Todo se apaga con "reducir movimiento".
   ========================================================================== */
/* Apariciones más marcadas */
.js .reveal { transform: translateY(56px) scale(.97); }
.js .reveal.in { transform: none; }

/* Tarjetas de vidrio: flotan solas y siguen al cursor */
.js .hero-float .glass { animation: flotar-in .9s cubic-bezier(.2,.7,.2,1) both, flotar 5.5s ease-in-out 1.2s infinite alternate; }
.js .hero-float .glass:nth-child(2) { animation-delay: .18s, 2s; }
@keyframes flotar { from { translate: 0 0; } to { translate: 0 -14px; } }
.hero-float { transition: transform .4s cubic-bezier(.2,.7,.2,1); }

/* Inclinación 3D al pasar el cursor */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, background .3s; }
.tilt.tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 30px 60px -28px rgba(5, 58, 92, .45); }
.glass.tilt.tilting, .glass-quote.tilt.tilting { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45); }

/* Paralaje en fotos (lo mueve el JS con la propiedad translate) */
.split-media img, .testi-bg { will-change: translate; }
.split-media { overflow: hidden; border-radius: var(--r-lg); }
.split-media img { scale: 1.12; }
.float-host { overflow: visible; }
.float-host img { border-radius: var(--r-lg); }

/* Frase que se ilumina palabra por palabra al bajar */
.statement .w { opacity: .18; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }

/* Botones magnéticos */
.btn { transition: translate .25s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, box-shadow .2s, border-color .2s; }

/* Tarjeta flotante del caso real: oscila suave */
.js .float-host.in .float-card { animation: flotar 6s ease-in-out 1.2s infinite alternate; }

/* Ciudades: escalonadas */
@media (min-width: 900px) { .cities .city-card:nth-child(even) { margin-top: 36px; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero-float .glass, .js .float-host.in .float-card { animation: none; }
  .tilt, .tilt.tilting { transform: none !important; }
  .statement .w { opacity: 1; }
  .split-media img { scale: 1; translate: none !important; }
}
.js .hero-float .glass { animation: flotar-in .9s cubic-bezier(.2,.7,.2,1) backwards, flotar 5.5s ease-in-out 1.2s infinite alternate; }
.js .hero-float .glass:nth-child(2) { animation-delay: .18s, 2s; }
.page-hero > img { scale: 1.12; }
@media (prefers-reduced-motion: reduce) { .js .hero-float .glass { animation: none; } .page-hero > img { scale: 1; } }

/* ==========================================================================
   Fase 2: movimiento en todo el sitio
   ========================================================================== */
/* Títulos que suben palabra por palabra */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wd > span { display: inline-block; }
.js .split-words .wd > span { transform: translateY(105%); transition: transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--k, 0) * 45ms); }
.js .split-words.wd-in .wd > span { transform: none; }
.js .page-hero h1.split-words { animation: none; }

/* Tarjeta que crece al bajar (portada) */
.crece-sec { height: 210vh; position: relative; background: var(--white); }
.crece-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.crece-card { --p: 0; position: relative; overflow: hidden; color: var(--white);
  width: calc(62% + 38% * var(--p)); height: calc(58% + 42% * var(--p)); border-radius: calc(40px * (1 - var(--p))); box-shadow: var(--shadow-lg); }
.crece-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: calc(1.25 - .25 * var(--p)); }
.crece-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 58, 92, .92), rgba(5, 58, 92, .55)); opacity: calc(.35 + .65 * var(--p)); }
.crece-txt { position: absolute; z-index: 1; left: clamp(24px, 6vw, 96px); right: clamp(24px, 6vw, 96px); bottom: clamp(32px, 8vh, 96px); max-width: 760px;
  opacity: clamp(0, calc((var(--p) - .35) * 3), 1); translate: 0 calc((1 - var(--p)) * 60px); }
.crece-txt .h2 { color: var(--white); margin: 12px 0 16px; font-size: clamp(32px, 4.6vw, 64px); }
.crece-txt .label { color: var(--gold-soft); }
.crece-txt .lead { color: var(--cream); }
.crece-txt .hl { color: var(--white); font-weight: 800; }
@media (max-width: 760px) { .crece-card { width: calc(82% + 18% * var(--p)); height: calc(62% + 38% * var(--p)); } }

/* Banda final de contacto: se agranda al entrar en pantalla (en todas las páginas) */
.js .cta-band { scale: calc(.9 + .1 * var(--p, 1)); border-radius: calc(var(--r-lg) + 24px * (1 - var(--p, 1))); }
.cta-band > img { scale: calc(1.15 - .15 * var(--p, 1)); }

/* Pasos apilados: cada tarjeta se queda fija y la siguiente se le encima */
.steps.stack { grid-template-columns: 1fr; gap: 28px; }
.steps.stack .step { position: sticky; top: calc(var(--hdr) + var(--hdr-gap) + 24px + var(--i, 0) * 22px); min-height: min(52vh, 380px);
  padding: clamp(28px, 4vw, 56px); display: grid; align-content: end; gap: 12px; box-shadow: 0 -12px 40px -24px rgba(5, 58, 92, .35); }
.steps.stack .step .n { font-size: 15px; }
.steps.stack .step h3 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; }
.steps.stack .step p { font-size: clamp(17px, 1.6vw, 21px); max-width: 46ch; }
.steps.stack .step:nth-child(2) { background: var(--cream); }
.steps.stack .step:nth-child(3) { background: var(--gold-soft); }
.bg-cream .steps.stack .step:nth-child(2) { background: var(--white); }
.bg-cream .steps.stack .step:nth-child(3) { background: #fde7df; }
.js .steps.stack .step.reveal { transform: translateY(40px); }
.js .steps.stack .step.reveal.in { transform: none; }

/* Tarjetas con foto (variantes y temas relacionados) */
.photo-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; color: var(--white); background: var(--navy); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 58, 92, .05) 25%, rgba(5, 58, 92, .92)); transition: opacity .4s; }
.photo-card:hover img { transform: scale(1.07); }
.pc-txt { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.pc-txt b { font-family: var(--f-head); font-size: 21px; line-height: 1.2; color: var(--white); }
.pc-txt > span { font-size: 14.5px; color: var(--cream); line-height: 1.45; }
.pc-txt svg { width: 22px; height: 22px; transition: translate .3s; }
.photo-card:hover .pc-txt svg { translate: 6px 0; }
.cards.c3 .photo-card { aspect-ratio: 4 / 3.4; }
@media (max-width: 1000px) { .cards.c4 .photo-card { aspect-ratio: 4 / 3; } }

@media (prefers-reduced-motion: reduce) {
  .js .split-words .wd > span { transform: none; transition: none; }
  .crece-sec { height: auto; }
  .crece-sticky { position: static; height: auto; padding: 48px var(--gutter); }
  .crece-card { --p: 1 !important; width: 100%; height: 80vh; border-radius: var(--r-lg); }
  .js .cta-band, .cta-band > img { scale: 1; }
  .steps.stack .step { position: static; }
}

/* Video de la portada: aparece sobre la foto cuando ya se puede reproducir */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero-video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
