/* Fetalia Lab · landing. Two environments of the same system:
   light (Fetalia web, Fetal Heart 3D): sitio-nuevo/src/styles/global.css + metodo.css
   dark (Fetal Visor v12.8): the visor's final :root tokens, labels and controls.
   One type system across both: Newsreader (titles), IBM Plex Sans (text), IBM Plex Mono (labels, data). */
:root {
  --bg: #fbfbfc; --surface: #ffffff; --ink: #0a0a0c; --text-2: #2b2f37; --muted: #6d7480; --line: #e6e7eb; --line-2: #cfd2d9;
  --accent: #3d5afe; --accent-soft: rgb(61 90 254 / 9%);
  --d-bg: #070a0d; --d-panel: #10161b; --d-panel2: #151e24; --d-line: #24323b; --d-line2: #1b262d; --d-txt: #d7e2e7; --d-muted: #71858f;
  --na-accent: #648faf; --na-hi: #91bddc; --na-on: #294658; --na-ink: #e0edf5; --na-label: #b2d5ef; --na-brand: #69b8ff;
  --amber: #ffb020; --cyan: #37d6d6; --green: #5ce08a;
  --f-display: "Newsreader", Georgia, serif; --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4.2vw, 64px);
  --bar-h: 60px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.kicker { margin: 0; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--f-mono); }

/* ---------- top bar (switches with the environment underneath) */
.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.bar.solid { background: rgb(251 251 252 / 86%); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.dark .bar { color: var(--d-txt); }
html.dark .bar.solid { background: rgb(7 10 13 / 82%); border-bottom-color: var(--d-line2); }
.lab { display: inline-flex; align-items: baseline; gap: 9px; font: 600 12px/1 var(--f-mono); letter-spacing: .22em; text-decoration: none; }
.lab b { font-weight: 600; } .lab span { color: var(--accent); }
html.dark .lab span { color: var(--na-brand); }
.bar-r { display: flex; align-items: center; gap: 22px; }
.bar-date { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html.dark .bar-date { color: var(--d-muted); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 18px; border-radius: 40px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 600 13px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.pill:hover { background: transparent; color: var(--accent); }
.pill.quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.pill.quiet:hover { border-color: var(--accent); color: var(--accent); }
html.dark .pill.quiet { color: var(--na-ink); border-color: #3a4c58; }
html.dark .pill.quiet:hover { border-color: var(--na-hi); color: #fff; }
/* the two CTAs. «Entrar al workshop» follows the state saved in Supabase (landing.js): .off until the live page
   opens, with the opening time beside it; then it is the primary action and «Inscripción gratuita» steps back */
.pill[hidden] { display: none; }
.pill small { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .02em; opacity: .9; }
.pill small[hidden] { display: none; }
.pill small::before { content: "·"; margin-right: 8px; }
.pill.off { background: transparent; color: var(--muted); border-color: var(--line-2); border-style: dashed; cursor: default; }
.pill.off:hover { background: transparent; color: var(--muted); border-color: var(--line-2); }
html.dark .pill.off, html .dark-zone .pill.off { background: transparent; color: var(--d-muted); border-color: #34444f; }
.bar-r .pill + .pill { margin-left: -12px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* outside the bar the opening time goes under the label */
.ctas [data-cta="entrar"], .reg-acts [data-cta="entrar"] { flex-direction: column; gap: 3px; padding-block: 7px; }
.ctas [data-cta="entrar"] small::before, .reg-acts [data-cta="entrar"] small::before { content: none; }

/* ---------- I · anatomy: sticky stage driven by scroll */
.anat { position: relative; height: calc(8 * 112vh + 100vh); height: calc(8 * 112svh + 100svh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .poster { object-fit: contain; transition: opacity .6s var(--ease); pointer-events: none; }
.stage .poster.gone { opacity: 0; }
.tags, .pnums { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; white-space: nowrap; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink); will-change: transform, opacity; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgb(255 255 255 / 85%); flex: none; }
.tag.l { flex-direction: row-reverse; }
.tag span { padding: 4px 7px; background: rgb(255 255 255 / 88%); box-shadow: 0 0 0 1px rgb(10 10 12 / 12%); border-radius: 4px; }
.pnum { position: absolute; left: 0; top: 0; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--accent); background: rgb(255 255 255 / 90%); padding: 3px 5px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(61 90 254 / 35%); will-change: transform, opacity; }

.hero { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6svh, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; pointer-events: none; }
.hero .kicker { margin-bottom: 18px; }
.hero h1 { margin: 0; font: 500 clamp(38px, 4.4vw, 66px)/1 var(--f-display); letter-spacing: -.015em; }
.hero h1 em { display: block; margin-top: .14em; font-style: italic; font-weight: 500; font-size: .5em; letter-spacing: -.005em; color: var(--muted); }
.hero .meta { margin: 22px 0 0; font: 500 11.5px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.hero .meta i { font-style: normal; color: var(--line-2); padding: 0 .5em; }
.cue { display: grid; justify-items: end; gap: 10px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cue::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.chap { position: absolute; left: var(--gutter); top: 50%; width: min(31vw, 430px); transform: translateY(-50%); opacity: 0; will-change: opacity, transform; }
.chap .n { margin: 0 0 16px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.chap .n span { color: var(--muted); }
.chap h2 { margin: 0 0 16px; font: 500 clamp(30px, 3.1vw, 46px)/1.08 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.chap p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--text-2); max-width: 40ch; }
.chap .src { margin-top: 14px; font: 400 11.5px/1.5 var(--f-mono); color: var(--muted); }
.yagel { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.yagel li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); transition: color .3s var(--ease), opacity .3s var(--ease); opacity: .35; }
.yagel li.on { opacity: 1; color: var(--ink); }
.yagel li b { font: 600 11px/1.9 var(--f-mono); color: var(--accent); }

.info { position: absolute; left: var(--gutter); top: 50%; width: min(36vw, 500px); transform: translateY(-50%); opacity: 0; }
.info h2 { margin: 16px 0 0; font: 500 clamp(34px, 3.6vw, 54px)/1.04 var(--f-display); letter-spacing: -.012em; }
.info h2 em { display: block; font-style: italic; color: var(--muted); font-size: .56em; margin-top: .2em; }
.facts { margin: 28px 0 28px; display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 10.5px/1.9 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 15px; color: var(--ink); }
.facts dd small { display: block; margin-top: 2px; font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
.rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; justify-items: end; opacity: 0; transition: opacity .4s var(--ease); }
.rail.on { opacity: 1; }
.rail i { display: block; width: 14px; height: 1px; background: var(--line-2); transition: width .35s var(--ease), background .35s var(--ease); }
.rail i.on { width: 30px; background: var(--accent); }

/* ---------- the session (light, editorial) */
.sec { position: relative; padding: clamp(96px, 14vh, 160px) var(--gutter); }
.wrap { max-width: 1180px; margin: 0 auto; }
.row { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 56px; }
.row > .lbl { padding-top: 8px; }
.h2 { margin: 0 0 22px; font: 500 clamp(34px, 4.2vw, 58px)/1.06 var(--f-display); letter-spacing: -.012em; text-wrap: balance; }
.lead { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.62; color: var(--text-2); }
.parts { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.part h3 { margin: 10px 0 10px; font: 500 30px/1.1 var(--f-display); }
.part .role { margin: 0 0 22px; color: var(--text-2); font-size: 15px; max-width: 46ch; }
.part ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: it; }
.part li { counter-increment: it; display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.part li::before { content: counter(it, decimal-leading-zero); font: 500 11px/2 var(--f-mono); color: var(--muted); }
.part.p2 .kicker::after { content: " · práctica"; color: var(--muted); }

/* ---------- bridge: from the model to the volume (light → dark) */
.bridge { position: relative; height: 300vh; height: 300svh; }
.bridge .stick { transition: color .35s var(--ease); position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: var(--bar-h) var(--gutter) 0; overflow: hidden; }
.bridge .txt { max-width: 470px; justify-self: end; }
.bridge .txt .h2 { color: inherit; }
.bridge .txt p { margin: 0; font-size: 16.5px; line-height: 1.62; opacity: .8; }
.frame { position: relative; width: min(42vw, 72svh); aspect-ratio: 1; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame .m { transform: rotate(67deg) scale(1.15); }
.frame .e { object-fit: cover; border-radius: 6px; clip-path: inset(0 0 100% 0); }
.frame .scan { position: absolute; left: -4%; right: -4%; height: 1px; background: var(--accent); box-shadow: 0 0 18px 2px rgb(61 90 254 / 60%); opacity: 0; }
.steps3 { margin-top: 26px; display: flex; gap: 22px; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.steps3 span { opacity: .35; transition: opacity .3s var(--ease); }
.steps3 span.on { opacity: 1; }

/* ---------- II · dark environment: Fetal Visor */
.dark-zone { background: var(--d-bg); color: var(--d-txt); }
.dark-zone .kicker { color: var(--na-label); }
.dark-zone .h2 { color: var(--na-ink); }
.dark-zone .lead { color: #a9b8c1; }
.visor-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.visor-head .h2 { font-size: clamp(44px, 6.4vw, 96px); margin-bottom: 18px; }
.specs { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); }
.specs li { padding: 14px 18px 14px 0; margin-right: 18px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--na-label); }
.specs li + li::before { content: "·"; margin-right: 18px; color: var(--d-muted); }
.shot { margin: 56px 0 0; }
.shot .scr { position: relative; border: 1px solid var(--d-line); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 120px -40px rgb(0 0 0 / 80%), 0 0 0 1px rgb(255 255 255 / 3%); background: #000; }
/* the box takes the aspect of the video (landing.js sets --tv-ar from the poster / the video itself) */
.shot .scr { aspect-ratio: var(--tv-ar, 16 / 10); }
.shot video { width: 100%; height: 100%; object-fit: cover; }
.cap { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; font: 400 11.5px/1.5 var(--f-mono); color: var(--d-muted); }
/* carousel of the three visor loops: the active piece in the middle, the neighbours dimmed at the sides; two clones
   at each end (landing.js) make it turn round without a jump */
.car { --car-w: 52%; margin-top: 64px; }
.car-track { position: relative; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 1px solid var(--na-hi); outline-offset: 6px; }
.loop { margin: 0; flex: 0 0 var(--car-w); min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; opacity: .34; transition: opacity .4s var(--ease); cursor: pointer; }
.loop.on { opacity: 1; cursor: auto; }
.loop .v { position: relative; aspect-ratio: 1100 / 898; border: 1px solid var(--d-line); border-radius: 6px; overflow: hidden; background: #000; }
.loop video, .loop .v img { width: 100%; height: 100%; object-fit: cover; }
.loop figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: #a9b8c1; }
.loop figcaption b { display: block; margin-bottom: 3px; font: 600 10.5px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--na-label); }
.car-ctl { width: var(--car-w); margin: 14px auto 0; display: flex; align-items: center; gap: 12px; }
.car-dots { display: flex; margin-left: -8px; }
.car-dots button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.car-dots button::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--d-line); transition: width .35s var(--ease), background .35s var(--ease); }
.car-dots button:hover::before { background: var(--d-muted); }
.car-dots button[aria-current="true"]::before { width: 30px; background: var(--na-label); }
.car-n { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--d-muted); white-space: nowrap; }
.car-n b { font-weight: 500; color: var(--na-ink); }
.car-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--d-line); border-radius: 50%; background: transparent; color: var(--na-ink); font: 400 16px/1 var(--f-body); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.car-btn:hover { border-color: var(--na-hi); color: #fff; }
.car-btn[data-dir="-1"] { margin-left: auto; }

/* LIVE STIC DEMO */
.live-label { display: inline-flex; align-items: center; gap: 12px; font: 600 clamp(15px, 1.6vw, 20px)/1 var(--f-mono); letter-spacing: .32em; color: var(--na-ink); }
.live-label i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgb(255 176 32 / 60%); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(255 176 32 / 55%); } 70% { box-shadow: 0 0 0 10px rgb(255 176 32 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(255 176 32 / 0%); } }
.demo-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: end; margin-top: 26px; }
.demo-head .h2 { margin: 0; }
.demo-head p { margin: 0; color: #a9b8c1; font-size: 16px; }
/* 2 × 2 as in the visor's multiplanar (A | B over C | 4th quadrant), here the product tile; on a laptop the square
   grid fits the screen height */
.dv { position: relative; margin-top: 44px; max-width: min(100%, 820px, calc(100svh - var(--bar-h) - 96px)); border: 1px solid var(--d-line); border-radius: 6px; background: var(--d-bg); overflow: hidden; box-shadow: 0 40px 120px -50px rgb(0 0 0 / 90%); }
.dv-id { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(12px, 2.4vw, 22px); background: rgb(7 9 10); }
.dv-id .brand { font: 620 clamp(13px, 1.7vw, 19px)/1 var(--f-body); letter-spacing: .13em; color: var(--na-brand); }
.dv-id .brand small { display: block; margin-top: 9px; font: 500 clamp(9px, .9vw, 10.5px)/1 var(--f-mono); letter-spacing: .24em; color: #626d72; }
.dv-id .vol { font: 500 10px/1.5 var(--f-mono); letter-spacing: .02em; color: #9aa9b1; overflow-wrap: anywhere; }
.dv-id .dv-btn { margin-top: auto; }
.dv-btn { height: 28px; padding: 0 12px; border: 1px solid var(--d-line); background: var(--d-panel2); color: var(--d-txt); border-radius: 3px; font: 650 10.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: border-color .15s, color .15s; }
.dv-btn:hover { border-color: var(--na-accent); color: #fff; }
.dv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--d-line); }
.dv-pane { position: relative; aspect-ratio: 1; background: #000; outline: none; }
.dv-pane canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.dv-handle { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; touch-action: none; cursor: move; }
@media (hover: none) { .dv-handle { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%); } }
.dv-pane.active { box-shadow: inset 0 0 0 1px var(--na-accent); }
.dv-pane:focus-visible { box-shadow: inset 0 0 0 2px var(--na-hi); }
.dv-lbl { position: absolute; left: 9px; top: 8px; pointer-events: none; font: 700 9.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--na-label); }
.dv-lbl em { font-style: normal; font-weight: 400; color: var(--d-muted); }
.dv-pane.active .dv-lbl { color: #d6e8f5; }
.dv-foot { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--d-line2); font: 500 10.5px/1.4 var(--f-mono); color: var(--d-muted); }
.dv-foot [data-readout] { color: #cfe0e8; letter-spacing: .04em; white-space: pre; }
.dv-wait[hidden] { display: none; }
.dv-wait { position: absolute; inset: 0; display: grid; place-items: center; font: 500 11px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted); pointer-events: none; }
.dv-hint { position: absolute; left: 25%; top: 34px; transform: translateX(-50%); padding: 7px 12px; border-radius: 40px; background: rgb(16 22 27 / 92%); border: 1px solid var(--d-line); font: 500 11px/1 var(--f-mono); color: var(--na-ink); white-space: nowrap; pointer-events: none; transition: opacity .5s var(--ease); }
.dv-hint.gone { opacity: 0; }
.during { margin-top: 88px; display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; row-gap: 28px; }
.during ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--d-line); }
.during li { display: grid; grid-template-columns: 34px 1fr; padding: 13px 0; border-bottom: 1px solid var(--d-line); font-size: 15.5px; color: var(--d-txt); }
.during li b { font: 500 11px/2 var(--f-mono); color: var(--d-muted); font-weight: 500; }
.note-d { padding-left: 16px; border-left: 1px solid var(--d-line); color: #a9b8c1; font-size: 14.5px; line-height: 1.6; }
.note-d b { display: block; margin-bottom: 6px; font: 600 10.5px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--na-label); }
.note-d + .note-d { margin-top: 26px; }

/* speaker */
.who .h2 { margin-bottom: 14px; }
.who .roles { margin: 0 0 28px; font: 500 11.5px/1.8 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--na-label); }
.who p { margin: 0; max-width: 62ch; color: #a9b8c1; font-size: 17px; line-height: 1.65; }

/* registration */
.reg { border-top: 1px solid var(--d-line); }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; }
.reg .h2 { font-size: clamp(44px, 6vw, 92px); margin-bottom: 26px; }
.when { margin: 0; font: 500 12px/1.9 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--na-ink); }
.when small { display: block; letter-spacing: .04em; text-transform: none; color: var(--d-muted); }
.form { padding: 28px; border: 1px solid var(--d-line); border-radius: 8px; background: var(--d-panel); }
.form label { display: block; margin-bottom: 9px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--na-label); }
.form input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--d-line); border-radius: 4px; background: #0b1216; color: var(--na-ink); font-size: 16px; }
.form input::placeholder { color: #50616b; }
.form input:focus { outline: none; border-color: var(--na-hi); box-shadow: 0 0 0 3px rgb(145 189 220 / 18%); }
.form .pill { width: 100%; min-height: 52px; margin-top: 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.form .pill:hover { background: transparent; color: #a8b6ff; border-color: #a8b6ff; }
.form .fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--d-muted); }
.form .err { min-height: 18px; margin: 8px 0 0; font: 500 12px/1.4 var(--f-mono); color: #ff8a7a; }
.ok { display: none; }
.form.done .ask { display: none; }
.form.done .ok { display: block; }
/* registration closed in Supabase: the form gives way to one line (a reservation already made still shows) */
.form .cerrada { margin: 0; font: 500 26px/1.15 var(--f-display); color: var(--na-ink); }
.form.closed .ask, .form.done .cerrada { display: none; }
.reg-acts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.reg-acts .share { margin-top: 0; }
.ok h3 { margin: 6px 0 10px; font: 500 30px/1.1 var(--f-display); color: var(--na-ink); }
.ok p { margin: 0 0 18px; color: #a9b8c1; font-size: 14.5px; line-height: 1.6; }
.ok .acts { display: grid; gap: 8px; }
.ok .acts a { justify-content: center; }
.foot { padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--d-line2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; font: 400 11.5px/1.6 var(--f-mono); color: var(--d-muted); }
.foot b { font: 600 15px/1 var(--f-display); color: var(--na-ink); letter-spacing: 0; margin-right: 6px; }
.foot .lm { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .12em; text-transform: uppercase; }
.foot .lm svg { height: 10px; width: auto; color: var(--na-ink); }

/* reveal on entering */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .row, .during { grid-template-columns: minmax(0, 1fr); }
  .row > .lbl { padding: 0 0 14px; }
  .during > .lbl { grid-column: 1; }
  .bar [data-cta-when] { display: none; }
  .car { --car-w: 62%; }
}
/* ---------- floating CTA (as in Método Fetalia) and the anatomy progress line */
.cta-f { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 20px 8px 22px; border-radius: 40px; background: var(--accent); color: #fff; text-decoration: none; font: 600 14px/1.2 var(--f-body); box-shadow: 0 14px 30px -16px rgb(10 10 12 / 60%); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; -webkit-tap-highlight-color: transparent; }
.cta-f.none { display: none; }
.cta-f.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
.cta-f:hover { background: #2f4ae8; }
.cta-f .t { display: grid; gap: 2px; }
.cta-f .s { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.cta-f .a { font-size: 17px; }
.prog { position: fixed; z-index: 49; left: 0; right: 0; top: var(--bar-h); height: 2px; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.prog.on { opacity: 1; }
.prog i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.share { margin-top: 22px; }
a, button { -webkit-tap-highlight-color: transparent; }

@media (max-width: 820px) {
  :root { --bar-h: 54px; --gutter: 20px; }
  .bar-date { display: none; }
  .bar .pill { min-height: 34px; padding: 0 14px; font-size: 12.5px; }
  /* one CTA in the phone bar: the registration until the live page opens, then the way in (the floating CTA keeps
     the registration while it is open) */
  .bar [data-cta="entrar"], html.live-open .bar [data-cta="inscripcion"] { display: none; }
  html.live-open .bar [data-cta="entrar"] { display: inline-flex; }
  .bar-r .pill + .pill { margin-left: 0; }
  /* anatomy: a little less scroll per chapter on the phone */
  .anat { height: calc(8 * 86vh + 100vh); height: calc(8 * 86svh + 100svh); }
  .chap, .info { left: 20px; right: 20px; width: auto; top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; }
  .chap::before, .info::before { content: ""; position: absolute; inset: -72px -20px calc(-18px - env(safe-area-inset-bottom)); background: linear-gradient(rgb(251 251 252 / 0%), rgb(251 251 252 / 90%) 34%, #fbfbfc 58%); z-index: -1; }
  .chap h2 { font-size: 27px; margin-bottom: 8px; }
  .chap p { font-size: 14.5px; line-height: 1.52; }
  .chap .n { margin-bottom: 9px; font-size: 10.5px; }
  .chap .src { margin-top: 8px; font-size: 10.5px; }
  .yagel { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; border-top: 0; }
  .yagel li { grid-template-columns: 24px 1fr; padding: 6px 0; font-size: 12.5px; line-height: 1.3; border-bottom: 1px solid var(--line); }
  .yagel li:last-child { grid-column: 1 / -1; }
  .info h2 { font-size: 30px; }
  .facts { grid-template-columns: 88px 1fr; margin: 14px 0 16px; } .facts dt, .facts dd { padding: 7px 0; } .facts dd { font-size: 14px; }
  .info .ctas { display: grid; gap: 8px; }
  .info .pill { width: 100%; min-height: 46px; }
  .rail { display: none; }
  .hero { flex-direction: column; align-items: flex-start; gap: 0; bottom: calc(22px + env(safe-area-inset-bottom)); }
  .hero::before { content: ""; position: absolute; inset: -90px -20px calc(-22px - env(safe-area-inset-bottom)); background: linear-gradient(rgb(251 251 252 / 0%), rgb(251 251 252 / 92%) 42%); z-index: -1; }
  .hero .kicker { margin-bottom: 12px; font-size: 10.5px; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px); line-height: .98; }
  .hero h1 em { font-size: .48em; margin-top: .3em; }
  .hero .meta { margin-top: 14px; font-size: 10.5px; letter-spacing: .1em; line-height: 1.7; }
  .cue, .pnums { display: none; }
  .tag { font-size: 10px; }
  .tag span { padding: 3px 6px; }
  .sec { padding: 76px var(--gutter); }
  .h2 { font-size: clamp(32px, 9vw, 40px); }
  .lead { font-size: 16.5px; }
  .parts { grid-template-columns: 1fr; gap: 44px; margin-top: 44px; }
  /* the pinned block takes the height of its content and landing.js centres it (top) and paints the bridge behind it
     in the same colour: the same pinned screen, without the empty band above and below it when it arrives and leaves.
     The pinned scroll stays at 140svh, as before (--stick-h is the block's height) */
  .bridge { height: 240vh; height: calc(140svh + var(--stick-h, 100svh)); }
  .bridge .stick { grid-template-columns: 1fr; align-content: center; gap: 26px; text-align: left; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .bridge .txt { justify-self: start; order: 2; }
  .bridge .txt .h2 { font-size: 30px; margin-bottom: 14px; }
  .bridge .txt p { font-size: 14.5px; }
  .steps3 { margin-top: 18px; gap: 16px; font-size: 9.5px; }
  .frame { width: min(86vw, 44svh); justify-self: center; }
  .visor-head { grid-template-columns: 1fr; }
  .visor-head .h2 { font-size: clamp(42px, 12vw, 54px); }
  .specs { margin-top: 28px; }
  .specs li { padding: 9px 14px 9px 0; margin-right: 0; font-size: 10px; }
  .specs li + li::before { content: none; }
  .shot { margin-top: 36px; margin-inline: calc(var(--gutter) * -1); }
  .shot .scr { border-radius: 0; border-inline: 0; aspect-ratio: var(--tv-ar, 1); }
  .cap { padding-inline: var(--gutter); flex-direction: column; gap: 2px; font-size: 10.5px; }
  /* visor loops: the track runs edge to edge; the active piece centred, a strip of each neighbour at the sides */
  .car { --car-w: 78vw; margin-top: 40px; }
  .car-track { gap: 12px; margin-inline: calc(var(--gutter) * -1); }
  .car-ctl { margin-top: 8px; }
  .live-label { font-size: 14px; letter-spacing: .26em; }
  .demo-head { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .dv { margin-top: 28px; margin-inline: calc(var(--gutter) * -1); max-width: none; border-radius: 0; border-inline: 0; }
  .dv-id { gap: 10px; }
  .dv-id .vol { font-size: 9.5px; }
  .dv-foot { flex-direction: column; gap: 4px; }
  .during { margin-top: 56px; row-gap: 24px; }
  .who p { font-size: 16px; }
  .reg-grid { grid-template-columns: 1fr; gap: 26px; }
  .reg .h2 { font-size: clamp(42px, 12vw, 54px); }
  .form { padding: 20px; }
  .foot { flex-direction: column; gap: 10px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cta-f { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 46px; gap: 10px; padding: 0 16px; font-size: 13.5px; }
}
/* phone held sideways: the desktop composition, compressed */
@media (max-height: 520px) and (orientation: landscape) {
  .hero h1 { font-size: 32px; } .hero .kicker { margin-bottom: 8px; } .hero .meta { margin-top: 10px; }
  .chap { width: 42vw; } .chap h2 { font-size: 24px; margin-bottom: 8px; } .chap p { font-size: 13.5px; } .chap .n { margin-bottom: 8px; }
  .yagel li { padding: 4px 0; font-size: 12px; }
  .info { width: 46vw; } .info h2 { font-size: 26px; } .facts { margin: 10px 0 12px; } .facts dt, .facts dd { padding: 5px 0; } .facts dd { font-size: 13px; }
  .rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .cue::after, .live-label i { animation: none; }
}

.foot a{color:inherit;text-decoration:none}
.foot a:hover{color:var(--na-ink);text-decoration:underline;text-underline-offset:3px}
