/* LVNG · lvng.health — hoja común. Estructura y ritmo inspirados en biograph.com; contenido y fotos propios. */

:root {
  --ink: #111214;
  --ink-2: #2b2c2f;
  --muted: rgba(17, 18, 20, .62);
  --muted-2: rgba(17, 18, 20, .45);
  --line: rgba(17, 18, 20, .08);
  --soft: #f4f4f4;
  --soft-2: #f8f8f8;
  --dark: #111214;
  --white: #fff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr: 64px;
  --gut: clamp(20px, 3.75vw, 60px);
  --max: 1600px;
  --r: 16px;
  --f: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --dots: "Doto", "Geist", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 16px/1.55 var(--f); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid #6b7cff; outline-offset: 3px; border-radius: 6px; }
body.is-locked { overflow: hidden; }
/* Lo que lleva «hidden» se oculta aunque su clase tenga display (los megamenús gestionan su propia visibilidad) */
[hidden]:not(.mega) { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 820px; }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Marca: el logo de puntos ---------- */
/* «LVNG» se dibuja con el logo (assets/img/lvng.svg, rejilla 5×7 de puntos redondos) como máscara del color del texto.
   El texto sigue en el HTML para buscadores y lectores de pantalla. */
.lvng, .logo {
  display: inline-block; overflow: hidden; white-space: nowrap; text-indent: 120%; vertical-align: baseline;
  background: currentColor; -webkit-mask: url(/assets/img/lvng.svg) center / contain no-repeat; mask: url(/assets/img/lvng.svg) center / contain no-repeat;
}
.lvng { height: .7em; width: calc(.7em * 230 / 70); margin: 0 .06em; }
.lvng--sm { height: .66em; width: calc(.66em * 230 / 70); }
.logo { display: block; height: 17px; width: calc(17px * 230 / 70); }
.eyebrow .lvng { height: 1.05em; width: calc(1.05em * 230 / 70); vertical-align: -.12em; margin: 0 .35em 0 0; }
.mk { width: 40px; height: 40px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--ink); font-size: 0; }
.mk::before { content: ""; width: 17px; height: 22px; background: #fff; -webkit-mask: url(/assets/img/lvng-stack.svg) center / contain no-repeat; mask: url(/assets/img/lvng-stack.svg) center / contain no-repeat; }
.mk--sm { width: 38px; height: 38px; }
.mk--sm::before { width: 16px; height: 21px; }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 18px; }
.h2 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.06; font-weight: 400; letter-spacing: -.028em; }
.h2--xl { font-size: clamp(38px, 4.2vw, 64px); line-height: 1.02; }
.lead { color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; max-width: 680px; margin: 18px auto 0; }
.lead a { color: #3d63ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px; font-size: 14.5px; font-weight: 450; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--dark, .btn--hdr { background: var(--ink-2); color: #fff; }
.btn--dark:hover, .btn--hdr:hover { background: #000; }
.btn--light { background: rgba(255, 255, 255, .92); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }
.btn--soft { background: var(--soft); color: var(--ink); }
.btn--soft:hover { background: #e9e9e9; }
.btn--block { width: 100%; }

/* ---------- Aparición ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-in] { opacity: 0; transform: translateY(22px); filter: blur(8px); animation: rise 1.2s var(--ease) calc(.25s + var(--d, 0s)) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { rotate: 360deg; } }

/* ============ CABECERA ============ */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); }
.hdr__bar {
  position: relative; height: var(--hdr); display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  background: #fff; color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.hdr.is-scrolled .hdr__bar { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
/* Sobre secciones oscuras la cabecera se vuelve oscura */
.hdr.is-dark:not(.is-open) .hdr__bar { background: #0b0b0c; color: #fff; border-color: rgba(255, 255, 255, .08); }
.hdr.is-dark.is-scrolled:not(.is-open) .hdr__bar { background: rgba(12, 12, 14, .62); }
.hdr.is-dark:not(.is-open) .btn--hdr { background: rgba(255, 255, 255, .92); color: var(--ink); }
.hdr.is-dark:not(.is-open) .btn--hdr:hover { background: #fff; }
.hdr.is-dark:not(.is-open) .nav__a:hover, .hdr.is-dark:not(.is-open) .nav__a[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.hdr.is-open .hdr__bar { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav__a { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 8px; font-size: 15px; transition: background .3s var(--ease); }
.nav__a:hover, .nav__a[aria-expanded="true"] { background: rgba(17, 18, 20, .05); }
.nav__a svg { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.nav__a[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr__end { display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang__btn { font-size: 13.5px; letter-spacing: .04em; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; color: var(--ink);
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 12px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .35s var(--ease);
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.lang__list a:hover { background: var(--soft); }
.lang__list a[aria-current] { font-weight: 500; }

.mega {
  position: absolute; left: 0; right: 0; top: var(--hdr); color: var(--ink);
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease);
}
.mega[hidden] { display: block; visibility: hidden; }
.mega.is-open { visibility: visible; clip-path: inset(0 0 0 0); }
.mega__in { padding: 44px var(--gut) 52px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.mega__lead { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.mega__it { display: flex; align-items: center; gap: 16px; padding: 8px; margin: -8px; border-radius: 12px; opacity: 0; transform: translateY(10px); transition: background .3s, opacity .5s var(--ease), transform .6s var(--ease); }
.mega.is-open .mega__it { opacity: 1; transform: none; }
.mega.is-open .mega__it:nth-child(2) { transition-delay: 0s, .05s, .05s; }
.mega.is-open .mega__it:nth-child(3) { transition-delay: 0s, .1s, .1s; }
.mega.is-open .mega__it:nth-child(4) { transition-delay: 0s, .15s, .15s; }
.mega.is-open .mega__it:nth-child(5) { transition-delay: 0s, .2s, .2s; }
.mega.is-open .mega__it:nth-child(6) { transition-delay: 0s, .25s, .25s; }
.mega__it:hover { background: rgba(17, 18, 20, .04); }
.mega__it img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; flex: none; transition: transform .6s var(--ease); }
.mega__it:hover img { transform: scale(1.06); }
.mega__it b { display: block; font-weight: 500; font-size: 16px; }
.mega__it small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.veil { position: fixed; inset: 0; z-index: 40; background: rgba(17, 18, 20, .18); opacity: 0; visibility: hidden; transition: .45s var(--ease); }
.veil.is-on { opacity: 1; visibility: visible; }

.burger { display: none; width: 40px; height: 38px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 18.5px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: var(--hdr) 0 0; z-index: 49; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; overflow-y: auto; }
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav__in { padding: 20px var(--gut) 40px; display: flex; flex-direction: column; }
.mnav__a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 26px; letter-spacing: -.02em; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.mnav__a::-webkit-details-marker { display: none; }
.mnav.is-open .mnav__a { opacity: 1; transform: none; }
.mnav__acc i { width: 14px; height: 14px; position: relative; }
.mnav__acc i::before, .mnav__acc i::after { content: ""; position: absolute; inset: 6px 0 auto; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.mnav__acc i::after { transform: rotate(90deg); }
.mnav__acc[open] i::after { transform: rotate(0); }
.mnav__acc a { display: block; padding: 10px 0 10px 4px; color: var(--muted); font-size: 18px; }
.mnav__acc[open] { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mnav__acc[open] summary { border-bottom: 0; }
.mnav__lang { display: flex; gap: 18px; margin: 28px 0; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.mnav__lang [aria-current] { color: var(--ink); font-weight: 500; }

/* ============ PORTADA ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #0b0b0c; color: #fff; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.78); transform: scale(1.12); animation: heroZoom 2.8s var(--ease) .05s forwards; will-change: transform; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 28%, rgba(0,0,0,.3) 58%, rgba(0,0,0,.88) 100%); }
.hero__txt { position: relative; padding-bottom: clamp(36px, 6vh, 64px); }
.hero__h { font-size: clamp(42px, 4.25vw, 68px); line-height: 1; font-weight: 400; letter-spacing: -.03em; }
.hero__p { margin: 18px 0 28px; max-width: 640px; color: rgba(255, 255, 255, .76); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.facts { display: flex; }
.facts li { padding: 2px clamp(16px, 2vw, 32px); text-align: center; border-left: 1px solid rgba(255, 255, 255, .2); }
.facts li:first-child { border-left: 0; }
.facts li:last-child { padding-right: 0; }
.facts b { display: block; font-size: 15px; font-weight: 500; }
.facts span { display: block; margin-top: 3px; font-size: 14px; color: rgba(255, 255, 255, .62); }

/* ============ SECCIONES ============ */
.sec { padding: clamp(84px, 10vw, 150px) 0; position: relative; }
.sec--tight { padding-top: 32px; }
.sec--line { border-top: 1px solid var(--line); }
.sec--soft { background: var(--soft-2); }
.sec--dark { background: radial-gradient(120% 80% at 50% 0%, #26272b 0%, var(--dark) 55%); color: #fff; overflow: hidden; }
.head { text-align: center; margin: 0 auto 64px; max-width: 860px; }
.head .btn { margin-top: 28px; }
.head--dark .lead { color: rgba(255, 255, 255, .6); }

/* ============ PASOS + MANTÉN PULSADO ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hold { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
.hold__m { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: #111; isolation: isolate; transform: translateZ(0); }
.hold__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1s var(--ease), transform 1.4s var(--ease); pointer-events: none; }
.hold__m::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.2) 100%); transition: background 1s var(--ease); }
.hold:hover .hold__img { transform: scale(1.03); }
.hold.is-held .hold__img { filter: blur(26px) saturate(1.25) brightness(.8); transform: scale(1.25); }
.hold.is-held .hold__m::after { background: rgba(0, 0, 0, .12); }
.chip { position: absolute; z-index: 3; top: 20px; left: 20px; display: none; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 8px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.chip svg { width: 15px; height: 15px; stroke-width: 1.3; }
.hold.is-held .chip { opacity: 0; transform: translateY(-6px); }
.hold__fx { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; opacity: 0; filter: blur(6px); transform: scale(1.15); transition: opacity .6s var(--ease), filter .8s var(--ease), transform 1s var(--ease); }
.hold.is-held .hold__fx { opacity: 1; filter: none; transform: none; }
.step__cap { position: relative; z-index: 3; padding-top: 20px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.step__cap h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.step__cap h3 span { margin-right: 4px; }
.step__cap p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 480px; }

.ring { position: absolute; width: 74%; aspect-ratio: 1; left: 13%; top: 50%; translate: 0 -50%; container-type: inline-size; animation: spin 70s linear infinite; }
.ring img { position: absolute; left: 50%; top: 50%; width: 11cqw; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.25); transform: translate(-50%, -50%) rotate(var(--a)) translateY(-36cqw) scale(0); transition: transform .8s var(--ease) var(--dl); }
.hold.is-held .ring img { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-50cqw) scale(1); }
.ring__c { position: relative; text-align: center; color: #fff; }
.ring__c b { display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.ring__c span { display: block; margin-top: 10px; font-size: 15px; }
.ring__c small { display: block; font-size: 15px; color: rgba(255, 255, 255, .65); }

.glass { width: min(76%, 340px); padding: 20px 18px 10px; border-radius: 14px; color: #fff; background: rgba(30, 24, 20, .32); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transform: translateY(18px); transition: transform 1s var(--ease); }
.hold.is-held .glass { transform: none; }
.glass__top { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, .55); font-size: 11px; }
.glass__av { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff 0 22%, transparent 24%), radial-gradient(circle at 50% 110%, #fff 0 42%, transparent 44%), rgba(255,255,255,.25); }
.glass__h { margin: 10px 0 18px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.glass__list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.glass__list li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.hold.is-held .glass__list li { opacity: 1; transform: none; }
.glass__list li:nth-child(1) { transition-delay: .15s; } .glass__list li:nth-child(2) { transition-delay: .22s; } .glass__list li:nth-child(3) { transition-delay: .29s; } .glass__list li:nth-child(4) { transition-delay: .36s; } .glass__list li:nth-child(5) { transition-delay: .43s; }
.glass__list i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.glass__list em { margin-left: auto; font-style: normal; font-size: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
.glass__list em.hi { background: rgba(255, 255, 255, .78); color: var(--ink); }

.plan { width: min(80%, 350px); display: grid; gap: 10px; }
.plan li { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(.1s + var(--i) * .09s); }
.hold.is-held .plan li { opacity: 1; transform: none; }
.plan img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.plan b { display: block; font-size: 13px; font-weight: 500; }
.plan small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.plan span { flex: 1; min-width: 0; }
.spin { width: 16px; height: 16px; flex: none; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,0), rgba(255,255,255,.9)); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); animation: spin 1s linear infinite; }
.ok { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #3fb984 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ============ PRINCIPIOS ============ */
#por-que { text-align: center; }
.quotes { display: grid; margin: 0 auto; max-width: 1200px; }
.quote { grid-area: 1 / 1; margin: 0; font: 400 clamp(32px, 4.4vw, 70px)/1.06 var(--serif); letter-spacing: -.01em; opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1s var(--ease); }
.quote.is-on { opacity: 1; filter: none; transform: none; }
.sign { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sign .mk { margin-bottom: 10px; }
.sign b { font-size: 15px; font-weight: 500; }
.sign small { font-size: 14px; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.dots button { width: 6px; height: 4px; border-radius: 2px; background: rgba(17, 18, 20, .15); transition: width .5s var(--ease), background .5s; }
.dots button.is-on { width: 28px; background: var(--ink); }

/* ============ CIFRAS ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.stat {
  position: relative; aspect-ratio: 1; min-height: 300px; padding: clamp(24px, 2.4vw, 40px); display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; isolation: isolate; background: #fff;
  transition: transform .8s var(--ease), border-radius .8s var(--ease), color .6s var(--ease), box-shadow .8s var(--ease);
}
.stat:first-child { border-radius: var(--r) 0 0 var(--r); }
.stat:last-child { border-radius: 0 var(--r) var(--r) 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__n { font-size: clamp(64px, 6.6vw, 104px); line-height: 1; letter-spacing: -.045em; font-weight: 400; }
.stat__n small { font-size: .42em; letter-spacing: -.02em; vertical-align: top; position: relative; top: .3em; }
.stat__t { font-size: 15.5px; line-height: 1.5; max-width: 340px; transition: color .6s var(--ease); }
.stat__t sup { font-size: 10px; opacity: .6; }
.stat__bg { position: absolute; inset: -25%; z-index: -1; background: var(--img) center/cover; filter: blur(40px) saturate(1.35); opacity: 0; transform: scale(.9) rotate(-8deg); transition: opacity .8s var(--ease), transform 1.2s var(--ease); animation: drift 12s ease-in-out infinite alternate; }
.stat:hover, .stat.is-lit { transform: scale(1.035); z-index: 2; color: #fff; border-radius: var(--r); box-shadow: 0 40px 80px rgba(0, 0, 0, .12); }
.stat:hover .stat__bg, .stat.is-lit .stat__bg { opacity: 1; transform: scale(1.05) rotate(0); }
@keyframes drift { 0% { translate: 0 0; rotate: 0deg; } 100% { translate: 5% -4%; rotate: 14deg; } }
.refs { margin-top: 20px; padding-left: 18px; list-style: decimal; color: var(--muted-2); font-size: 12px; line-height: 1.6; }

/* ============ LO QUE MEDIMOS ============ */
.rail { position: relative; }
.rail__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); scroll-padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); cursor: grab; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.pil {
  position: relative; flex: 0 0 clamp(300px, 31vw, 500px); min-height: clamp(460px, 40vw, 640px); scroll-snap-align: start; border-radius: var(--r);
  padding: clamp(24px, 2.2vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .8s var(--ease), background .8s var(--ease);
}
/* Al pasar por encima se ilumina toda la tarjeta con el color de su esfera */
.pil::before { content: ""; position: absolute; inset: -10%; z-index: -1; background: var(--img) center/cover; filter: blur(90px) saturate(1.6); opacity: 0; transform: scale(.85); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.pil::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,18,20,0) 40%, rgba(17,18,20,.55) 100%); opacity: 0; transition: opacity 1s var(--ease); }
.pil:hover, .pil.is-lit { border-color: rgba(255, 255, 255, .2); }
.pil:hover::before, .pil.is-lit::before { opacity: .55; transform: scale(1.05); }
.pil:hover::after, .pil.is-lit::after { opacity: 1; }
.pil__i { position: absolute; top: 24px; left: 24px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; font: 500 11px/1 var(--f); color: rgba(255,255,255,.7); }
.pil h3 { font-size: 18px; font-weight: 500; }
.pil p { margin-top: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .62); line-height: 1.55; transition: color .8s var(--ease); }
.pil:hover p { color: rgba(255, 255, 255, .85); }
.orb { position: absolute; left: 50%; top: 42%; width: 40%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; overflow: hidden; isolation: isolate; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: breathe 6s ease-in-out infinite; transition: scale 1.2s var(--ease); }
.orb::before { content: ""; position: absolute; inset: -40%; z-index: -2; background: var(--img) center/cover; animation: spin 16s linear infinite; }
.orb i { position: absolute; inset: -60%; z-index: -1; background: var(--img) 30% 70%/cover; opacity: .7; mix-blend-mode: screen; animation: swirl 9s ease-in-out infinite alternate; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.4), rgba(255,255,255,0) 38%), radial-gradient(circle at 70% 78%, rgba(0,0,0,.5), rgba(0,0,0,0) 60%); box-shadow: inset -14px -20px 40px rgba(0,0,0,.45), inset 6px 8px 22px rgba(255,255,255,.12); }
.pil:hover .orb, .pil.is-lit .orb { scale: 1.12; }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes swirl { 0% { transform: rotate(0) scale(1) translate(0, 0); } 50% { transform: rotate(-120deg) scale(1.25) translate(6%, -4%); } 100% { transform: rotate(-240deg) scale(1.1) translate(-5%, 5%); } }
.rail__ctl { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.rail__bar { flex: 1; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.rail__bar i { display: block; height: 100%; width: 20%; background: rgba(255, 255, 255, .8); border-radius: 2px; transition: transform .2s linear; }
.rail__btns { display: flex; gap: 8px; }
.rbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .3s, opacity .3s; }
.rbtn:hover { background: rgba(255, 255, 255, .2); }
.rbtn:disabled { opacity: .3; cursor: default; }
.rbtn svg { width: 16px; height: 16px; }

/* ============ PRUEBAS: rueda de fichas ============ */
.tests { overflow: hidden; padding-top: clamp(280px, 25vw, 420px); }
.wheelbox {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(560px, 46vw, 760px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 45%, transparent 92%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-composite: intersect;
}
.wheel { position: absolute; left: 50%; top: clamp(70px, 7vw, 120px); width: max(640px, min(1800px, 118vw)); aspect-ratio: 1; translate: -50% 0; container-type: inline-size; rotate: var(--rot, 0deg); will-change: rotate; }
.wheel img {
  position: absolute; left: 50%; top: 50%; width: clamp(54px, 5vw, 84px); aspect-ratio: 1; object-fit: cover; border-radius: 24%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-50cqw); box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
  opacity: 0; transition: opacity 1.2s var(--ease) var(--dl, 0s);
}
.tests.is-in .wheel img { opacity: 1; }
.head--tests { position: relative; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.titem { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 16px 9px 9px; border-radius: 14px; background: var(--soft-2); border: 1px solid transparent; transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.titem:hover { background: #f1f1f1; }
.titem.is-active { border-color: rgba(61, 99, 255, .35); }
.titem > img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.titem b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.titem small { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.titem__more[hidden] { display: none !important; }
.tgrid:not(.is-all) .titem:nth-child(n+13) { display: none; }
.tgrid:not(.is-all)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 130px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 90%); pointer-events: none; }
.titem { opacity: 0; transform: translateY(16px); }
.tgrid.is-in .titem { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--td, 0s), transform .9s var(--ease) var(--td, 0s), background .35s, border-color .35s; }

/* Panel lateral */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .8s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(8, 8, 10, .55); opacity: 0; transition: opacity .6s var(--ease); }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(880px, 56vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .8s var(--ease); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__media { position: relative; flex: none; height: clamp(240px, 36vh, 420px); overflow: hidden; background: #111; }
.drawer__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease), opacity .4s var(--ease); }
.drawer.is-open .drawer__media img { transform: scale(1); }
.drawer__nav { position: absolute; left: clamp(24px, 3vw, 48px); bottom: 24px; display: flex; gap: 8px; }
.drawer__nav button, .drawer__x { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); transition: background .3s, transform .3s var(--ease); }
.drawer__nav button:hover { background: #fff; transform: scale(1.06); }
.drawer__x { position: absolute; top: 24px; right: 24px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.drawer__x:hover { background: rgba(255, 255, 255, .3); }
.drawer__nav svg, .drawer__x svg { width: 16px; height: 16px; }
.drawer__body { padding: clamp(28px, 3vw, 48px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.drawer__body.is-swap { opacity: 0; transform: translateY(10px); }
.drawer__body h3 { font-size: clamp(32px, 3vw, 48px); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 36px; }
.drawer__body b { display: block; font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.drawer__body p { color: var(--muted); font-size: 17px; line-height: 1.65; margin-bottom: 36px; }

/* ============ SEDES ============ */
.sedes { position: relative; background: var(--dark); color: #fff; overflow: hidden; padding-bottom: clamp(84px, 10vw, 150px); }
.sedes__media { position: relative; height: clamp(440px, 62vw, 960px); overflow: hidden; }
.sedes__media img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; transform: translateY(var(--py, 0px)); will-change: transform; }
.sedes__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,18,20,.25) 0%, rgba(17,18,20,0) 25%, rgba(17,18,20,.5) 58%, rgba(17,18,20,.9) 80%, var(--dark) 92%); }
.sedes__in { position: relative; margin-top: clamp(-260px, -16vw, -140px); }
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1100px; margin: 0 auto; }
.loc { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.6; isolation: isolate; }
.loc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.loc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.6)); }
.loc:hover img { transform: scale(1.06); }
.loc__t { position: absolute; z-index: 1; left: 24px; bottom: 22px; }
.loc__t b { display: block; font-weight: 500; font-size: 17px; }
.loc__t small { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.loc__t svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.loc:hover .loc__t svg { transform: translateX(5px); }

/* ============ PROGRAMAS (tarjetas) ============ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-c { display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--r); background: var(--soft); text-align: center; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.plan-c:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, .06); }
.plan-c--dark { background: var(--dark); color: #fff; }
.plan-c__ico { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 10px; background: var(--img) center/cover; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.plan-c h3 { font-size: clamp(22px, 1.7vw, 26px); font-weight: 400; letter-spacing: -.02em; }
.plan-c__s { margin: 4px 0 22px; font-size: 15px; color: var(--muted); min-height: 2.9em; }
.plan-c--dark .plan-c__s { color: rgba(255, 255, 255, .6); }
.plan-c__k { text-align: left; margin: 26px 0 12px; font-size: 14px; font-weight: 500; }
.checks { text-align: left; display: grid; gap: 10px; align-content: start; flex: 1; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.plan-c--dark .checks li { color: rgba(255, 255, 255, .72); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='%235a7bff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks small { display: block; color: var(--muted-2); font-size: 13px; }
.plan-c--dark .checks small { color: rgba(255,255,255,.45); }
.plan-c__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.plan-c--dark .plan-c__more { border-color: rgba(255, 255, 255, .1); }
.plan-c__more svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.plan-c__more:hover svg { transform: translateX(4px); }

/* ============ LAB: dos filas en movimiento ============ */
.lab { max-width: var(--max); margin: 0 auto; border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.lab__row { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.lab__row + .lab__row { border-top: 1px dashed rgba(17, 18, 20, .14); }
.lab__row--rev { animation-direction: reverse; animation-duration: 52s; }
.lab:hover .lab__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lab__c { position: relative; flex: none; width: clamp(200px, 18.5vw, 300px); height: clamp(170px, 15vw, 240px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; border-right: 1px dashed rgba(17, 18, 20, .14); transition: background .45s var(--ease); }
.lab__c b { font: 400 clamp(32px, 2.7vw, 44px)/1 var(--serif); letter-spacing: -.01em; transition: transform .6s var(--ease); }
.lab__c span { font-size: 14px; color: var(--muted); }
.lab__c i { position: absolute; right: 18px; bottom: 14px; font-style: normal; opacity: 0; transform: translateX(-8px); transition: .5s var(--ease); }
.lab__c:hover { background: var(--soft-2); }
.lab__c:hover b { transform: translateY(-4px); }
.lab__c:hover i { opacity: 1; transform: none; }
.lab__c--all b { font: 400 26px/1 var(--f); letter-spacing: -.01em; }

/* ============ JOURNAL ============ */
.jgrid { columns: 3; column-gap: 16px; }
.jcard { break-inside: avoid; display: block; margin-bottom: 16px; padding: 20px 20px 22px; border-radius: 14px; background: var(--soft-2); transition: background .4s var(--ease); }
.jcard:hover { background: #f1f1f1; }
.jcard__m { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.jcard__m img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.jcard__m b { display: block; font-size: 13.5px; font-weight: 500; }
.jcard__m small { display: block; font-size: 12.5px; color: var(--muted); }
.jcard h3 { font-size: 19px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.jcard p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ============ PREGUNTAS ============ */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 16.5px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__q { flex: 1; }
.qa summary i { position: relative; width: 12px; height: 12px; flex: none; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 5.5px; height: 1.2px; background: var(--ink); transition: transform .45s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__b { display: block; overflow: hidden; height: 0; transition: height .5s var(--ease); color: var(--muted); font-size: 16px; }
.qa__b p { padding-right: 36px; }
.qa__b p:last-child { padding-bottom: 24px; }
.qa__b p + p { padding-top: 12px; }

/* ============ CIERRE: LVNG que se transforma ============ */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #000; }
.cta__media { position: absolute; inset: 0; }
.cta__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(var(--ps, 1.05)); will-change: transform; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.cta__in { position: relative; padding: 0 var(--gut); }
.morph { font: 900 clamp(46px, 9.5vw, 168px)/1 var(--dots); letter-spacing: .04em; white-space: nowrap; min-height: 1em; display: flex; justify-content: center; }
.morph .sl { display: inline-block; overflow: hidden; vertical-align: top; max-width: 1.2em; transition: max-width .6s var(--ease), opacity .45s var(--ease); }
.morph .sl.is-off { max-width: 0; opacity: 0; }
.morph .sl i { display: inline-block; font-style: normal; will-change: transform; }
.morph .sl.is-set i { animation: settle .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes settle { 0% { transform: translateY(-12%); color: #a9bbff; } 60% { color: #fff; } 100% { transform: none; } }
.cta__sub { margin: 26px auto 30px; max-width: 560px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .82); }

/* ============ CAMPOS DE FORMULARIO (Lab y reserva) ============ */
.fld { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.fld, .fld:has(select) { grid-column: 1 / -1; }
.fld__l { font-size: 13px; font-weight: 500; padding: 0; }
.fld__in { position: relative; display: flex; align-items: center; height: 54px; border-radius: 12px; background: #fff; border: 1px solid rgba(17, 18, 20, .14); transition: border-color .3s, box-shadow .3s; }
.fld__in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 18, 20, .06); }
.fld__in input, .fld__in select { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: none; font: 400 17px var(--f); color: var(--ink); outline: none; -moz-appearance: textfield; appearance: none; }
.fld__in input::-webkit-outer-spin-button, .fld__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fld__in em { font-style: normal; font-size: 14px; color: var(--muted); padding-right: 16px; }
.fld__in--sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); rotate: 45deg; translate: 0 -70%; pointer-events: none; }
.fld__in select { padding-right: 44px; cursor: pointer; width: 100%; text-overflow: ellipsis; }

.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--soft); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 12px; border-radius: 9px; font-size: 15px; color: var(--muted); cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); white-space: nowrap; }
.seg input:checked + span { background: var(--ink-2); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.seg input:focus-visible + span { outline: 2px solid #6b7cff; outline-offset: 2px; }
.seg--sm { width: 132px; flex: none; }
.seg--sm span { height: 36px; font-size: 14px; }
.yn { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
.yn legend { float: left; font-size: 15.5px; line-height: 1.4; padding: 0; max-width: 70%; }


/* ============ PIE ============ */
.ftr { padding: 72px 0 36px; border-top: 1px solid var(--line); }
.ftr__top { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.ftr__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.ftr__claim b { display: block; font-size: 14px; font-weight: 500; }
.ftr__claim small { font-size: 13px; color: var(--muted); }
.ftr__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ftr__cols h4 { font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.ftr__cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--muted); transition: color .3s; }
.ftr__cols a:hover { color: var(--ink); }
.ftr__bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }
.ftr__bot p { max-width: 760px; }
.ftr__bot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr__bot nav a:hover { color: var(--ink); }

/* ============ TABLETA Y MÓVIL ============ */
@media (max-width: 1180px) {
  .nav__a { padding: 0 10px; font-size: 14px; }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .nav, .lang { display: none; }
  .burger { display: block; }
  .hdr__bar { justify-content: space-between; }
  .ftr__top { grid-template-columns: 1fr; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .facts li:first-child { padding-left: 0; }
}
@media (max-width: 809px) {
  :root { --hdr: 60px; }
  .hdr__end .btn--sm { height: 36px; padding: 0 14px; }
  .hero__h { font-size: clamp(40px, 11vw, 52px); }
  .facts { width: 100%; justify-content: space-between; }
  .facts li { padding: 0 10px; flex: 1; }
  .facts b { font-size: 13.5px; }
  .facts span { font-size: 12px; }
  .head { margin-bottom: 44px; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .hold__m { aspect-ratio: 4 / 5.4; }
  .hold__m::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.7) 100%); }
  .chip { display: inline-flex; }
  .step__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 22px 24px; color: #fff; }
  .step__cap p { color: rgba(255, 255, 255, .72); font-size: 15px; }
  .hold.is-held .step__cap { opacity: 0; transform: translateY(10px); }

  .stats { grid-template-columns: 1fr; }
  .stat { aspect-ratio: auto; min-height: 280px; }
  .stat:first-child { border-radius: var(--r) var(--r) 0 0; }
  .stat:last-child { border-radius: 0 0 var(--r) var(--r); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat.is-lit { transform: scale(1.02); }

  .morph { font-size: 17vw; flex-wrap: wrap; white-space: normal; row-gap: .12em; }
  .morph span.sp { flex-basis: 100%; height: 0; }
  .pil { flex-basis: 84vw; min-height: 480px; }
  .rail__btns { display: none; }

  .tests { padding-top: 230px; }
  .wheelbox { height: 520px; }
  .wheel { top: 40px; }
  .tgrid { grid-template-columns: 1fr; gap: 8px; }
  .tgrid:not(.is-all) .titem:nth-child(n+8) { display: none; }
  .drawer__panel { width: 100vw; }

  .locs { grid-template-columns: 1fr; gap: 12px; }
  .plans { grid-template-columns: 1fr; }

  .jgrid { columns: 1; }
  .ftr__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ftr__bot { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 810px) and (max-width: 1100px) {
  .jgrid { columns: 2; }
  .tgrid { grid-template-columns: 1fr 1fr; }
}
@media (hover: none) { .chip { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-in] { opacity: 1; transform: none; filter: none; }
}

/* El cierre usa Doto con puntos redondos y gruesos, como el logo. Va al final porque «font:» reinicia font-variation-settings. */
.morph { font-variation-settings: 'ROND' 100, 'wght' 900; }

/* ============ RESERVA: citas agotadas y lista de espera ============ */
.book { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); visibility: hidden; transition: visibility 0s .7s; }
.book.is-open { visibility: visible; transition: none; }
.book__veil { position: absolute; inset: 0; background: rgba(8, 8, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .6s var(--ease); }
.book.is-open .book__veil { opacity: 1; }
.book__panel { position: relative; width: min(1120px, 100%); max-height: 100%; overflow: auto; border-radius: 24px; background: #fff; box-shadow: 0 60px 140px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.book.is-open .book__panel { opacity: 1; transform: none; }
.book__x { position: absolute; z-index: 3; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(17, 18, 20, .06); transition: background .3s; }
.book__x:hover { background: rgba(17, 18, 20, .12); }
.book__x svg { width: 16px; height: 16px; }
.book__in { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 640px; }
.book__l { position: relative; padding: clamp(32px, 4vw, 56px); color: #fff; background: #0c0c0e; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.book__glow { position: absolute; z-index: -1; right: -30%; top: -20%; width: 120%; aspect-ratio: 1; border-radius: 50%; background: url(/assets/img/a-violeta.webp) center/cover; filter: blur(70px) saturate(1.4); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.book__pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.book__pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--st, #ff3b47); box-shadow: 0 0 0 0 var(--st-a, rgba(255, 59, 71, .7)); animation: pulse 2s infinite; }
/* Estado de la agenda: rojo si está completa, verde si hay huecos */
.book__in { --st: #ff3b47; --st-a: rgba(255, 59, 71, .7); }
.book__in[data-agenda="abierta"] { --st: #2fd67f; --st-a: rgba(47, 214, 127, .7); }
.book__in[data-agenda="agotada"] .book__glow { background-image: url(/assets/img/a-carmin.webp); opacity: .5; }
.book__in[data-agenda="abierta"] .book__glow { background-image: url(/assets/img/a-verde.webp); opacity: .5; }
.book__in:not([data-agenda="agotada"]) [data-when="agotada"], .book__in:not([data-agenda="abierta"]) [data-when="abierta"] { display: none; }
.book__in [data-when] { display: flex; flex-direction: column; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 154, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 154, 92, 0); } }
.book__h { margin-top: 28px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.book__p { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); max-width: 420px; }
.book__p b { color: #fff; font-weight: 500; }
.book__count { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 32px; }
.book__count b { font-size: clamp(56px, 6vw, 88px); font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.book__count span { font-size: 14px; color: rgba(255, 255, 255, .6); max-width: 130px; line-height: 1.35; }
.book__steps { margin-top: auto; display: grid; gap: 14px; counter-reset: s; }
.book__steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; counter-increment: s; }
.book__steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .8); }
.book__steps b { font-size: 15px; font-weight: 500; }
.book__steps span { font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.book__r { position: relative; padding: clamp(32px, 4vw, 56px); }
.book__form { display: grid; gap: 16px; }
.book__k { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.book__form .fld__l small { font-weight: 400; color: var(--muted-2); }
.book__form .fld__in { height: 50px; }
.book__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.chk input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid rgba(17, 18, 20, .3); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.chk input:checked { background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.2 2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--ink-2); }
.chk a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.book__err { font-size: 13.5px; color: #c4362f; }
.book__send { height: 52px; margin-top: 4px; }
.book__send.is-busy { pointer-events: none; opacity: .7; }
.book__fine { font-size: 12px; line-height: 1.5; color: var(--muted-2); }
.book__ok { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 100%; padding: 40px 0; }
.book__ok h3 { font-size: clamp(32px, 3vw, 44px); font-weight: 400; letter-spacing: -.03em; }
.book__ok p { color: var(--muted); font-size: 16px; max-width: 380px; margin-bottom: 12px; }
.book__check svg { width: 64px; height: 64px; stroke: #3fb984; stroke-width: 2.5; fill: none; }
.book__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.book__check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* En su propia página */
.book-page { padding: calc(var(--hdr) + clamp(24px, 4vw, 56px)) 0 clamp(60px, 7vw, 110px); }
.book--page { position: static; visibility: visible; display: block; padding: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .12); border: 1px solid var(--line); }

/* ============ COOKIES ============ */
.ck { position: fixed; z-index: 96; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 760px; display: flex; gap: 20px; align-items: flex-end; padding: 18px 18px 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .16); animation: rise .8s var(--ease) both; }
.ck[hidden] { display: none; }
.ck__main { flex: 1; }
.ck__t { font-size: 15px; font-weight: 500; }
.ck__p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ck__p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ck__cfg { margin-top: 12px; display: grid; gap: 8px; }
.ck__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.ck__row b { display: block; font-size: 14px; font-weight: 500; }
.ck__row small { display: block; font-size: 12.5px; color: var(--muted); }
.ck__row input { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; border-radius: 12px; background: rgba(17, 18, 20, .2); position: relative; cursor: pointer; transition: background .3s; }
.ck__row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.ck__row input:checked { background: var(--ink-2); }
.ck__row input:checked::after { transform: translateX(16px); }
.ck__row input:disabled { opacity: .5; cursor: default; }
.ck__btns { display: flex; gap: 8px; flex: none; }
.ftr__bot nav button { font-size: 12px; color: var(--muted); }
.ftr__bot nav button:hover { color: var(--ink); }

/* ============ TEXTOS LEGALES ============ */
.doc { padding: calc(var(--hdr) + clamp(48px, 6vw, 96px)) 0 clamp(70px, 8vw, 120px); }
.doc h1 { font-size: clamp(40px, 4vw, 60px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.doc__date { margin: 10px 0 36px; font-size: 13.5px; color: var(--muted); }
.doc h2 { margin: 44px 0 14px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.doc p { margin-bottom: 12px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.doc p b { color: var(--ink); font-weight: 500; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc th { width: 30%; font-weight: 500; }
.doc tr:first-child th:not(:only-child) { background: var(--soft-2); }
.doc mark { background: #fff3b0; color: var(--ink); padding: 1px 4px; border-radius: 4px; }
.doc code { font-size: 13px; background: var(--soft); padding: 2px 6px; border-radius: 5px; }
@media (max-width: 860px) {
  .book { padding: 0; place-items: end stretch; }
  .book__panel { border-radius: 22px 22px 0 0; max-height: 94vh; }
  .book__in { grid-template-columns: 1fr; min-height: 0; }
  .book__l { padding-bottom: 28px; }
  .book__steps { margin-top: 0; }
  .book__count { margin: 24px 0; }
  .ck { flex-direction: column; align-items: stretch; }
  .ck__btns > * { flex: 1; }
  .doc table { display: block; overflow-x: auto; }
}
