/* =====================================================================
   Umaña Esthetic Dentistry — estilos
   Estructura inspirada en thirdway.com, con la identidad de la Dra.
   (colores y tono de su manual de marca).
   ===================================================================== */

/* ---------- 1. Sistema de diseño (tokens) ---------- */
:root {
  /* Colores oficiales del manual de marca */
  --brown: #71553c;        /* café oscuro: texto y fondos oscuros */
  --camel: #ac8a61;        /* tostado: acentos y detalles */
  --sand: #eedcc4;         /* crema arena: fondos de sección */
  --stone: #ede9e8;        /* gris cálido: fondos neutros */
  /* Derivados para la web */
  --ivory: #f8f2ea;        /* fondo principal (equivale al warm-white de la referencia) */
  --ink: #2a2119;          /* texto principal, más profundo que el café */
  --night: #241c15;        /* footer */
  --tile: #efe7dc;         /* paneles y tarjetas */
  --white: #fff;

  /* Tipografía */
  --serif: "Gloock", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Curvas de animación (las mismas familias que usa la referencia) */
  --ease-button: cubic-bezier(.66, .01, .12, .98);
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out-quart: cubic-bezier(.75, 0, .25, 1);

  --radius: 4px;
  --gutter: clamp(16px, 2.6vw, 48px);
  --header-space: 84px;
}
@media (min-width: 1024px) { :root { --header-space: 96px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-synthesis: none; /* Gloock tiene un solo grosor: evita negritas/cursivas falsas */
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

/* Titulares grandes en serif con tracking negativo */
.h-xl { font-family: var(--serif); font-size: clamp(44px, 6.2vw, 100px); line-height: 1; letter-spacing: -0.015em; }
.h-lg { font-family: var(--serif); font-size: clamp(38px, 4.8vw, 78px); line-height: .98; letter-spacing: -0.015em; }
.eyebrow, .statement__eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--camel); }

/* Líneas partidas por SplitText (mask: "lines"): la máscara oculta la línea antes de subir.
   El padding evita que se corten los trazos descendentes (g, p, y) de la serif. */
.split-line-mask { padding-bottom: .12em; margin-bottom: -.12em; }

/* ---------- 3. Componentes: píldoras, botones circulares, enlaces ---------- */
/* Número de paso editorial: cifra en la serif de titulares + filete fino */
.idx {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--camel);
  font-variant-numeric: tabular-nums;
}
.idx::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .7; }

.btn-circle {
  display: inline-grid; place-items: center;
  width: 36px; height: 24px; border-radius: 999px;
  background: var(--ink); color: var(--ivory); font-size: 14px;
  transition: transform .4s var(--ease-button), background .3s;
}
.btn-circle--outline { background: transparent; color: currentColor; border: 1.5px solid currentColor; height: 28px; width: 28px; }
.btn-circle--outline:disabled, .btn-circle--outline.swiper-button-disabled { opacity: .35; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none;
}
.link-arrow span:first-child { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--ease-button); }
.link-arrow:hover span:first-child { background-size: 0 1.5px; background-position: 100% 100%; }
.link-arrow:hover .btn-circle { transform: translateX(4px); }

/* ---------- 4. Intro (preloader) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ivory);
  pointer-events: none;
}
.intro__symbol { width: min(22vw, 140px); opacity: 0; }

/* ---------- 5. Header flotante ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: var(--white);
  mix-blend-mode: normal;
  transition: color .4s;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header.is-light { color: var(--ink); }  /* sobre fondos claros */


/* Píldora blanca centrada con logo + menú */
.header__brand {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--ink);
  padding: 8px 8px 8px 16px; border-radius: var(--radius);
  box-shadow: 0 2px 20px rgba(42, 33, 25, .06);
}
.header__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.header__symbol { width: 26px; }
.header__menu-btn { width: 34px; height: 34px; border-radius: 2px; background: var(--stone); display: grid; place-content: center; gap: 4px; }
.header__menu-btn span { display: block; width: 14px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-button); }
.header__menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.header__menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
/* El header usa dos variables: --h-fg (texto) y --h-bg (relleno de botones),
   que se invierten cuando pasa sobre fondos claros */
.header { --h-fg: var(--white); --h-bg: var(--ink); }
.header.is-light { --h-fg: var(--ink); --h-bg: var(--ivory); }
.header__cta .btn-circle { background: var(--h-fg); color: var(--h-bg); }

/* Botón de idioma ES | EN */
.lang { display: flex; border: 1.5px solid var(--h-fg); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600; }
.lang button { padding: 3px 9px; color: var(--h-fg); transition: background .3s, color .3s; }
.lang button[aria-pressed="true"] { background: var(--h-fg); color: var(--h-bg); }

/* Menú a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--night); color: var(--ivory);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out-quart);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu a { font-family: var(--serif); font-size: clamp(42px, 7vw, 92px); line-height: 1.05; text-decoration: none; letter-spacing: -0.015em; }
.menu a:hover { color: var(--camel); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); }
.hero__media { position: absolute; inset: 0; will-change: clip-path; }
/* foto1 (horizontal): la doctora está al centro, con la cabeza arriba */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 22%; }
/* Degradado para que el titular siempre se lea sobre la foto */
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36, 28, 21, .72) 0%, rgba(36, 28, 21, .15) 48%, rgba(36, 28, 21, .35) 100%); }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vh, 72px); }
.hero__kicker { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; opacity: .9; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 9vw, 160px); line-height: .96; letter-spacing: -0.015em; max-width: 13ch; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(32px, 6vh, 72px); display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }

/* ---------- 7. Frase que se llena ---------- */
.statement { padding: clamp(110px, 16vw, 220px) var(--gutter) clamp(80px, 10vw, 140px); max-width: 1500px; margin: 0 auto; text-align: center; }
.statement__text { font-family: var(--serif); font-size: clamp(32px, 4.3vw, 70px); line-height: 1.05; letter-spacing: -0.015em; margin: 28px auto 0; max-width: 22ch; }
.scroll-fill-char { opacity: .18; }
.statement__stats { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.statement__stats li { border-top: 1px solid rgba(42, 33, 25, .18); padding-top: 18px; display: grid; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: clamp(40px, 5vw, 76px); line-height: 1; color: var(--brown); }

/* ---------- 8. Tratamientos: una fila por caso, foto grande + texto, lados alternados ---------- */
.treatments { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(90px, 10vw, 140px); overflow-x: clip; }
.treatments__head { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: clamp(56px, 8vw, 120px); }
@media (min-width: 1024px) { .treatments__head { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.treatments__intro { font-size: clamp(17px, 1.25vw, 20px); max-width: 46ch; justify-self: end; }

.t-list { display: grid; gap: clamp(64px, 9vw, 140px); }
.t-row { display: grid; gap: 26px; align-items: center; }
/* --ar = forma del marco (3:2 horizontal, 3:4 vertical), puesta en cada fila */
.t-row__media { aspect-ratio: var(--ar, 3 / 2); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.t-row__body { display: grid; justify-items: start; gap: 0; }
.t-row__name { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 72px); line-height: .98; letter-spacing: -0.02em; margin: 22px 0 0; }
.t-row__name em { display: block; font-style: italic; font-size: .42em; letter-spacing: 0; color: var(--camel); margin-bottom: .3em; }
@media (min-width: 900px) {
  .t-row { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 120px); }
  /* Filas pares: la foto pasa a la derecha */
  .t-row:nth-child(even) { grid-template-columns: 5fr 7fr; }
  .t-row:nth-child(even) .t-row__media { order: 2; }
  /* Fotos verticales: marco más angosto para que no ocupe más de una pantalla */
  .t-row--tall .t-row__media { width: min(100%, 470px, 62svh); justify-self: center; }
}

/* Antes / después superpuestos con una línea que se arrastra.
   --pos (0–100%) = cuánto del "antes" se ve, desde la izquierda. */
.ba { --pos: 50%; position: relative; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); pointer-events: none; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 14px; z-index: 2; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ivory); text-shadow: 0 1px 10px rgba(20, 15, 10, .55); transition: opacity .3s;
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; }
/* La etiqueta se apaga cuando su foto casi no se ve */
.ba.is-left .ba__tag--before, .ba.is-right .ba__tag--after { opacity: 0; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px; background: var(--ivory); box-shadow: 0 0 12px rgba(20, 15, 10, .35); outline: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--ivory); box-shadow: 0 4px 18px rgba(20, 15, 10, .3); transition: transform .3s var(--ease-button);
}
/* Dos flechas finas (‹ ›) dibujadas con bordes */
.ba__knob::before, .ba__knob::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--brown); border-width: 0 0 1.5px 1.5px; }
.ba__knob::before { left: 12px; transform: translateY(-50%) rotate(45deg); }
.ba__knob::after { right: 12px; transform: translateY(-50%) rotate(-135deg); }
.ba:hover .ba__knob, .ba.is-dragging .ba__knob, .ba__handle:focus-visible .ba__knob { transform: translate(-50%, -50%) scale(1.1); }
.ba__handle:focus-visible .ba__knob { box-shadow: 0 0 0 3px var(--camel); }
/* Días de estancia: dato con un filete corto delante, sin cápsula */
.t-card__days { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; font-weight: 500; color: var(--brown); }
.t-card__days::before { content: ""; width: 18px; height: 1px; background: var(--camel); }

.t-card__tag { margin: 10px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--camel); }

/* ---------- 8b. Tecnología CAD/CAM (fondo crema arena de la marca) ---------- */
.tech { background: var(--sand); padding: clamp(90px, 11vw, 170px) var(--gutter); }
.tech__statement { font-family: var(--serif); font-size: clamp(30px, 3.9vw, 64px); line-height: 1.05; letter-spacing: -0.015em; text-align: center; max-width: 24ch; margin: 0 auto clamp(64px, 8vw, 120px); color: var(--ink); }
.tech__grid { display: grid; gap: clamp(36px, 5vw, 90px); }
@media (min-width: 900px) { .tech__grid { grid-template-columns: .85fr 1fr; align-items: center; } }
.tech__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.tech__media img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 8%; }
.tech__text { max-width: 640px; }
.tech__text h2 { margin: 14px 0 28px; }
.tech__lead { font-size: clamp(18px, 1.35vw, 22px); }
.tech__list { list-style: none; margin: 36px 0 0; padding: 0; }
.tech__list li { padding: 22px 0; border-top: 1px solid rgba(113, 85, 60, .25); }
.tech__list h3 { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 6px; }
.tech__list p { margin: 0; color: var(--brown); }
.tech .scroll-fill-char { opacity: .22; }

/* Proceso en 4 pasos: en escritorio la foto queda fija y se revela de abajo arriba
   (como los paneles de "Tu viaje"); en móvil cada paso lleva su propia foto */
.process { margin-top: clamp(100px, 12vw, 180px); }
.process__head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 90px); }
.process__head h2 { margin-top: 14px; }
.process__frame { display: none; }
.process__steps { list-style: none; margin: 0; padding: 0; }
.process__step { padding: 28px 0 36px; border-top: 1px solid rgba(113, 85, 60, .25); }
.process__step-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.process__step .idx { align-self: flex-start; }
.process__step h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 48px); line-height: 1.02; letter-spacing: -0.015em; margin: 16px 0 10px; }
.process__brand { margin: 0 0 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--camel); }
.process__step p:last-child { margin: 0; max-width: 34ch; font-size: clamp(17px, 1.3vw, 21px); color: var(--brown); }

@media (min-width: 900px) {
  .process__body { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 6vw, 110px); align-items: start; }
  .process__frame {
    display: block; position: sticky; top: max(var(--header-space, 80px), calc(50vh - 20vw));
    aspect-ratio: 4 / 3; max-height: 76vh; overflow: hidden; border-radius: var(--radius); background: var(--brown);
  }
  .process__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
    clip-path: inset(100% 0 0 0); transform: scale(1.12);
    transition: clip-path 1.1s var(--ease-out-quart), transform 1.6s var(--ease-out-quart);
  }
  .process__img.is-shown { clip-path: inset(0% 0 0 0); transform: scale(1); }
  .process__step-img { display: none; }
  .process__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 0; border: 0; opacity: .28; transition: opacity .6s ease; }
  .process__step.is-active { opacity: 1; }
}

/* Tarjeta destacada en el muro de beneficios */
.b-tile--accent { background: var(--brown); color: var(--sand); }
.b-tile--accent .b-tile__k { color: var(--ivory); }

/* ---------- 8c. Testimonios en video (formato vertical 9:16) ---------- */
.testi { display: grid; gap: clamp(40px, 6vw, 100px); padding: clamp(100px, 12vw, 180px) var(--gutter) clamp(60px, 8vw, 120px); }
@media (min-width: 1024px) { .testi { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.testi__text h2 { margin: 14px 0 28px; }
.testi__intro { font-size: clamp(17px, 1.25vw, 20px); max-width: 38ch; margin: 0 0 32px; }
.testi__videos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 32px); align-items: start; }
/* El segundo video baja un poco: ritmo editorial en vez de dos bloques alineados */
@media (min-width: 640px) { .testi__item:nth-child(2) { margin-top: clamp(40px, 7vw, 120px); } }
.testi__item { margin: 0; }
.testi__frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: var(--brown); }
.testi__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #8a6a4c, var(--brown) 70%); }
.testi__placeholder img { width: 22%; opacity: .55; }
.testi__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Velo inferior para que el botón se lea sobre cualquier fotograma */
.testi__frame::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(20, 15, 10, .55)); pointer-events: none; transition: opacity .4s; }
.testi__play {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 14px;
  padding: clamp(14px, 2vw, 24px); color: var(--ivory); font-weight: 500; font-size: clamp(14px, 1.1vw, 17px); text-align: left;
}
.testi__icon { position: relative; flex: none; width: clamp(44px, 4vw, 58px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid currentColor; transition: background .3s, transform .4s var(--ease-button); }
.testi__icon::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.testi__play:hover .testi__icon { background: rgba(248, 242, 234, .18); transform: scale(1.06); }
/* Reproduciendo con sonido: se ocultan el botón y el velo, quedan los controles del video */
.testi__frame.is-playing .testi__play, .testi__frame.is-playing::after { opacity: 0; pointer-events: none; }
/* Sin video todavía: no se ofrece reproducir */
.testi__frame.is-missing .testi__play, .testi__frame.is-missing::after { display: none; }
.testi__item figcaption { margin-top: 16px; }
.testi__name { margin: 0; font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.05; }
.testi__meta { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--camel); }
@media (max-width: 639px) { .testi__play span:last-child { display: none; } .testi__play { justify-content: center; } }
/* ---------- 9. Frase central de garantía ---------- */
.quote { text-align: center; padding: clamp(60px, 8vw, 120px) var(--gutter); max-width: 1400px; margin: 0 auto; }
.quote__title { font-family: var(--sans); font-weight: 500; font-size: clamp(34px, 4.6vw, 76px); line-height: 1; letter-spacing: -0.03em; }
.quote__sub { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 60px); line-height: 1.02; letter-spacing: -0.01em; margin: 18px auto 0; max-width: 24ch; }

/* ---------- 10. Tu viaje (pin + paneles apilados) ---------- */
.journey { background: var(--night); color: var(--ivory); }
.journey__pin { height: 100svh; display: flex; flex-direction: column; padding: calc(var(--header-space) + 8px) var(--gutter) var(--gutter); }
.journey__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.journey__progress { display: flex; align-items: baseline; gap: 10px; }
.journey__num { font-family: var(--serif); font-size: clamp(32px, 3vw, 48px); line-height: 1; color: var(--camel); font-variant-numeric: tabular-nums; }
.journey__of { opacity: .6; font-size: 15px; margin-right: 8px; }
.journey__bar { align-self: center; }
.journey__bar { width: clamp(80px, 12vw, 200px); height: 2px; background: rgba(248, 242, 234, .2); }
.journey__bar span { display: block; height: 100%; background: var(--camel); transform-origin: left; transform: scaleX(0); }
.journey__stage { position: relative; flex: 1; }
.j-panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; background: #2f251c; }
@media (min-width: 900px) { .j-panel { grid-template-columns: 1.25fr 1fr; } }
.j-panel__media { position: relative; overflow: hidden; min-height: 0; }
.j-panel__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 30%; }
/* Fotos donde el rostro está muy arriba: el encuadre se pega al borde superior */
.j-panel__media img.focus-top { object-position: 50% 4%; }
.j-panel__text { padding: clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; background: #2f251c; }
.j-panel__text h3 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 60px); line-height: 1; letter-spacing: -0.015em; }
.j-panel__text p { font-size: clamp(17px, 1.3vw, 20px); max-width: 38ch; opacity: .85; margin: 0; }
.days { list-style: none; margin: 0; padding: 0; max-width: 420px; }
.days li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(248, 242, 234, .16); }
.days b { font-weight: 500; color: var(--sand); }
@media (max-width: 899px) {
  .j-panel { grid-template-rows: 1fr auto; }
  .j-panel__text { padding: 22px; gap: 10px; }
  .days li { padding: 6px 0; font-size: 15px; }
  .j-note { display: none; } /* en móvil no cabe junto a la lista de días */
}

/* ---------- 11. Beneficios (muro de columnas) ---------- */
.benefits { display: grid; gap: 40px; padding: clamp(100px, 12vw, 180px) var(--gutter); overflow: hidden; }
@media (min-width: 1024px) { .benefits { grid-template-columns: 1fr 1.15fr; align-items: center; } }
.benefits__text p { font-size: clamp(17px, 1.25vw, 20px); max-width: 44ch; margin-top: 28px; }
.benefits__wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  height: clamp(520px, 64vw, 760px); overflow: hidden;
  /* Desvanecido arriba/abajo, igual que el muro de logos de la referencia */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.b-col { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.b-col--offset { margin-top: -90px; }
.b-tile {
  aspect-ratio: 1; background: var(--tile); border-radius: 2px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  padding: 16px; text-align: center; font-size: clamp(13px, 1vw, 15px); color: var(--brown);
}
.b-tile__k { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 42px); line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.b-tile--logo { background: var(--sand); }
.b-tile--logo img { width: 70%; }

/* ---------- 12. La doctora ---------- */
.doctor { display: grid; gap: clamp(32px, 5vw, 80px); padding: 0 var(--gutter) clamp(100px, 12vw, 180px); }
@media (min-width: 900px) { .doctor { grid-template-columns: .9fr 1fr; align-items: center; } }
.doctor__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.doctor__media img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; }
.doctor__text { max-width: 620px; font-size: clamp(17px, 1.25vw, 20px); }
.doctor__text h2 { margin: 14px 0 32px; }
.doctor__quote { margin: 36px 0 0; padding-left: 22px; border-left: 2px solid var(--camel); font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; color: var(--brown); }

/* ---------- 13. CTA final ---------- */
.cta { position: relative; min-height: 92svh; display: flex; align-items: flex-start; justify-content: flex-end; padding: var(--header-space) var(--gutter) var(--gutter); overflow: hidden; }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 120%; object-fit: cover; object-position: 50% 25%; }
/* La tarjeta va abajo para que el header siempre quede sobre la foto */
.cta__card { position: relative; background: var(--ivory); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); width: min(100%, 860px); margin-top: auto; }
.cta__title { font-family: var(--sans); font-weight: 500; font-size: clamp(34px, 4.4vw, 70px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 34px; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--brown); color: var(--ivory); text-decoration: none;
  padding: 16px 26px; border-radius: 999px; font-weight: 600;
  transition: background .3s, transform .4s var(--ease-button);
}
.btn-wa svg { width: 22px; height: 22px; }
.btn-wa:hover { background: var(--ink); transform: translateY(-2px); }
.btn-wa--line { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 1.5px var(--brown); }
.btn-wa--line:hover { background: var(--brown); color: var(--ivory); }
/* Dos caminos en el CTA final: vive fuera (relleno) / vive en El Salvador (contorno) */
.cta__options { display: grid; gap: 28px; }
@media (min-width: 720px) { .cta__options { grid-template-columns: 1fr 1fr; gap: 0; } .cta__opt + .cta__opt { border-left: 1px solid color-mix(in srgb, var(--brown) 22%, transparent); padding-left: 32px; } .cta__opt:first-child { padding-right: 32px; } }
@media (max-width: 719px) { .cta__opt + .cta__opt { border-top: 1px solid color-mix(in srgb, var(--brown) 22%, transparent); padding-top: 28px; } }
.cta__opt { display: flex; flex-direction: column; align-items: flex-start; }
.cta__who { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.cta__how { opacity: .75; line-height: 1.5; margin-bottom: 22px; }
.cta__note { font-size: 13px; opacity: .6; margin-top: 12px; }

/* ---------- 14. Footer con regla ---------- */
.footer { background: var(--night); color: var(--ivory); display: grid; grid-template-columns: 1fr; position: relative; }
/* --flogo = largo del logo girado; su grosor es 0.4162 × largo (proporción del PNG),
   así la primera columna mide justo lo que ocupa el logo y no pisa el texto */
@media (min-width: 1024px) {
  .footer { --flogo: min(calc(100svh - 120px), 640px); grid-template-columns: calc(var(--flogo) * .4162 + 64px) 1fr; min-height: 100svh; }
}
.footer__brand { display: flex; align-items: flex-end; justify-content: center; padding: 32px var(--gutter) 0; }
.footer__logo { width: 220px; }
@media (min-width: 1024px) {
  .footer__brand { padding: 32px 0; align-items: center; overflow: hidden; }
  /* Logo girado en vertical, como el logotipo gigante de la referencia */
  .footer__logo { width: var(--flogo); max-width: none; flex: none; transform: rotate(-90deg); }
}

.footer__info { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 48px var(--gutter); align-content: start; }
@media (min-width: 1024px) { .footer__info { padding-left: clamp(32px, 4vw, 80px); } }
@media (min-width: 700px) { .footer__info { grid-template-columns: 1fr 1fr; } }
.footer__col p { font-size: 15px; font-weight: 500; }
.footer__label { font-family: var(--serif); font-size: 18px !important; font-weight: 400 !important; opacity: .7; margin-bottom: .4em !important; margin-top: 1.4em; }
.footer__col .footer__label:first-child { margin-top: 0; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--camel); }
.footer__nav { list-style: none; margin: 0 0 28px; padding: 0; }
.footer__nav a { font-family: var(--serif); font-size: clamp(32px, 3vw, 46px); line-height: 1.1; letter-spacing: -0.01em; }
.footer__map { width: 100%; height: 220px; border: 0; border-radius: var(--radius); filter: grayscale(1) sepia(.35) contrast(.9); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(248, 242, 234, .25); padding-top: 22px; font-size: 13px; opacity: .8; }

/* Botón flotante de WhatsApp (solo móvil) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: var(--brown); color: var(--ivory); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(42, 33, 25, .3); }
.wa-float svg { width: 26px; height: 26px; }
@media (min-width: 1024px) { .wa-float { display: none; } }

/* ---------- 15. Móvil ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .header { grid-template-columns: auto 1fr; padding: 12px 16px; gap: 8px; }
  .header__spacer { display: none; }
  .header__brand { justify-self: start; }
  .header__cta { display: none; }
  .hero__scroll { display: none; }
  .statement__stats { grid-template-columns: 1fr; }
  .benefits__wall { grid-template-columns: repeat(2, 1fr); height: 600px; }
  .benefits__wall .b-col:last-child { display: none; }
}

/* ---------- 16. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .intro { display: none; }
  .scroll-fill-char { opacity: 1; }
}
