/* ─────────────────────────────────────────────────────────────
   HOME v5 · Dr. Gustavo Suárez · «Piel y luz»
   Tres franjas: hero cinematográfico → declaración → tres áreas.
   Paleta y tipografía de LĀR CLINIC; el resto, libre.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: 'Cora Montserra'; src: url('../assets/fonts/CoraMontserra-Thin.woff2') format('woff2'), url('../assets/fonts/CoraMontserra-Thin.otf') format('opentype'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Cora Montserra'; src: url('../assets/fonts/CoraMontserra-Extralight.woff2') format('woff2'), url('../assets/fonts/CoraMontserra-Extralight.otf') format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Cora Montserra'; src: url('../assets/fonts/CoraMontserra-Light.woff2') format('woff2'), url('../assets/fonts/CoraMontserra-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Cora Montserra'; src: url('../assets/fonts/CoraMontserra-Regular.woff2') format('woff2'), url('../assets/fonts/CoraMontserra-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cora Montserra'; src: url('../assets/fonts/CoraMontserra-Medium.woff2') format('woff2'), url('../assets/fonts/CoraMontserra-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cora Montserra'; src: url('../assets/fonts/CoraMontserra-Bold.woff2') format('woff2'), url('../assets/fonts/CoraMontserra-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  /* LĀR · brandbook 3.1 */
  --ivory: #EFE8E1;
  --sand: #E9E2DA;
  --greige: #C9BCA9;
  --cacao: #875F45;
  --graphite: #2F2E2C;
  --sage: #5E6B61; /* 14-oct: un punto más oscuro (antes #606D63) para pasar de 4,47:1 a 4,61:1 sobre el marfil (AA) */
  /* derivados (mismo tono) */
  --night: #1c1917;
  --ivory-hi: #fff8f0;
  --cacao-deep: #6e4c36;
  --sage-hi: #9BAB9F;
  --ink: var(--graphite);
  --ink-70: rgba(47, 46, 44, .72);
  --ink-60: rgba(47, 46, 44, .7);
  --ivory-85: rgba(239, 232, 225, .85);
  --ivory-70: rgba(239, 232, 225, .7);
  --ivory-45: rgba(239, 232, 225, .45);
  --ivory-20: rgba(239, 232, 225, .2);
  --hair: rgba(201, 188, 169, .55);
  --hair-dark: rgba(239, 232, 225, .22);

  --font: 'Cora Montserra', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4.2vw, 64px);
  --header-h: 76px;
  --radius: 24px;
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .papers__item, .papers__item:nth-child(odd), .papers__item:nth-child(even), .papers__item:hover { transform: none; }
  .journal__feat-fig img, .journal__card-fig img, .gram__cell img { transition: none; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -100px; left: var(--gutter); padding: 10px 16px; background: var(--cacao); color: var(--ivory); border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cacao); outline-offset: 4px; border-radius: 2px; }
.hero :focus-visible, .inner-hero :focus-visible, .panel :focus-visible, .overlay :focus-visible, .header[data-theme="dark"] :focus-visible, .close2 :focus-visible, .about3 :focus-visible { outline-color: var(--ivory); }

/* ───────── tipos de texto ───────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-weight: 400; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ivory-70);
}

.line { display: block; overflow: hidden; padding: .12em 0 .2em; margin: -.12em 0 -.2em; }
/* los contenedores de líneas son flex en columna para que los márgenes negativos no colapsen */
.hero__title, .decl__title, .areas__title { display: flex; flex-direction: column; align-items: flex-start; }
.line__in { display: block; }
html.js.motion .line__in { will-change: transform; }

/* ───────── botones y enlaces ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .25s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:active { transform: scale(.96); }
.btn--ivory { background: var(--ivory); color: var(--graphite); }
.btn--ivory:hover { background: var(--ivory-hi); }
.btn--cta { background: var(--ivory); color: var(--graphite); height: 42px; padding: 0 20px; font-size: 13px; font-weight: 700; }
.btn--cta:hover { background: var(--ivory-hi); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  color: var(--ivory); padding: 12px 0; position: relative;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.link-arrow span { position: relative; }
.link-arrow span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(.35); transform-origin: left; opacity: .5; transition: transform .45s var(--ease-out), opacity .3s; }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow:hover span::after { transform: scaleX(1); opacity: 1; }

/* ───────── cabecera ───────── */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  color: var(--ivory);
  transition: transform .5s var(--ease-out), background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
html.js .header { position: fixed; }
.header__inner {
  height: 100%; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { position: relative; display: block; width: 150px; height: 41px; }
.brand__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s var(--ease-out); }
.brand__img--dark { opacity: 0; }
.nav__list { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.nav__link {
  display: inline-block; padding: 8px 0; font-weight: 400; font-size: 13px; letter-spacing: .02em;
  position: relative; opacity: .82; transition: opacity .3s;
}
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav__link:hover, .nav__link.is-current { opacity: 1; }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.lang { display: inline-flex; gap: 6px; font-weight: 400; font-size: 12.5px; letter-spacing: .06em; opacity: .85; }
.lang [aria-current] { font-weight: 500; }
.lang__sep { opacity: .5; }
.menu-btn { display: none; align-items: center; gap: 10px; font-weight: 400; font-size: 13px; letter-spacing: .04em; min-height: 44px; padding: 0 0 0 12px; }
.menu-btn__icon { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-btn__icon i { display: block; height: 1px; background: currentColor; transition: transform .35s var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* estado claro: cristal marfil */
.header[data-theme="light"] {
  color: var(--graphite);
  background: rgba(239, 232, 225, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: inset 0 -1px 0 var(--hair);
}
.header[data-theme="light"] .brand__img--light { opacity: 0; }
.header[data-theme="light"] .brand__img--dark { opacity: 1; }
.header[data-theme="light"] .btn--cta { background: var(--cacao); color: var(--ivory); }
.header[data-theme="light"] .btn--cta:hover { background: var(--cacao-deep); }
.header.is-hidden { transform: translateY(-100%); }

/* con el menú abierto, la cabecera vuelve a oscuro sobre el fondo del menú */
body.menu-open .header[data-theme="light"] { background: transparent; color: var(--ivory); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .header[data-theme="light"] .brand__img--light { opacity: 1; }
body.menu-open .header[data-theme="light"] .brand__img--dark { opacity: 0; }
body.menu-open .header { transform: none; }

/* menú a pantalla completa */
.overlay { position: fixed; inset: 0; z-index: 35; background: var(--night); color: var(--ivory); }
.overlay[hidden] { display: none; }
.overlay__inner { height: 100%; padding: calc(var(--header-h) + 6vh) var(--gutter) 6vh; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.overlay__list a { display: block; padding: 10px 0; font-weight: 400; font-size: clamp(30px, 6vw, 56px); line-height: 1.15; letter-spacing: -.01em; border-bottom: 1px solid var(--hair-dark); }
.overlay__foot { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.overlay__meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-70); }

/* ───────── FRANJAS 1 + 2 · escena ───────── */
.intro { position: relative; background: var(--ivory); }
.stage { position: relative; background: var(--ivory); }

/* marco del hero: medio + copy + esquinas (100svh) */
.frame { position: relative; height: 100svh; min-height: 620px; }
/* medio: imagen + vídeo a sangre */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.media__img, .media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__img--skin { object-position: 66% 40%; }
.media--b .media__img--skin, .media--b .media__video { object-position: 64% 40%; }
.media--c .media__img--skin, .media--c .media__video { object-position: 70% 35%; }
.media--d .media__img--skin, .media--d .media__video { object-position: 66% 40%; }
.media--e .media__img--skin, .media--e .media__video { object-position: 68% 40%; }
/* E3: más cerca y desplazada hacia el texto */
.media--e3 .media__img--skin, .media--e3 .media__video { object-position: 70% 40%; transform-origin: 92% 42%; }
.media__video { object-position: 66% 40%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.media__video.is-ready { opacity: 1; }
html:not(.js) .media__video { opacity: 1; }
.media__img--doctor { object-position: 50% 30%; opacity: 0; }
/* rayas finas superpuestas (D2/E2): rompen la suavidad del vídeo generado y disimulan sus fallos */
.media__lines { position: absolute; inset: 0; display: none; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='3'%3E%3Crect width='1' height='1' fill='%231c1917' fill-opacity='.34'/%3E%3C/svg%3E"); background-size: 1px 3px; background-repeat: repeat; mix-blend-mode: multiply; }
.media--lines .media__lines { display: block; }
/* B2: rayas intermedias entre E2 y D2 */
.media--b.media--lines .media__lines { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='4'%3E%3Crect width='1' height='1.5' fill='%231c1917' fill-opacity='.41'/%3E%3C/svg%3E"); background-size: 1px 4px; }
/* E3: mismas rayas que B2 */
.media--e3.media--lines .media__lines { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='4'%3E%3Crect width='1' height='1.5' fill='%231c1917' fill-opacity='.41'/%3E%3C/svg%3E"); background-size: 1px 4px; }
/* D2: la textura de B2 pero en vertical */
.media--d.media--lines .media__lines { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='1'%3E%3Crect width='1.5' height='1' fill='%231c1917' fill-opacity='.41'/%3E%3C/svg%3E"); background-size: 4px 1px; }
.media__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, .78) 0%, rgba(28, 25, 23, .42) 38%, rgba(28, 25, 23, 0) 62%),
    linear-gradient(180deg, rgba(28, 25, 23, .35) 0%, rgba(28, 25, 23, 0) 30%, rgba(28, 25, 23, .55) 100%);
}
@media (prefers-reduced-motion: reduce) { .media__video { display: none; } }

/* copy del hero */
.hero {
  position: absolute; inset: 0; z-index: 3;
  display: grid; align-content: end;
  padding: 0 var(--gutter) clamp(56px, 11vh, 120px);
  color: var(--ivory);
}
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 32px); }
.hero__title {
  font-weight: 500; font-size: clamp(50px, 7.6vw, 124px); line-height: .98; letter-spacing: -.03em;
  max-width: 11ch; margin-bottom: clamp(22px, 3.6vh, 40px);
}
.hero__title .line:nth-child(3) .line__in {
  font-weight: 500; font-size: clamp(12px, .95vw, 14px); letter-spacing: .22em; text-transform: uppercase;
  line-height: 1; margin-top: clamp(18px, 2.4vh, 28px); padding-left: 2px; color: var(--ivory-85);
}
.hero__title .line:nth-child(3) .line__in::before { content: ''; display: inline-block; width: 36px; height: 1px; background: var(--greige); vertical-align: middle; margin-right: 14px; }
.hero__strong { font-weight: 700; }
.hero__lede { max-width: 44ch; font-size: clamp(16px, 1.22vw, 19px); line-height: 1.55; color: var(--ivory-85); margin-bottom: clamp(24px, 4vh, 40px); }
.hero__lede strong { font-weight: 500; color: var(--ivory); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }

/* esquinas */
.corner { position: absolute; z-index: 3; bottom: 34px; display: inline-flex; align-items: center; gap: 12px; color: var(--ivory-70); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.corner--bl { left: var(--gutter); }
.corner--br { right: var(--gutter); }
.corner img { opacity: .9; }
.cue { display: inline-flex; align-items: center; gap: 14px; }
.cue__line { position: relative; display: block; width: 1px; height: 44px; background: var(--ivory-20); overflow: hidden; }
.cue__line i { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--ivory); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .cue__line i { animation: none; top: 0; } }

/* declaración (franja 2) */
.decl { position: relative; z-index: 2; background: var(--ivory); padding: clamp(80px, 14vh, 140px) 0; overflow: hidden; }
.decl__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center;
  padding: 0 var(--gutter);
}
.decl__text { grid-column: 1 / 7; max-width: 600px; }
.decl__title { font-weight: 500; font-size: clamp(32px, 4vw, 60px); line-height: 1.06; letter-spacing: -.03em; margin-bottom: clamp(22px, 3.4vh, 36px); }
.decl__title strong { font-weight: 700; }
@media (min-width: 821px) { .decl__title .line { white-space: nowrap; } }
.decl__title em { color: var(--sage); font-weight: 700; }
.decl__body { font-size: clamp(16px, 1.22vw, 19px); line-height: 1.6; color: var(--ink-70); max-width: 50ch; margin-bottom: clamp(16px, 2.4vh, 24px); }
.decl__body strong { font-weight: 500; color: var(--ink); }
.decl .cv { margin: 4px 0 0; }
.decl .cv li { padding: 11px 0 11px 26px; font-size: clamp(14px, 1vw, 16px); }
.decl .cv li::before { top: 20px; }
.decl__figure { grid-column: 7 / 13; align-self: stretch; width: 100%; min-height: 60vh; justify-self: end; border-radius: 0; overflow: hidden; background: var(--sand); }
.decl__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* ───────── FRANJA 3 · tres áreas ───────── */
.areas { position: relative; z-index: 3; background: var(--ivory); padding-top: clamp(80px, 14vh, 150px); }
/* isotipo de LĀR entero, a caballo entre la franja 2 y la 3, con parallax */
.seam-mark { position: absolute; left: calc(var(--gutter) - 1vw); top: calc(-1 * clamp(96px, 9.5vw, 150px)); width: clamp(190px, 19vw, 300px); height: auto; opacity: .09; pointer-events: none; z-index: 0; will-change: transform; }
.areas__head, .panels { position: relative; z-index: 1; }
.areas__head { padding: 0 var(--gutter) clamp(36px, 6vh, 64px); }
.areas__title { font-weight: 400; font-size: clamp(38px, 5vw, 80px); line-height: 1.02; letter-spacing: -.03em; }

.panels { display: flex; gap: 6px; height: 100svh; min-height: 640px; max-height: 960px; background: var(--ivory); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--night);
  transition: flex-grow .95s var(--ease-out);
  isolation: isolate;
}
.panel.is-open { flex-grow: 3.4; }
.panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); transition: transform 1.2s var(--ease-out), filter .8s var(--ease-out); filter: saturate(.85) brightness(.92); }
.panel.is-open .panel__img { transform: scale(1); filter: saturate(1) brightness(1); }
.panel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 25, 23, .16) 0%, rgba(28, 25, 23, 0) 30%, rgba(28, 25, 23, .3) 58%, rgba(28, 25, 23, .9) 100%); transition: opacity .6s; }
.panel.is-open .panel__shade { background: linear-gradient(180deg, rgba(28, 25, 23, .1) 0%, rgba(28, 25, 23, 0) 26%, rgba(28, 25, 23, .18) 44%, rgba(28, 25, 23, .62) 62%, rgba(28, 25, 23, .9) 78%, rgba(28, 25, 23, .96) 100%); }

.panel__toggle {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: clamp(24px, 3vw, 40px);
  color: var(--ivory); text-align: left;
}
.panel__toggle:focus-visible { outline-offset: -6px; }
.panel__name { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; font-size: clamp(16px, 1.4vw, 21px); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.panel__name::before { content: ''; flex: none; inline-size: 34px; block-size: 3px; border-radius: 2px; background: var(--sage-hi); }
/* cerrado: rótulo vertical abajo a la izquierda */
.panel:not(.is-open) .panel__toggle { align-items: flex-end; }
.panel:not(.is-open) .panel__name { writing-mode: vertical-rl; transform: rotate(180deg); }
.panel:not(.is-open) .panel__toggle { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-start; gap: 14px; }

.panel__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: clamp(24px, 3vw, 44px);
  max-width: 560px; color: var(--ivory);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.panel.is-open .panel__content { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.panel__title { font-weight: 500; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.panel__text { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; color: var(--ivory-85); max-width: 48ch; margin-bottom: 22px; }
.panel__text + .panel__text { margin-top: -10px; }
.panel__list { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 22px; max-width: 520px; }
.panel__list li { font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-70); padding: 6px 12px 6px 0; margin-right: 12px; position: relative; }
.panel__list li::after { content: ''; position: absolute; right: 0; top: 50%; width: 1px; height: 12px; background: var(--hair-dark); transform: translateY(-50%); }
.panel__list li:last-child::after { display: none; }
.link-arrow--light { color: var(--ivory); }

/* selector de fondos del hero (solo en modo revisión) */
.variants { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(47, 46, 44, .82); color: var(--ivory); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.variants[hidden] { display: none; }
.variants__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; opacity: .7; }
.variants__sep { width: 1px; height: 18px; margin: 0 8px; background: var(--hair-dark); }
.variants__btn { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--ivory); border: 1px solid var(--hair-dark); transition: background-color .25s, color .25s; }
.variants__btn:hover { background: rgba(239, 232, 225, .12); }
.variants__btn.is-active { background: var(--ivory); color: var(--graphite); border-color: var(--ivory); }


/* ─────────────────────────────────────────────────────────────
   MODO CON MOVIMIENTO (html.js.motion): escena pegajosa
   ───────────────────────────────────────────────────────────── */
html.js.motion .intro { height: 300svh; }
html.js.motion .stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; }
html.js.motion .frame { position: absolute; inset: 0; height: auto; z-index: 1; }
html.js.motion .media { z-index: 1; will-change: clip-path; }
html.js.motion .media__img--skin, html.js.motion .media__video { will-change: transform; }
html.js.motion .media__img--doctor { inset: auto; object-position: 50% 22%; }
html.js.motion .hero { z-index: 3; }
html.js.motion .decl { position: absolute; inset: 0; z-index: 2; background: transparent; padding: 0; display: grid; align-items: center; pointer-events: none; overflow: visible; }
html.js.motion .decl__grid { width: 100%; }
html.js.motion .decl__text { pointer-events: none; }
html.js.motion .decl.is-live .decl__text { pointer-events: auto; }
html.js.motion .decl__figure { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; min-height: 0; background: transparent; }
html.js.motion .decl__img { opacity: 0; }
html.js.motion .decl .line__in { transform: translateY(105%); }
html.js.motion .decl__kicker, html.js.motion .decl__body, html.js.motion .decl__cv, html.js.motion .decl__actions { opacity: 0; transform: translateY(24px); }

/* ═══════════ FRANJAS 4-8 · elementos comunes a las dos versiones ═══════════ */
.home[hidden] { display: none; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 2.4vh, 26px); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.kicker .bar { flex: none; inline-size: 34px; block-size: 3px; border-radius: 2px; background: var(--sage); }
.kicker--light { color: var(--ivory-85); }
.kicker--light .bar { background: var(--sage-hi); }
.sec-title { display: flex; flex-direction: column; align-items: flex-start; font-weight: 400; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); }
.sec-title strong { font-weight: 700; }
.sec-title em { color: var(--sage); font-style: normal; font-weight: 700; }
.sec-title--light { color: var(--ivory); }
.sec-title--light em { color: var(--sage-hi); }
.btn--dark { background: var(--graphite); color: var(--ivory); }
.btn--dark:hover { background: var(--night); }
.btn--sage { background: var(--sage); color: var(--ivory); }
.btn--sage:hover { background: var(--sage-hi); color: var(--night); }
.btn--lg { height: 56px; padding: 0 32px; font-size: 15px; }
.link-arrow--dark { color: var(--ink); }
.cv { display: grid; margin: clamp(26px, 3.5vh, 40px) 0; border-top: 1px solid var(--hair); }
.cv li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--hair); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.5; color: var(--ink-70); }
.cv li::before { content: ''; position: absolute; left: 0; top: 27px; width: 14px; height: 3px; border-radius: 2px; background: var(--sage); }
.steps { display: grid; gap: clamp(28px, 4vh, 44px); }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding-top: 22px; border-top: 1px solid var(--hair); }
.step__n { font-weight: 300; font-size: clamp(34px, 3vw, 48px); line-height: 1; letter-spacing: -.02em; color: var(--sage); }
.step p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--ink-70); max-width: 52ch; }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: clamp(32px, 5vh, 52px); }
/* figuras con parallax: la imagen es más alta que su marco y se desplaza más despacio que la página */
[data-parallax] { position: relative; overflow: hidden; }
[data-parallax] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.js.motion [data-parallax] img { inset: -8% 0; height: 116%; }
[data-parallax-bg] { position: absolute; inset: 0; margin: 0; z-index: 0; overflow: hidden; }
[data-parallax-bg] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.js.motion [data-parallax-bg] img { inset: -7% 0; height: 114%; }
/* datos de contacto (cierre de las dos versiones) */
.close__data { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin: 0; }
.close__data dt { margin-bottom: 8px; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-hi); }
.close__data dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ivory-85); }
.close__data a { text-decoration: underline; text-decoration-color: var(--hair-dark); text-underline-offset: 4px; transition: text-decoration-color .3s, color .3s; }
.close__data a:hover { color: var(--ivory); text-decoration-color: var(--ivory); }
.close__text { margin: 26px 0 34px; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.55; color: var(--ivory-85); max-width: 46ch; }
/* pie */
.foot { padding: 34px 0 40px; background: var(--night); color: var(--ivory-70); border-top: 1px solid var(--hair-dark); }
.foot__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot__brands { display: flex; align-items: center; gap: 22px; }
.foot__brands img { height: 26px; width: auto; opacity: .92; }
.foot__brands .foot__lar { height: 22px; }
.foot__sep { width: 1px; height: 26px; background: var(--hair-dark); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12px; letter-spacing: .04em; }
.foot__legal a { transition: color .3s; }
.foot__legal a:hover { color: var(--ivory); }
.foot__note { width: 100%; font-size: 12px; color: var(--ivory-45); }

/* ═══════════ VERSIÓN 1 «Editorial» ═══════════ */
/* 4 · Sobre mí: retrato y formación */
.about { padding: clamp(96px, 14vh, 160px) 0; background: var(--ivory); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: center; }
.about__figure { grid-column: 1 / 6; margin: 0; aspect-ratio: 4 / 5; background: var(--sand); }
.about__figure img { object-position: 50% 20%; }
.about__copy { grid-column: 7 / 13; max-width: 620px; }
.about__sub { margin-top: 18px; font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.about__sub strong { font-weight: 700; }

/* 5 · LĀR CLINIC: campo salvia y materiales a sangre */
.clinic { position: relative; overflow: hidden; background: var(--sage); color: var(--ivory-hi); }
.clinic__mark { position: absolute; right: 50%; margin-right: -5vw; bottom: -7vw; width: clamp(200px, 22vw, 340px); height: auto; opacity: .12; pointer-events: none; z-index: 0; }
.clinic__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: min(86svh, 820px); }
.clinic__copy { display: flex; flex-direction: column; justify-content: center; max-width: 720px; padding: clamp(80px, 12vh, 140px) clamp(32px, 5vw, 80px) clamp(80px, 12vh, 140px) var(--gutter); }
.clinic__logo { margin: 0 0 clamp(30px, 5vh, 56px); }
.clinic__logo img { width: clamp(150px, 15vw, 220px); height: auto; }
.clinic__sub { margin-bottom: 22px; font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.clinic__sub strong { font-weight: 700; }
.clinic__text { max-width: 46ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; }
.clinic__text strong { font-weight: 500; }
.clinic__address { margin-top: 22px; font-weight: 500; font-size: 15px; line-height: 1.5; letter-spacing: .01em; }
.clinic__links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 26px; }
.clinic__figure { margin: 0; min-height: 60vh; }
.clinic__figure img { object-position: 50% 50%; }

/* 6 · La primera consulta: exploración y dos pasos */
.visit { padding: clamp(96px, 14vh, 160px) 0; background: var(--sand); }
.visit__head { margin-bottom: clamp(40px, 6vh, 72px); }
.visit__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: center; }
.visit__figure { grid-column: 1 / 5; margin: 0; aspect-ratio: 3 / 4; }
.visit__figure img { object-position: 50% 30%; }
.visit__body { grid-column: 6 / 13; }

/* 7 · Información para decidir: índice grande */
.info { padding: clamp(96px, 14vh, 160px) 0; background: var(--ivory); }
.info__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: start; }
.info__copy { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 24px); }
.info__text { margin-top: 24px; max-width: 46ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--ink-70); }
.index { grid-column: 7 / 13; border-top: 1px solid var(--hair); }
.index__link { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 20px; padding: clamp(20px, 2.6vh, 30px) 0; border-bottom: 1px solid var(--hair); color: var(--ink); transition: color .3s, transform .5s var(--ease-out); }
.index__n { font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--sage); }
.index__t { font-weight: 400; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.index__link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.index__link:hover { transform: translateX(12px); color: var(--cacao); }
.index__link:hover svg { transform: translateX(8px); }

/* 8 · Consultar: bloque nocturno */
.close { padding: clamp(96px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); background: var(--night); color: var(--ivory); }
.close__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 6vh, 72px) clamp(24px, 3vw, 48px); align-items: end; }
.close__copy { grid-column: 1 / 8; }
.close .sec-title { font-size: clamp(42px, 5.6vw, 88px); }
.close__data { grid-column: 8 / 13; }

/* ═══════════ VERSIÓN 2 «Cine» ═══════════ */
/* 4 · Sobre mí: quirófano a sangre */
.about2 { position: relative; display: flex; align-items: flex-end; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--night); color: var(--ivory); }
.about2__bg img { object-position: 68% 40%; filter: brightness(.72); }
.about2__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 25, 23, .86) 0%, rgba(28, 25, 23, .5) 48%, rgba(28, 25, 23, .18) 100%), linear-gradient(180deg, rgba(28, 25, 23, .25) 0%, rgba(28, 25, 23, 0) 40%, rgba(28, 25, 23, .88) 100%); }
.about2__inner { position: relative; z-index: 1; width: 100%; padding-top: clamp(120px, 20vh, 200px); padding-bottom: clamp(48px, 8vh, 80px); }
.about2__copy { max-width: 640px; }
.about2__sub { margin-top: 18px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; color: var(--ivory-85); }
.about2__sub strong { font-weight: 700; color: var(--ivory); }
.cv2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(48px, 8vh, 96px); padding-top: 24px; border-top: 1px solid var(--hair-dark); }
.cv2 li { position: relative; padding-top: 16px; font-size: clamp(14px, 1vw, 16px); line-height: 1.5; color: var(--ivory-85); }
.cv2 li::before { content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--sage-hi); }

/* 4 · Sobre mí v3: quirófano a sangre (foto volteada) + lista de la v1 a la derecha */
.about3 { position: relative; display: flex; align-items: center; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--night); color: var(--ivory); }
.about3__bg img { object-position: 28% 42%; filter: brightness(.72); }
.about3__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 25, 23, .18) 0%, rgba(28, 25, 23, .32) 38%, rgba(28, 25, 23, .78) 68%, rgba(28, 25, 23, .92) 100%), linear-gradient(180deg, rgba(28, 25, 23, .28) 0%, rgba(28, 25, 23, 0) 38%, rgba(28, 25, 23, .55) 100%); }
.about3__inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: center; padding-top: clamp(96px, 14vh, 140px); padding-bottom: clamp(56px, 8vh, 96px); }
.about3__copy { grid-column: 7 / 13; max-width: 620px; }
.about3__sub { margin-top: 18px; font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: var(--ivory-85); }
.about3__sub strong { font-weight: 700; color: var(--ivory); }
.about__text { margin-top: 22px; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.55; color: var(--ink-70); max-width: 46ch; }
.about__text strong { font-weight: 500; color: var(--ink); }
.about2__text, .about3__text { margin-top: 22px; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.55; color: var(--ivory-85); max-width: 46ch; }
.about3__copy .btn { margin-top: 28px; }
.about2__text strong, .about3__text strong { font-weight: 500; color: var(--ivory); }
@media (min-width: 821px) {
  .about .sec-title .line,
  .about2 .sec-title .line,
  .about3 .sec-title .line { white-space: nowrap; }
}
.about .sec-title,
.about2 .sec-title,
.about3 .sec-title { font-size: clamp(32px, 3.8vw, 52px); }
.cv--light { border-top-color: var(--hair-dark); }
.cv--light li { border-bottom-color: var(--hair-dark); color: var(--ivory-85); }
.cv--light li::before { background: var(--sage-hi); }

/* 5 · LĀR CLINIC: materiales a sangre y tarjeta de cristal salvia */
.clinic2 { position: relative; display: flex; align-items: center; min-height: min(92svh, 860px); overflow: hidden; isolation: isolate; background: var(--night); color: var(--ivory-hi); }
.clinic2__bg img { object-position: 62% 50%; }
.clinic2__inner { position: relative; z-index: 1; width: 100%; padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.clinic2__card { max-width: 560px; padding: clamp(32px, 4vw, 56px); background: rgba(96, 109, 99, .8); border: 1px solid rgba(239, 232, 225, .18); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); }
.clinic2__card .clinic__logo { margin-bottom: clamp(24px, 4vh, 40px); }
.clinic2__card .clinic__sub { font-size: clamp(28px, 2.8vw, 42px); }

/* 6 · La primera consulta: columna fija y pasos con numerales grandes */
.visit2 { padding: clamp(96px, 14vh, 160px) 0; background: var(--ivory); }
.visit2__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: start; }
.visit2__aside { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 24px); }
.visit2__aside .visit__actions { margin-top: clamp(28px, 4vh, 44px); }
.visit2__flow { grid-column: 7 / 13; }
.steps--2 { gap: clamp(36px, 5vh, 56px); }
.steps--2 .step { grid-template-columns: 1fr; gap: 8px; padding-top: 0; border-top: 0; }
.steps--2 .step__n { font-weight: 200; font-size: clamp(64px, 7vw, 120px); letter-spacing: -.03em; color: var(--greige); }
.steps--2 .step p { position: relative; padding-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.25vw, 21px); color: var(--ink); }
.steps--2 .step p::before { content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--sage); }
.visit2__figure { margin: clamp(40px, 6vh, 64px) 0 0; aspect-ratio: 4 / 3; }
.visit2__figure img { object-position: 50% 30%; }

/* 7 · Información para decidir: mosaico de tarjetas */
.info2 { padding: clamp(96px, 14vh, 160px) 0; background: var(--sand); }
.info2__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 3vw, 48px); align-items: end; margin-bottom: clamp(40px, 6vh, 64px); }
.info2__text { max-width: 48ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--ink-70); }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tile { grid-column: span 2; }
.tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
.tile__link { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(220px, 24vw, 300px); padding: clamp(22px, 2.2vw, 32px); overflow: hidden; isolation: isolate; background: radial-gradient(130% 90% at 100% 0%, rgba(135, 95, 69, .34), rgba(135, 95, 69, 0) 58%), var(--night); color: var(--ivory); transition: transform .5s var(--ease-out), background-color .5s var(--ease-out); }
.tile__link::before { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--sage-hi); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.tile__link:hover { background: var(--graphite); transform: translateY(-4px); }
.tile__link:hover::before { transform: scaleX(1); }
.tile__n { font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--sage-hi); }
.tile__t { max-width: 14ch; padding-right: 36px; font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.tile__arrow { position: absolute; right: clamp(22px, 2.2vw, 32px); top: clamp(22px, 2.2vw, 32px); width: 22px; height: 22px; }
.tile__arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.tile__link:hover .tile__arrow svg { transform: translateX(6px); }

/* 8 · Consultar: el doctor en consulta, a sangre */
.close2 { position: relative; display: flex; align-items: center; min-height: min(100svh, 900px); overflow: hidden; isolation: isolate; background: var(--night); color: var(--ivory); }
.close2__bg img { object-position: 82% 28%; }
.close2__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 25, 23, .94) 0%, rgba(28, 25, 23, .82) 38%, rgba(28, 25, 23, .3) 68%, rgba(28, 25, 23, .18) 100%), linear-gradient(180deg, rgba(28, 25, 23, .1) 0%, rgba(28, 25, 23, 0) 50%, rgba(28, 25, 23, .9) 100%); }
.close2__inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 6vh, 64px) clamp(24px, 3vw, 48px); padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(56px, 8vh, 96px); }
.close2__copy { grid-column: 1 / 7; }
.close__data--2 { grid-column: 1 / 7; }
.foot--2 { border-top-color: transparent; }

/* ═══════════ HOME 3 · blog, Instagram, publicaciones, pie mapa, sello Google ═══════════ */
.journal { padding: clamp(96px, 14vh, 168px) 0; background: var(--sand); }
.journal__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(40px, 6vh, 72px); }
.journal__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: stretch; min-height: min(72vh, 760px); }
.journal__feat, .journal__stack { min-height: 0; height: 100%; }
.journal__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.journal__card { min-height: 0; height: 100%; }
.journal__feat-link, .journal__card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.journal__feat-link { position: relative; isolation: isolate; }
.journal__feat-fig, .journal__card-fig { margin: 0; overflow: hidden; background: var(--ivory); }
.journal__feat-fig { flex: 1; min-height: 0; height: 100%; border-radius: 28px; }
.journal__card-fig { flex: 1 1 auto; min-height: 0; border-radius: 22px; }
.journal__feat-fig img, .journal__card-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.journal__feat-fig img { object-position: 50% 22%; }
.journal__feat-link:hover img, .journal__card-link:hover img { transform: scale(1.045); }
.journal__feat-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 56px 28px 28px; border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0) 0%, rgba(28, 25, 23, .78) 100%);
  color: var(--ivory);
}
.journal__feat .journal__tag { color: var(--sage-hi); }
.journal__feat .journal__excerpt { color: var(--ivory-85); }
.journal__feat .journal__more { color: var(--ivory); }
.journal__card-copy { padding: 18px 6px 8px; }
.journal__tag { margin-bottom: 10px; font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.journal__title { font-weight: 400; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.journal__card .journal__title { font-size: clamp(22px, 1.7vw, 28px); }
.journal__excerpt { margin-top: 12px; max-width: 46ch; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.5; color: var(--ink-70); }
.journal__more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.journal__more::after { content: ''; display: block; width: 28px; height: 1px; margin-top: 6px; background: currentColor; transform: scaleX(.45); transform-origin: left; transition: transform .45s var(--ease-out); }
.journal__feat-link:hover .journal__more::after { transform: scaleX(1); }

.gram { position: relative; background: var(--night); color: var(--ivory); }
.gram__bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding-top: clamp(72px, 10vh, 110px); padding-bottom: clamp(36px, 5vh, 56px); }
.gram .sec-title { font-size: clamp(36px, 4.2vw, 62px); }
.gram__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gram__grid li { margin: 0; }
.gram__cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--graphite); }
.gram__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s var(--ease-out); }
.gram__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,0) 45%, rgba(28,25,23,.38) 100%); opacity: .55; transition: opacity .45s var(--ease-out); }
.gram__cell:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gram__cell:hover .gram__veil { opacity: .2; }

.papers { padding: clamp(96px, 14vh, 160px) 0 72px; background: var(--ivory); overflow: hidden; }
.papers__head { margin-bottom: clamp(36px, 5vh, 56px); }
.papers__lead { margin-top: 18px; max-width: 46ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--ink-70); }
.papers__scroller { overflow-x: auto; padding: 12px var(--gutter) 28px; scrollbar-width: thin; }
.papers__row { display: flex; gap: clamp(18px, 2vw, 28px); width: max-content; }
.papers__item { flex: 0 0 min(240px, 64vw); max-width: 260px; transition: transform .7s var(--ease-out); }
.papers__item:nth-child(odd) { transform: rotate(-2.4deg) translateY(10px); }
.papers__item:nth-child(even) { transform: rotate(2.1deg) translateY(-6px); }
.papers__item:hover { transform: rotate(0) translateY(-14px); }
.papers__fig { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--ivory-hi); box-shadow: 0 18px 50px rgba(28, 25, 23, .14), 0 2px 0 rgba(201, 188, 169, .4); }
.papers__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.papers__meta { margin-top: 14px; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.papers__name { margin-top: 6px; font-weight: 400; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }

.foot--map { padding: 56px 0 40px; }
.foot__map { display: grid; grid-template-columns: 1.1fr 1.6fr .9fr; gap: 36px 48px; align-items: start; }
.foot__map .foot__brands { grid-column: 1 / -1; }
.foot__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__col-title { margin: 0 0 14px; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-45); white-space: nowrap; }
.foot__nav a { display: inline-block; padding: 5px 0; font-size: 14px; color: var(--ivory-85); transition: color .3s; }
.foot__nav a:hover { color: var(--ivory); }
.foot__form { max-width: 360px; }
.foot__form-lead { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--ivory-70); }
.foot__field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(239, 232, 225, .08); }
.foot__field input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ivory); font: inherit; font-size: 14px; }
.foot__field input::placeholder { color: var(--ivory-45); }
.foot__field .btn { height: 42px; padding: 0 18px; font-size: 13px; }
.foot__consent, .foot__ok { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--ivory-45); }
.foot__ok { color: var(--sage-hi); }
.foot__map .foot__legal { grid-column: 1 / 3; }
.foot__map .foot__note { grid-column: 1 / -1; }

.gseal { position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 46; }
.gseal.is-off, body.menu-open .gseal { display: none; }
.gseal__pill {
  display: flex; align-items: center; gap: 8px; min-height: 42px;
  padding: 4px 12px 4px 4px; border-radius: 999px; color: #1f1c1a;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 8px 22px rgba(47, 46, 44, .12), inset 0 1px 0 rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
}
.gseal__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.gseal__mark svg { width: 16px; height: 16px; }
.gseal__copy { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.gseal__brand { font-weight: 700; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: rgba(47, 46, 44, .62); }
.gseal__score { display: flex; align-items: center; gap: 6px; }
.gseal__score strong { font-weight: 700; font-size: 15px; letter-spacing: -.03em; }
.gseal__stars { font-size: 10px; letter-spacing: .02em; color: #e0b43a; }
.gseal__close {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%; color: var(--graphite);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease-out), background-color .28s var(--ease-out);
}
.gseal__close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; width: 10px; height: 10px; }
.gseal:hover .gseal__close, .gseal:focus-within .gseal__close { opacity: 1; pointer-events: auto; }
.gseal__close:hover { background: rgba(255, 255, 255, .86); }
.gseal__pill:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .52); box-shadow: 0 10px 26px rgba(47, 46, 44, .16), inset 0 1px 0 rgba(255, 255, 255, .65); }
@media (hover: none) {
  .gseal__close { opacity: 1; pointer-events: auto; }
}

/* ═══════════ INTERIOR · ficha de lectura (no es la home) ═══════════ */
.page-inner { background: var(--ivory); }
.page-inner .header { color: var(--graphite); }
.dossier {
  display: grid; grid-template-columns: minmax(0, 1fr) min(300px, 28%);
  grid-template-areas: "open toc" "body toc";
  column-gap: clamp(40px, 5vw, 72px); align-items: start;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 0;
}
.dossier-open { grid-area: open; min-width: 0; }
.dossier__body { grid-area: body; min-width: 0; padding-bottom: clamp(72px, 10vh, 120px); }
.dossier__toc {
  grid-area: toc;
  position: sticky; top: calc(var(--header-h) + 18px);
  padding-top: 8px; padding-bottom: 40px;
}
.dossier__toc .index { grid-column: auto; list-style: none; padding: 0; margin: 0; }
.dossier__toc .index__link { grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; }
.dossier__toc .index__link svg { display: none; }
.dossier__toc .index__t { font-size: 16px; }
.dossier__toc .index__link.is-current { color: var(--cacao); }
.dossier__toc .index__link.is-current .index__n { color: var(--cacao); }
.crumb {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 28px;
  font-weight: 400; font-size: 13px; letter-spacing: .02em; color: var(--ink-70);
}
.crumb a { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.crumb a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.crumb [aria-current="page"] { color: var(--ink); text-decoration: none; }
.dossier-open { padding-bottom: clamp(48px, 7vh, 80px); }
.dossier-open h1 {
  font-weight: 500; font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04; letter-spacing: -.03em; max-width: 11ch; margin: 0 0 22px;
}
.dossier-open h1 span { font-weight: 400; }
.dossier-lede {
  max-width: 48ch; font-size: 18px; line-height: 1.55; color: var(--ink-70); margin: 0 0 28px;
}
.band { padding: clamp(56px, 8vh, 88px) 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.band--sand { background: var(--sand); padding-left: 28px; padding-right: 28px; border-radius: var(--radius); }
.band .sec-title { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 22px; }
.inner-copy { font-size: 17px; line-height: 1.62; color: var(--ink-70); max-width: 58ch; }
.inner-copy + .inner-copy { margin-top: 1.05em; }
.band .link-arrow { margin-top: 22px; }
.fig {
  margin: 28px 0 0; overflow: hidden; border-radius: var(--radius); background: var(--sand);
}
.fig--portrait { aspect-ratio: 3 / 4; max-width: 280px; max-height: 420px; }
.fig--consult { aspect-ratio: 3 / 4; max-width: 420px; max-height: 560px; }
.fig--wide { aspect-ratio: 16 / 9; max-height: 420px; width: 100%; max-width: none; }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig--portrait img { object-position: 58% 30%; }
.fig--consult img { object-position: 50% 20%; }
.fig--wide img { object-position: 50% 38%; }
.tech-row {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px 40px; padding: 22px 0; border-bottom: 1px solid var(--hair);
}
.tech-list { border-top: 1px solid var(--hair); margin-top: 28px; }
.tech-row h3 { font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.tech-row p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-70); }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.risk-grid h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.faq { border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none; min-height: 44px;
  font-weight: 400; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.3; letter-spacing: -.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid var(--cacao); border-bottom: 1.5px solid var(--cacao);
  transform: rotate(45deg); transition: transform .35s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(225deg); }
.faq__item p { padding: 0 0 22px; max-width: 58ch; font-size: 16px; line-height: 1.55; color: var(--ink-70); }
.page-inner .close { padding: 96px 0 80px; }
.page-inner .close .sec-title { font-size: clamp(32px, 4vw, 56px); }

@media (max-width: 1024px) {
  .dossier {
    grid-template-columns: 1fr;
    grid-template-areas: "open" "toc" "body";
  }
  .dossier__toc { position: static; padding: 0 0 28px; }
  .fig--portrait, .fig--consult { max-width: 100%; max-height: none; }
}
@media (max-width: 820px) {
  .dossier { padding-top: calc(var(--header-h) + 28px); }
  .dossier-open h1 { font-size: clamp(36px, 10vw, 48px); max-width: none; }
  .band { padding: 48px 0; }
  .tech-row, .risk-grid { grid-template-columns: 1fr; gap: 10px; }
  .faq__item summary { font-size: 17px; }
}

/* estados iniciales para la entrada del hero */
html.js.motion .hero .line__in { transform: translateY(110%); }
html.js.motion .hero__eyebrow, html.js.motion .hero__lede, html.js.motion .hero__actions, html.js.motion .corner { opacity: 0; }
html.js.motion .media__img--skin, html.js.motion .media__video { transform: scale(1.08); }

/* ───────── responsive ───────── */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; }
  .header__actions .btn--cta { display: none; }
}
@media (max-width: 1024px) {
  .decl__text { grid-column: 1 / 7; }
  .decl__figure { grid-column: 7 / 13; }
  .about__figure { grid-column: 1 / 6; }
  .about__copy { grid-column: 6 / 13; }
  .about3__copy { grid-column: 6 / 13; }
  .visit__figure { grid-column: 1 / 5; }
  .visit__body { grid-column: 5 / 13; }
  .info__copy, .visit2__aside { position: static; }
  .cv2 { grid-template-columns: 1fr 1fr; }
  .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
  .tile:nth-child(5) { grid-column: span 6; }
  .tile:nth-child(5) .tile__link { min-height: 180px; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand { width: 128px; height: 35px; }
  .lang { display: none; }
  .hero { padding-bottom: 132px; }
  .hero__title { font-size: clamp(46px, 13vw, 76px); max-width: none; }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: .14em; gap: 8px; }
  .media__img--skin, .media__video { object-position: 58% 45%; }
  .hero__lede { font-size: 16px; }
  .corner--br { display: none; }
  .decl__grid { grid-template-columns: 1fr; gap: 40px; }
  .decl { padding-bottom: 0; }
  .decl__text, .decl__figure { grid-column: auto; }
  .decl__figure { min-height: 0; aspect-ratio: 4 / 5; width: 100vw; margin-left: calc(-1 * var(--gutter)); justify-self: start; }
  html.js.motion .decl__figure { position: static; width: 100vw; }
  .seam-mark { width: 38vw; top: -12vw; left: -3vw; }
  html.js.motion .intro { height: auto; }
  html.js.motion .stage { position: relative; height: auto; overflow: visible; }
  html.js.motion .frame { position: relative; height: 100svh; }
  html.js.motion .decl { position: relative; padding: clamp(72px, 12vh, 120px) 0; display: block; pointer-events: auto; }
  html.js.motion .decl__img { opacity: 1; }
  html.js.motion .decl__figure { background: var(--sand); }
  html.js.motion .decl .line__in { transform: none; }
  html.js.motion .decl__kicker, html.js.motion .decl__body, html.js.motion .decl__cv, html.js.motion .decl__actions { opacity: 1; transform: none; }
  .panels { display: grid; grid-template-rows: 1fr 1fr 1fr; height: 100svh; min-height: 600px; max-height: none; gap: 4px; transition: grid-template-rows .8s var(--ease-out); }
  .panels[data-open="0"] { grid-template-rows: 6fr 1fr 1fr; }
  .panels[data-open="1"] { grid-template-rows: 1fr 6fr 1fr; }
  .panels[data-open="2"] { grid-template-rows: 1fr 1fr 6fr; }
  .panel { flex: none; min-height: 0; }
  .panel:not(.is-open) .panel__toggle { flex-direction: row; align-items: center; }
  .panel:not(.is-open) .panel__name { writing-mode: horizontal-tb; transform: none; margin: 0; }
  .panel__content { max-width: none; }
  .panel__name { font-size: 14px; }
  /* franjas 4-8 en una columna */
  .about, .visit, .info, .visit2, .info2 { padding: 72px 0; }
  .about__grid, .visit__grid, .info__grid, .close__grid, .visit2__grid, .close2__inner, .about3__inner { grid-template-columns: 1fr; gap: 36px 0; }
  .about__figure, .about__copy, .visit__figure, .visit__body, .info__copy, .index, .close__copy, .close__data, .visit2__aside, .visit2__flow, .close2__copy, .close__data--2, .about3__copy { grid-column: auto; }
  .about__figure { aspect-ratio: 4 / 5; max-height: 70vh; }
  .visit__figure { aspect-ratio: 4 / 3; }
  .clinic__grid { grid-template-columns: 1fr; min-height: 0; }
  .clinic__copy { padding: 72px var(--gutter) 56px; }
  .clinic__figure { min-height: 0; aspect-ratio: 4 / 5; }
  .clinic__mark { width: 40vw; left: auto; right: -8vw; bottom: 42vh; }
  .step { grid-template-columns: 52px 1fr; gap: 14px; }
  .index__link { grid-template-columns: 36px 1fr auto; gap: 14px; }
  .close { padding: 80px 0 64px; }
  .close__data { grid-template-columns: 1fr; gap: 22px; }
  .about2 { min-height: 0; }
  .about2__inner { padding-top: 96px; }
  .about3 { min-height: 0; display: block; background: var(--night); }
  .about3__bg { position: relative; inset: auto; height: 62vh; min-height: 280px; }
  .about3__bg img { object-position: 18% 58%; }
  .about3__bg::after { background: linear-gradient(180deg, rgba(28, 25, 23, .08) 0%, rgba(28, 25, 23, 0) 40%, rgba(28, 25, 23, .55) 100%); }
  .about3__inner { padding-top: 28px; padding-bottom: 56px; }
  .cv2 { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .clinic2 { min-height: 0; }
  .clinic2__card { padding: 28px 24px; }
  .info2__head { grid-template-columns: 1fr; gap: 20px; }
  .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 6; }
  .tile__link, .tile:nth-child(5) .tile__link { min-height: 150px; }
  .close2 { min-height: 0; }
  .close2__inner { padding-top: 110px; padding-bottom: 56px; }
  .close2__bg img { object-position: 60% 20%; }
  .foot__grid { flex-direction: column; align-items: flex-start; gap: 22px; }
  .journal { padding: 72px 0; }
  .journal__grid { grid-template-columns: 1fr; min-height: 0; }
  .journal__feat, .journal__stack, .journal__card { height: auto; }
  .journal__stack { display: flex; flex-direction: column; }
  .journal__feat-fig { min-height: 280px; }
  .journal__card-fig { flex: none; aspect-ratio: 16 / 10; }
  .gram__bar { padding-top: 64px; }
  .gram__grid { grid-template-columns: 1fr 1fr; }
  .papers { padding: 72px 0 48px; }
  .papers__item, .papers__item:nth-child(odd), .papers__item:nth-child(even) { transform: none; }
  .papers__item:hover { transform: none; }
  .foot__map { grid-template-columns: 1fr; gap: 28px; }
  .foot__nav { grid-template-columns: 1fr 1fr; }
  .foot__map .foot__legal { grid-column: auto; }
  .foot__field { flex-wrap: wrap; border-radius: 22px; }
  .foot__field .btn { width: 100%; }
  .panel.is-open .panel__shade { background: linear-gradient(180deg, rgba(28, 25, 23, .1) 0%, rgba(28, 25, 23, 0) 18%, rgba(28, 25, 23, .3) 34%, rgba(28, 25, 23, .78) 50%, rgba(28, 25, 23, .94) 70%, rgba(28, 25, 23, .97) 100%); }
}

/* ES | EN: conserva la tipografía y permite cambiar idioma también en móvil. */
.lang.language-selector { display: inline-flex; white-space: nowrap; }
.language-selector a { padding: 8px 0; text-underline-offset: 4px; }
.language-selector a[aria-current] { text-decoration: underline; }
