/* Digital Sanctuaries — landing. Sistema Void & Bone: dos registros (papel y vacío), sin color en
   el chrome. El color sólo existe dentro de la apertura (el canvas #aperture). Radios 0, pill
   sólo en botones, sin sombras. Un peso por familia. */
:root {
  --paper: #f2f0ec; --ink: #0a0a09; --body: #4a4844; --muted: #8d8a84; --hair: #d8d5cf;
  --void: #0a0a09; --void-2: #141312; --void-3: #1d1b19;
  --on-void: #f2f0ec; --on-void-body: rgba(242, 240, 236, .78); --on-void-muted: #8e8d88; --edge: rgba(242, 240, 236, .16);
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --px: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(.37, 0, .63, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
body { margin: 0; background: var(--void); color: var(--on-void); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: rgba(242, 240, 236, .22); }

#aperture, #world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
/* El mundo 3D (js/scene.js) entra con un fundido sobre el canvas 2D, que queda de respaldo */
#world { opacity: 0; transition: opacity 1.4s var(--ease); }
.has-world #world { opacity: 1; }
main, .ftr { position: relative; z-index: 1; }

/* Tipografía */
h1, h2, h3, .hdr__word { font-family: var(--sans); font-weight: 400; text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 5.2vw, 4rem); letter-spacing: .14em; line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 3.1vw, 2.6rem); letter-spacing: .1em; line-height: 1.18; max-width: 18ch; }
h3 { font-size: .86rem; letter-spacing: .14em; }
.label { font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-void-muted); }
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; max-width: 46ch; color: var(--on-void-body); }
.wrap { padding-inline: var(--px); max-width: 1680px; margin-inline: auto; }
.label + h2 { margin-top: 22px; }
h2 + .lead { margin-top: 22px; }
.lead + .lead { margin-top: 14px; }

/* Registros */
.void { color: var(--on-void); }
.paper { background: var(--paper); color: var(--ink); }
/* Las secciones claras son capítulos "dentro de la luz": no llevan fondo propio, la luz hueso la pone
   el canvas (js/app.js sube y baja el campo, y con él la opacidad del texto). Sin WebGL o sin
   JavaScript, vuelven a ser papel. */
html:not(.no-gl):not(.no-js) .paper[data-field] { background: none; padding-bottom: calc(clamp(80px, 13vh, 170px) + 14vh); }
.paper .label { color: var(--muted); }
.paper .lead { color: var(--body); }

/* Botón: la única forma redonda del sistema */
.btn { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: 1px solid rgba(242, 240, 236, .55); border-radius: 999px; color: var(--on-void); transition: background .24s var(--ease), color .24s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--on-void); color: var(--ink); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover, .btn--ink:focus-visible { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 10px 18px; font-size: .64rem; white-space: nowrap; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* Punto de estado: sin color. Apagado = libre, blanco = en sesión */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; margin-right: 10px; vertical-align: 1px; transition: background .9s var(--ease); }
.dot.is-live { background: currentColor; }

/* Cabecera: color hueso con mezcla "difference": hueso sobre el vacío, tinta sobre el papel */
.hdr { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 20px var(--px); color: var(--on-void); mix-blend-mode: difference; }
/* Al bajar se apaga (sobre las fotos ensucia); al subir, o arriba de todo, vuelve. No se desplaza. */
.hdr { transition: opacity .24s var(--ease); }
.hdr.is-away { opacity: 0; pointer-events: none; }
.hdr__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
/* El logo oficial (Logo Digital-02): dos gotas espejadas. Siempre en un solo color, el del texto. */
.logo { height: 22px; width: auto; flex: none; fill: currentColor; }
.hdr__word { font-size: .78rem; letter-spacing: .42em; white-space: nowrap; }
.hdr__state { white-space: nowrap; min-width: 13em; font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; margin-right: auto; padding-left: 28px; border-left: 1px solid var(--edge); }
.hdr__nav { display: flex; align-items: center; gap: 30px; font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }
.hdr__nav a:not(.btn) { text-decoration: none; opacity: .8; }
.hdr__nav a:not(.btn):hover { opacity: 1; }
.hdr .btn:hover { background: var(--on-void); color: #000; }

/* 01 · Entrada */
.hero { height: 330vh; }      /* una pantalla quieta, una de avance por el túnel de hormigón y otra por el túnel de luz */
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* el portal: una caja cuadrada que marca dónde va el círculo de luz */
.hero__door { position: absolute; right: 13%; top: 14%; width: min(50vh, 31vw); aspect-ratio: 1; border-radius: 50%; }
.hero__txt { position: absolute; left: var(--px); bottom: clamp(72px, 14vh, 150px); max-width: min(680px, 62vw); }
.hero__txt h1 { margin-top: 26px; }
/* Versión Zemdaris (zemdaris.html): el nombre, una sola palabra, va más grande; "Digital Sanctuaries" queda de bajada */
.h1--name { font-size: clamp(2.5rem, 7.4vw, 6rem); letter-spacing: .2em; margin-right: -.2em; }
.hero__sub { margin-top: 16px; font-family: var(--sans); font-weight: 400; font-size: clamp(.82rem, 1.15vw, 1.05rem); letter-spacing: .42em; text-transform: uppercase; color: var(--on-void); }
.hero__plain { margin-top: 26px; font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 34ch; color: var(--on-void-body); }
.hero__own { margin-top: 20px; font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-void); }
.hero__hint { position: absolute; left: var(--px); bottom: 30px; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--on-void); }
.hero__door { cursor: pointer; }
.hero__hint::before { content: ''; display: inline-block; width: 34px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; }

/* 02 · Qué es */
.what { padding-block: clamp(80px, 13vh, 170px); }
.what__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.img img { width: 100%; }
.what__foot { margin-top: 34px; color: var(--ink) !important; }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(64px, 10vh, 130px); }
.parts li { border-top: 1px solid var(--hair); padding-top: 20px; }
.parts p { margin-top: 12px; color: var(--body); font-size: .96rem; max-width: 38ch; }
.parts__foot { margin-top: 44px; }

/* 03 · Catálogo */
.cat { padding-block: clamp(90px, 14vh, 180px); }
.cat__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.cat__group { margin-top: 54px; margin-bottom: 6px; }
.line { border-top: 1px solid var(--edge); }
.line:last-child { border-bottom: 1px solid var(--edge); }
.line__btn { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 24px; align-items: baseline; width: 100%; padding: 18px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.line__btn span { font-family: var(--sans); font-weight: 400; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; }
.line__btn span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; margin-right: 14px; vertical-align: 1px; transition: background .9s var(--ease); }
.line.is-on .line__btn span::before { background: currentColor; }
.line__btn i { font-style: normal; color: var(--on-void-muted); font-size: .94rem; transition: color .24s var(--ease); }
.line__btn:hover i, .line.is-on .line__btn i { color: var(--on-void-body); }
.line__more { display: none; padding: 0 0 22px 21px; }
.line.is-on .line__more { display: block; }
.line__more li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 9px 0; font-size: .92rem; color: var(--on-void-body); }
.line__more b { font-weight: 400; color: var(--on-void); }
.line__more em { font-style: normal; font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-void-muted); white-space: nowrap; }
.line__more .line__note { display: block; max-width: 52ch; }
.cat__unit { position: sticky; top: 14vh; }
.unit { border: 1px solid var(--edge); max-width: 520px; margin-left: auto; font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }
.unit__top, .unit__spec { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.unit__top { border-bottom: 1px solid var(--edge); }
.unit__spec { border-top: 1px solid var(--edge); color: var(--on-void-muted); min-height: 3.6em; }
.unit__state b { font-weight: 400; }
.unit__lens { aspect-ratio: 1; width: 62%; margin: 13% auto; }
.unit { position: relative; }
.unit__hint { text-align: right; color: var(--on-void); }
.cat.is-paint .unit__lens, .cat.is-paint .line__lens { touch-action: none; cursor: crosshair; }
.unit__ports { display: flex; justify-content: space-between; padding: 0 20px 16px; }
.unit__ports i { width: 9%; height: 3px; background: var(--edge); }

/* 04 · Quieto */
.still { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(90px, 14vh, 180px); }
.still__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; width: 100%; }
.still__try { margin-top: 44px; color: var(--on-void) !important; }
.still__note { margin-top: 12px; max-width: 44ch; font-size: .88rem; color: var(--on-void-muted); }
.still__stage { display: grid; justify-items: center; gap: 40px; }
.still__lens { width: min(62%, 44vh); aspect-ratio: 1; }
.still__read { color: var(--on-void) !important; min-width: 22em; text-align: center; }

/* 05 · Dónde va: el texto de los tres lugares baja por la izquierda; la ventana queda fija a la derecha */
.spaces { padding-block: clamp(70px, 10vh, 140px); }
.spaces__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
.place { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding-block: 6vh; transition: opacity .5s var(--ease); }
.place__img { position: relative; margin-top: 34px; }
.place__img figcaption { position: absolute; right: 0; bottom: 0; padding: 9px 14px; color: var(--on-void); background: var(--void); }
.spaces__stage { position: sticky; top: 13vh; height: 74vh; height: 74svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.spaces__win { width: 100%; aspect-ratio: 16 / 10.4; max-height: 100%; justify-self: center; }
.spaces__read { text-align: right; color: var(--on-void) !important; }
/* con el mundo 3D la foto va dentro de la ventana de luz y no en la página; sin él, cada lugar lleva la suya */
.world-layout .place__img { display: none; }
html:not(.world-layout) .spaces__stage { display: none; }
html:not(.world-layout) .spaces__grid { grid-template-columns: minmax(0, 1fr); }
html:not(.world-layout) .place { min-height: 0; padding-block: 8vh; }
.world-layout:not(.has-world) .spaces__win { background: url(../assets/img/spa.webp) center / cover no-repeat; }
.has-world .place { opacity: .32; }
.has-world .place.is-on { opacity: 1; }
.facts { margin-top: 44px; }
.facts > div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1.6fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--edge); }
.facts > div:last-child { border-bottom: 1px solid var(--edge); }
.facts dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-void-muted); padding-top: 3px; }
.facts dd { font-size: .95rem; color: var(--on-void-body); }
.paper .facts > div, .facts--paper > div { border-color: var(--hair); }
.facts--paper dt { color: var(--muted); }
.paper .facts dt { color: var(--muted); }
.paper .facts dd { color: var(--body); }
.place__foot { margin-top: 34px; }

/* 06 · Crece: el texto baja por la izquierda y la sala se arma, fija, a la derecha */
.grows { padding-block: clamp(90px, 14vh, 180px); }
.grows h2 { max-width: 16ch; }
.grows__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-areas: "head stage" "path stage"; column-gap: clamp(32px, 5vw, 96px); align-items: start; }
.grows__head { grid-area: head; }
.grows__stage { grid-area: stage; position: sticky; top: 11vh; height: 78vh; height: 78svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; }
.grows__box { width: 100%; min-height: 0; }
.grows__read { text-align: center; color: var(--on-void) !important; }
.path { grid-area: path; margin-top: clamp(70px, 16vh, 170px); padding-bottom: 20vh; }
.path li { min-height: 58vh; border-top: 1px solid var(--edge); padding-top: 18px; transition: opacity .5s var(--ease); }
.path b { display: block; margin-top: 12px; font-weight: 400; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; max-width: 26ch; }
.path p { margin-top: 10px; font-size: .93rem; color: var(--on-void-muted); max-width: 30ch; }
/* con el mundo 3D, sólo el paso que se está armando queda encendido (el texto cambia de opacidad, no se mueve) */
.has-world .path li { opacity: .34; }
.has-world .path li.is-on { opacity: 1; }
.grows__img { margin-top: clamp(40px, 8vh, 96px); }
/* sin el mundo 3D: el render ocupa el escenario y no se repite abajo */
html:not(.has-world) .grows__box { background: url(../assets/img/room-interior.webp) center / cover no-repeat; }
html:not(.has-world) .grows__read, html:not(.world-layout) .grows__img { display: none; }

/* 07 · Estudio */
.studio { padding-block: clamp(90px, 14vh, 180px); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.studio .btn { margin-top: 38px; }
.studio .facts { margin-top: 6px; }

/* 08 · Cierre */
.close { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(100px, 14vh, 180px); }
.close__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; width: 100%; }
.close h2 { max-width: 16ch; }
.close .btn { margin-top: 40px; }
.close__mail { margin-top: 22px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--on-void-muted); }
.close__door { width: clamp(110px, 13vw, 230px); height: min(58vh, 540px); margin-inline: auto; }

.ftr { background: var(--void); border-top: 1px solid var(--edge); padding-block: 28px; z-index: 3; }
.ftr__brand { display: flex; align-items: center; gap: 14px; }
.ftr__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }

/* Imágenes: se abren desde una ranura vertical, como una puerta, y derivan dentro de su marco.
   La tipografía no se mueve nunca. Sólo con JavaScript y sin "reducir movimiento" (html.has-motion). */
.has-motion figure.img { overflow: hidden; clip-path: inset(0 47% 0 47%); transition: clip-path 1.5s cubic-bezier(.6, 0, .2, 1); }
.has-motion figure.img.is-in { clip-path: inset(0 0 0 0); }
.has-motion figure.img img { transform: translate3d(0, calc(var(--d, 0) * -5%), 0) scale(1.12); will-change: transform; }
.has-motion figure.img figcaption { z-index: 1; }

/* Sin WebGL: la entrada y el cierre llevan su imagen y las lentes un aro */
.no-gl #aperture { display: none; }
.no-gl .hero__stage { background: var(--void) url(../assets/img/portal.webp) center / cover no-repeat; }
.no-gl .close { background: var(--void) url(../assets/img/door-amber.webp) right center / cover no-repeat; }
.no-gl .unit__lens, .no-gl .still__lens { border: 1px solid var(--edge); border-radius: 50%; }

/* Marcas de sección: una raya por sección al borde derecho. Sin color, como todo el chrome. */
.rail { position: fixed; z-index: 40; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 4px; mix-blend-mode: difference; }
.rail button { display: block; width: 26px; height: 14px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.rail button::before { content: ''; position: absolute; right: 0; top: 6px; height: 1px; width: 10px; background: #f2f0ec; opacity: .45; transition: width .24s var(--ease), opacity .24s var(--ease); }
.rail button:hover::before, .rail button.is-on::before { width: 24px; opacity: 1; }
/* Sin JavaScript: el catálogo se lee entero */
.no-js .line__more { display: block; }
.no-js .cat__unit { display: none; }
.u-narrow { display: none; }
.line__more .line__lens { display: none; }
@media (max-width: 900px) {
  .hdr { gap: 16px; padding-block: 16px; }
  .hdr__nav a:not(.btn), .hdr__state { display: none; }
  .hdr__nav { margin-left: auto; }
  .hdr__word { font-size: .66rem; letter-spacing: .32em; }
  .hero__door { right: 50%; transform: translateX(50%); top: 12%; width: min(62vw, 36vh); }
  .hero__txt { max-width: none; right: var(--px); bottom: 84px; }
  .what__grid, .cat__grid, .still__grid, .studio__grid, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .parts { grid-template-columns: minmax(0, 1fr); }
  /* la sala queda fija arriba y los pasos pasan por debajo, de a uno */
  .grows__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "path"; }
  .grows__stage { top: 0; height: 50vh; height: 50svh; margin-top: 30px; }
  .path { margin-top: 0; padding-bottom: 8vh; }
  .path li { min-height: 60vh; min-height: 60svh; }
  .has-world .path li { opacity: 0; }
  html:not(.has-world) .grows__stage { position: static; height: auto; aspect-ratio: 16 / 10; margin-bottom: 30px; }
  /* En teléfono la unidad va arriba, sin quedarse fija; al elegir una línea, la lente se
     enciende dentro de esa línea (js/app.js mueve ahí la apertura). */
  .cat__unit { order: -1; position: static; }
  .unit { max-width: 340px; margin-inline: auto; }
  .rail { display: none; }
  .line__more .line__lens { position: relative; display: block; padding: 0; width: 44vw; max-width: 200px; aspect-ratio: 1; margin: 18px auto 34px; }
  .line__lens[data-hint]::after { content: attr(data-hint); position: absolute; left: -30%; right: -30%; top: 100%; margin-top: 4px; text-align: center; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-void-muted); }
  .line__btn { grid-template-columns: minmax(0, 1fr); }
  .line__more li { grid-template-columns: minmax(0, 1fr) auto; }
  .line__more li span { grid-column: 1 / -1; grid-row: 2; }
  .still__stage { order: -1; }
  .still__lens { width: min(56vw, 34vh); }
  /* la ventana queda fija arriba y los tres lugares pasan por debajo, de a uno */
  .spaces__grid { grid-template-columns: minmax(0, 1fr); }
  .spaces__stage { order: -1; top: 0; height: 44vh; height: 44svh; }
  .place { min-height: 64vh; min-height: 64svh; justify-content: flex-start; padding-block: 5vh; }
  .has-world .place { opacity: 0; }
  .spaces__read { text-align: center; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .u-wide { display: none; } .u-narrow { display: inline; }
  .close .btn { font-size: .64rem; letter-spacing: .16em; padding: 15px 20px; white-space: nowrap; }
  .close__door { order: -1; height: 34vh; width: 28vw; }
  .close { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ══ El recorrido (octava vuelta): la página no baja, se avanza ══════════════════════════════════
   .track  la pista: tramos vacíos (.beat) que sólo dan largo al scroll
   .pn     un panel por capítulo, fijo; js/app.js le cambia la opacidad (la tipografía no se mueve)
   Sin el mundo 3D (html sin .world-layout) los paneles se leen uno bajo el otro, como un documento. */
.beat { height: calc(var(--h, 1) * 100vh); }
.pn { position: fixed; z-index: 2; left: var(--px); top: 50%; transform: translateY(-50%); width: min(40vw, 540px); opacity: 0; pointer-events: none; }
.pn.is-live { pointer-events: auto; }
.pn h2 { font-size: clamp(1.3rem, 2.5vw, 2.15rem); max-width: 17ch; }
.pn .lead { font-size: clamp(.96rem, 1.1vw, 1.06rem); }
.pn__read { margin-top: 26px; color: var(--on-void) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 1.6em; }
.pn__read .dot { margin-right: 0; }
.pn__spec { color: var(--on-void-muted); }
.pn__hint { margin-left: auto; }
.stage { position: fixed; right: 9vw; top: 20vh; width: 34vw; height: 60vh; pointer-events: none; }

/* la entrada ocupa toda la pantalla: reutiliza .hero__txt y .hero__hint */
.pn--hero { inset: 0; width: auto; transform: none; }

/* capítulos dentro de la luz: tinta sobre hueso, al centro y más anchos */
.pn--wide { left: 50%; transform: translate(-50%, -50%); width: min(88vw, 1180px); }
.pn--ink { color: var(--ink); }
.pn--ink .label { color: var(--muted); }
.pn--ink .lead { color: var(--body); }
.pn--ink .facts > div { border-color: var(--hair); }
.pn--ink .facts dt { color: var(--muted); }
.pn--ink .facts dd { color: var(--body); }
.pn--ink .parts p { color: var(--body); }
.pn--what { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.pn--parts .parts { margin-top: 0; }
.pn--studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.pn--studio .btn { margin-top: 30px; }
.pn--studio .facts { margin-top: 0; }

/* el catálogo: las nueve líneas en una lista corta; la que toca se abre */
.pn--cat { width: min(42vw, 560px); top: 53%; }
.pn--cat .pn__lead { margin-top: 14px; }
.pn--cat .lines { margin-top: 10px; }
.pn--cat .cat__group { margin: 14px 0 4px; font-size: .58rem; }
.pn--cat .line__btn { grid-template-columns: minmax(0, 1fr); padding: 6px 0; gap: 4px; }
.pn--cat .line__btn span { font-size: .8rem; }
.pn--cat .line__btn i { display: none; font-size: .92rem; }
.pn--cat .line.is-on .line__btn { padding-block: 12px 6px; }
.pn--cat .line.is-on .line__btn i { display: block; padding-left: 21px; }
.pn--cat .line__more { padding: 0 0 12px 21px; }
.pn--cat .line__more li { padding: 5px 0; font-size: .86rem; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) auto; }
.pn--cat .line:not(.is-on) .line__btn span { color: var(--on-void-muted); transition: color .24s var(--ease); }
.pn--cat .line:not(.is-on) .line__btn:hover span { color: var(--on-void); }

/* los tres espacios: uno sobre otro, se funden */
.pn--spaces .places { display: grid; }
.pn--spaces .place { grid-area: 1 / 1; min-height: 0; padding: 0; display: block; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.pn--spaces .place.is-on { opacity: 1; pointer-events: auto; }
.pn--spaces .facts { margin-top: 28px; }
.pn--spaces .facts > div { padding: 10px 0; }
.pn--spaces .place__foot { margin-top: 22px; }

/* la sala XR: los cuatro pasos, uno encendido */
.pn--room .path { margin-top: 18px; padding-bottom: 0; }
.pn--room .path li { min-height: 0; padding: 12px 0 14px; opacity: .32; transition: opacity .5s var(--ease); }
.pn--room .path li.is-on { opacity: 1; }
.pn--room .path b { margin-top: 6px; }
.pn--room .path p { margin-top: 4px; }
.pn--room.is-whole .path li { opacity: .8; }

.pn--close .btn { margin-top: 34px; }
.world-layout .flowimg, .world-layout .place__img { display: none; }
.world-layout .rail { top: 50%; }

/* ── Sin el mundo 3D: un documento que se lee de arriba abajo ── */
html:not(.world-layout) .track, html:not(.world-layout) .stage, html:not(.world-layout) #aperture, html:not(.world-layout) #world, html:not(.world-layout) .pn__read { display: none; }
html:not(.world-layout) .pn { position: static; transform: none; width: auto; opacity: 1; pointer-events: auto; padding: clamp(70px, 11vh, 140px) var(--px); max-width: 1280px; margin-inline: auto; }
html:not(.world-layout) .pn--hero { position: relative; min-height: 100vh; max-width: none; background: linear-gradient(to right, rgba(10, 10, 9, .9) 0, rgba(10, 10, 9, .5) 40%, rgba(10, 10, 9, 0) 60%), var(--void) url(../assets/img/circle.webp) 30% center / cover no-repeat; }   /* el círculo (L31 del deck) */
@media (max-width: 900px) { html:not(.world-layout) .pn--hero { background: linear-gradient(to top, rgba(10, 10, 9, .92) 0, rgba(10, 10, 9, .5) 45%, rgba(10, 10, 9, 0) 65%), var(--void) url(../assets/img/circle.webp) 22% 20% / cover no-repeat; } }   /* la puerta con la persona de visor (L17 del deck, teñida de cian) */
html:not(.world-layout) .pn--ink { background: var(--paper); max-width: none; }
html:not(.world-layout) .pn--parts { padding-top: 0; }
html:not(.world-layout) .pn--cat .line__btn i, html:not(.world-layout) .line__more { display: block; }
html:not(.world-layout) .pn--cat .line__btn span { color: var(--on-void) !important; }
html:not(.world-layout) .pn--spaces .places { display: block; }
html:not(.world-layout) .pn--spaces .place { opacity: 1; pointer-events: auto; padding-block: 5vh; }
html:not(.world-layout) .pn--room .path li { opacity: 1; }
html:not(.world-layout) .flowimg { margin-top: 40px; }

@media (max-width: 900px) {
  /* en teléfono la luz va arriba y el panel abajo */
  .pn { left: var(--px); right: var(--px); width: auto; top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; max-height: 54vh; max-height: 54svh; overflow-y: auto; overscroll-behavior: auto; }
  .pn h2 { font-size: 1.3rem; }
  .pn--hero { inset: 0; max-height: none; overflow: visible; }
  .pn--wide { left: var(--px); right: var(--px); transform: none; width: auto; top: 76px; bottom: 18px; max-height: none; align-content: start; }
  .pn--what, .pn--studio { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pn--what .what__img { max-width: 62%; }
  .pn--parts .parts { gap: 14px; }
  .pn--cat { width: auto; }
  .pn--cat .line:not(.is-on), .pn--cat .cat__group { display: none; }
  .pn--cat .line { border: 0; }
  .pn--cat .line.is-on .line__btn i { padding-left: 0; }
  .pn--cat .line__more { padding-left: 0; }
  .pn--cat .line__more li { grid-template-columns: minmax(0, 1fr) auto; }
  .pn--room .path li:not(.is-on) { display: none; }
  .pn--room.is-whole .path li { display: block; padding: 6px 0; }
  .pn--room.is-whole .path p { display: none; }
  .pn--spaces .facts { margin-top: 16px; }
  .pn--spaces .place__foot { display: none; }
  .pn__read { margin-top: 14px; }
  .stage { right: 14vw; left: 14vw; top: 12vh; width: auto; height: 34vh; }
  html:not(.world-layout) .pn { max-height: none; overflow: visible; }
  html:not(.world-layout) .pn--cat .line:not(.is-on), html:not(.world-layout) .pn--room .path li:not(.is-on) { display: block; }
}

/* ══ Novena vuelta: experiencias, sesiones reales, paquetes y el formulario ═══════════════════════ */
/* las experiencias: qué lee, sus sesiones y en qué más existe */
.pn--cat .line__reads { margin: 2px 0 6px; color: var(--on-void) !important; }
.pn--cat .line__also { margin-top: 10px; }
.pn--cat .line__note { font-size: .9rem; color: var(--on-void-body); max-width: 46ch; }
.line__img { margin-top: 16px; max-width: 420px; }
.world-layout .line__img { display: none; }

/* las sesiones reales: la foto va dentro de la ventana de luz; en el panel, el texto */
.pn--spaces .place .lead { margin-top: 18px; }

/* los paquetes: cerrados muestran nombre y precio; el activo abre para quién, qué incluye y cuándo */
.pn--room .path li { padding: 10px 0 12px; }
.pn--room .path li > .label { color: var(--on-void-muted); }
.pn--room .path li.is-on > .label { color: var(--on-void); }
.pn--room .path b { font-size: .95rem; }
.pn--room .path p { color: var(--on-void-body); max-width: 40ch; }
.pk { margin-top: 12px; }
.pk > div { display: grid; grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr); gap: 2px 16px; padding: 7px 0; border-top: 1px solid var(--edge); }
.pk dt { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-void-muted); padding-top: 3px; }
.pk dd { font-size: .88rem; color: var(--on-void-body); }
.world-layout .pn--room .path li:not(.is-on) p, .world-layout .pn--room .path li:not(.is-on) .pk { display: none; }
.world-layout .pn--room.is-whole .path li p, .world-layout .pn--room.is-whole .path li .pk { display: none; }
.pk__ask { display: none; margin-top: 22px; }
.pn--room.is-whole .pk__ask, html:not(.world-layout) .pk__ask { display: block; }
.pk__q { font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: .08em; text-transform: uppercase; }
.pk__a { margin-top: 10px; font-size: .94rem; color: var(--on-void-body); max-width: 44ch; }
.pk__note { margin-top: 10px; font-size: .8rem; color: var(--on-void-muted); }

/* fundadores */
.offer { margin-top: 26px; max-width: 44ch; }
.offer li { padding: 9px 0; border-top: 1px solid var(--edge); font-size: .95rem; color: var(--on-void-body); }
.offer li:last-child { border-bottom: 1px solid var(--edge); }
.offer__price { margin-top: 24px; font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: .04em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.offer__note { margin-top: 10px; font-size: .9rem; color: var(--on-void-body); max-width: 46ch; }
.offer__date { margin-top: 18px; color: var(--on-void) !important; }

/* el formulario: líneas, sin cajas; radio 0, píldora sólo en el botón */
.pn--form { width: min(46vw, 640px); top: auto; bottom: 104px; transform: none; max-height: calc(100vh - 184px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(242, 240, 236, .25) transparent; }   /* abajo queda el pie: el panel se apoya encima */
.form { margin-top: 22px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field .label i { font-style: normal; text-transform: none; letter-spacing: .04em; opacity: .7; margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; color: var(--on-void); background: transparent; border: 0; border-bottom: 1px solid rgba(242, 240, 236, .32); border-radius: 0; padding: 8px 0; outline: none; transition: border-color .24s var(--ease); -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 5px 5px; background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-repeat: no-repeat; padding-right: 22px; }
.field select option { background: var(--void); color: var(--on-void); }
.field textarea { resize: vertical; min-height: 2.6em; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--on-void); }
.field--pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.field--pick legend { margin-bottom: 8px; padding: 0; }
.field--pick label { position: relative; cursor: pointer; }
.field--pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.field--pick span { display: inline-block; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 8px 13px; border: 1px solid rgba(242, 240, 236, .32); border-radius: 999px; color: var(--on-void-body); transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease); }
.field--pick input:checked + span { background: var(--on-void); color: var(--ink); border-color: var(--on-void); }
.field--pick input:focus-visible + span { outline: 1px solid var(--on-void); outline-offset: 2px; }
.form__end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__end .btn { background: var(--on-void); color: var(--ink); cursor: pointer; }
.form__end .btn:hover, .form__end .btn:focus-visible { background: transparent; color: var(--on-void); }
.form__end .btn[disabled] { opacity: .5; cursor: default; }
.form__msg { font-size: .88rem; color: var(--on-void-body); min-height: 1.4em; }
.form__msg.is-bad { color: var(--on-void); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__or { margin-top: 18px; font-size: .84rem; color: var(--on-void-muted); }
.form__or a { color: var(--on-void-body); }
.form__by { display: none; margin-top: 18px; }

@media (max-width: 900px) {
  .pn--form { top: 64px; bottom: 0; left: 0; right: 0; width: auto; transform: none; max-height: none; padding: 12px var(--px) 32px; background: rgba(10, 10, 9, .9); }
  .world-layout .ftr { display: none; }      /* en teléfono el pie taparía el formulario: su línea va dentro del panel */
  .world-layout .form__by { display: block; }
  html:not(.world-layout) .pn--form { background: none; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pn--cat .line__also, .pn--cat .line__reads { display: none; }
  .pn--room .pk__note { display: none; }
  .pn--close .offer li { padding: 6px 0; font-size: .88rem; }
  .pn--close .offer__note { display: none; }
}
@media (min-width: 901px) and (max-height: 880px) {
  /* pantallas bajas: el formulario se aprieta para no quedar bajo el pie */
  .pn--form h2 { font-size: 1.3rem; }
  .pn--form .form { margin-top: 14px; gap: 10px; }
  .pn--form .field--pick span { padding: 6px 11px; }
  .pn--form .form__or { margin-top: 10px; }
  .pn--form .label + h2 { margin-top: 12px; }
  .pn--form .field input, .pn--form .field select, .pn--form .field textarea { padding: 5px 0; }
  .pn--form .field--pick legend { margin-bottom: 4px; }
}

/* ══ La animación del logo en la entrada (DS_logo_opcionC, 2026-12-01) ═══════════════════════════
   El video (fondo negro) se dibuja en un canvas que vuelve transparente el negro: la luz y el logo
   quedan sobre el portal. --aw es el ancho del cuadro entero; el lockup ocupa del 11 % al 89 % de
   ese ancho y del 37 % al 62 % del alto, así que los márgenes negativos lo alinean con el texto. */
.hero__title { --aw: min(700px, 58vw); margin-top: 22px; position: relative; }
.hero__anim { display: block; width: var(--aw); aspect-ratio: 16 / 9; margin: calc(var(--aw) * -.2) 0 calc(var(--aw) * -.18) calc(var(--aw) * -.11); pointer-events: none; }
.hero__src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-js .hero__word { position: static; width: auto; height: auto; clip: auto; }
.no-js .hero__anim { display: none; }
.hero__title + .hero__src + .hero__plain { position: relative; }
@media (max-width: 900px) { .hero__title { --aw: calc((100vw - 2 * var(--px)) * 1.2); overflow-x: clip; } }      /* el cuadro del video se sale unos px: sus bordes son transparentes, se recortan */

/* ══ Décima vuelta (2026-12-01): la estructura de Vicente en 18 momentos ═════════════════════════ */
/* la intro: el logo solo; el resto aparece cuando termina (js/app.js quita .intro) */
.hero__plain, .hero__by, .hero__hint, .hdr, .rail { transition: opacity 1.2s var(--ease); }
.intro .hero__plain, .intro .hero__by, .intro .hero__hint, .intro .hdr, .intro .rail { opacity: 0; pointer-events: none; }
.hero__by { margin-top: 22px; color: var(--on-void) !important; }

/* lo que va dentro de una apertura (fotos y videos): con el mundo 3D no se ve en la página, pero sigue
   "en pantalla" para que el navegador reproduzca el video que js/scene.js usa de textura */
.world-layout .media { display: block !important; position: absolute; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; margin: 0; }
.media video, .media img { display: block; width: 100%; height: auto; }

/* los formatos: VR y proyección interactiva, con su ícono */
.fmt { display: inline-flex; align-items: center; gap: 7px; margin-right: 16px; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; flex: none; }

/* 03 · el catálogo: cinco tarjetas en la luz */
.pn--kinds { display: grid; gap: clamp(26px, 4vh, 44px); }
.kinds__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px clamp(28px, 5vw, 90px); align-items: end; }
.kinds__head .label, .kinds__head h2 { grid-column: 1; }
.kinds__head .lead { grid-column: 2; grid-row: 1 / span 2; }
.kinds__legend { grid-column: 2; color: var(--body); }
.kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 26px); list-style: none; }
.kind { cursor: pointer; border-top: 1px solid var(--hair); padding-top: 14px; }
.kind__img { aspect-ratio: 4 / 3; overflow: hidden; }
.kind__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.kind:hover .kind__img img { transform: scale(1.04); }
.kind h3 { margin-top: 14px; font-size: .86rem; letter-spacing: .1em; line-height: 1.35; }
.kind__reads { margin-top: 6px; color: var(--muted) !important; }
.kind__fmt { margin-top: 12px; color: var(--body); display: flex; flex-direction: column; gap: 6px; }
.kind__fmt .fmt { margin: 0; }

/* 04–08 · cada experiencia: un artículo a la vez */
.pn--cat .lines { margin-top: 0; display: grid; }
.pn--cat .line { grid-area: 1 / 1; border: 0; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.pn--cat .line.is-on { opacity: 1; pointer-events: auto; }
.pn--cat .line .facts { margin-top: 26px; }
.pn--cat .line .facts > div { padding: 10px 0; }
.pn--cat .line h2 { display: block; }

/* 09 · biofeedback */
.pn--still .facts { margin-top: 24px; }
.pn--still .facts > div { padding: 9px 0; }
.pn--still .still__try { margin-top: 24px; }
.pn--results .lead + .lead { margin-top: 14px; }

/* 10 · los cuatro paquetes de un vistazo */
.pkall { margin-top: 24px; list-style: none; max-width: 560px; }
.pkall li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--edge); }
.pkall li:last-child { border-bottom: 1px solid var(--edge); }
.pkall b { font-weight: 400; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; }
.pkall p { grid-column: 2 / span 2; font-size: .9rem; color: var(--on-void-body); }
.pkall em { grid-column: 3; grid-row: 1; font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-void); white-space: nowrap; }
.pn--pkall .pk__note { margin-top: 16px; }

/* 11–14 · cada paquete, solo */
.pn--room { width: min(44vw, 600px); }
.pn--room .path { margin-top: 0; }
.pn--room .path li { border: 0; padding: 0; opacity: 1 !important; }
.world-layout .pn--room .path li:not(.is-on) { display: none; }
.pn--room .path li .lead { margin-top: 14px; max-width: 48ch; }
.world-layout .pn--room .path li.is-on .pk, .pn--room .path li .pk { display: block; margin-top: 18px; }
.pn--room .pk > div { padding: 6px 0; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); }
.pn--room .pk dd { font-size: .86rem; }
.pk__price { margin-top: 18px; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: .04em; }
.pk__sub { margin-top: 4px; font-size: .82rem; color: var(--on-void-muted); max-width: 52ch; }

/* 16 · Alma Digital Studio */
.alma__logo { margin-top: 22px; }
.alma__logo img { width: clamp(170px, 16vw, 230px); height: auto; display: block; }
.pn--alma h2 { margin-top: 24px; }
.pn--alma .lead + .lead { margin-top: 12px; }
.pn--alma .btn { margin-top: 26px; }

/* sin el mundo 3D: todo a la vista, como documento */
html:not(.world-layout) .pn--cat .line { opacity: 1; pointer-events: auto; grid-area: auto; padding-block: 6vh; }
html:not(.world-layout) .media { margin-top: 26px; max-width: 760px; }
html:not(.world-layout) .pn--alma, html:not(.world-layout) .pn--results { max-width: 1280px; }

@media (max-width: 900px) {
  .kinds__head { grid-template-columns: minmax(0, 1fr); }
  .kinds__head .lead, .kinds__legend { grid-column: 1; grid-row: auto; }
  .kinds__head .lead { display: none; }
  .kinds { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kind { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 9px 0; }
  .kind__img { grid-row: 1 / span 3; aspect-ratio: 1; }
  .kind h3 { margin-top: 0; font-size: .78rem; }
  .kind__reads { margin-top: 0; }
  .kind__fmt { margin-top: 2px; flex-direction: row; gap: 12px; }
  .kind__fmt .fmt span { display: none; }
  .pn--kinds { gap: 18px; }
  .pn--cat .line .facts { margin-top: 14px; }
  .pn--cat.has-pick .line h2 { display: block; }
  .pn--cat .line h2 { font-size: 1.15rem; }
  .pn--still .still__try, .pn--still .lead { display: none; }
  .pn--room { width: auto; }
  .pn--alma .lead + .lead { display: none; }
  .world-layout .alma__logo { display: none; }      /* en teléfono el reel ya muestra el logo de Alma, justo encima */
  .pkall p { display: none; }
}
@media (min-width: 901px) and (max-height: 880px) {
  /* pantallas bajas: el paquete en detalle se aprieta para no tocar el menú */
  .pn--room { top: calc(50% + 24px); max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(242, 240, 236, .25) transparent; }
  .pn--room h2 { font-size: 1.35rem; }
  .pn--room .path li .lead { margin-top: 10px; font-size: .92rem; }
  .pn--room .pk { margin-top: 12px; }
  .pn--room .pk > div { padding: 4px 0; }
  .pn--room .pk dd { font-size: .82rem; }
  .pk__price { margin-top: 12px; font-size: 1.35rem; }
}
@media (min-width: 901px) and (max-height: 880px) {
  /* biofeedback: cinco sensores; en pantallas bajas se aprieta para no tocar el menú */
  .pn--still { top: calc(50% + 22px); }
  .pn--still h2 { font-size: 1.35rem; }
  .pn--still .facts { margin-top: 14px; }
  .pn--still .facts > div { padding: 5px 0; }
  .pn--still .facts dd { font-size: .86rem; }
  .pn--still .still__try { margin-top: 14px; }
}

/* sin precios en la web (decisión de Vicente, 2026-12-01): cada paquete cierra con "Pricing on request" */
.pk__ask { display: block !important; margin-top: 18px; color: var(--on-void) !important; }
.pkall li { grid-template-columns: 2.4em minmax(0, 1fr); }
.pkall p { grid-column: 2; }

.form__row--one { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) and (max-height: 880px) {
  .pn--form .field textarea { min-height: 1.9em; }
  .pn--form .form__end { margin-top: 0; }
  .pn--form .form__or { font-size: .8rem; }
}
@media (min-width: 901px) and (max-height: 880px) { .pn--form { bottom: 94px; max-height: calc(100vh - 160px); } }

/* ══ La entrada, centrada (2026-12-01): el portal al medio y arriba, con su reflejo; el logo, la
   descripción y "By Alma Digital Studio" centrados debajo, y "Enter" al pie, también al centro ═══════ */
.pn--hero .hero__txt { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, calc(100vw - 2 * var(--px))); max-width: none; bottom: clamp(70px, 12vh, 130px); text-align: center; }
.pn--hero .hero__title { --aw: min(560px, 44vw); margin-top: 0; }
.pn--hero .hero__anim { margin: calc(var(--aw) * -.2) 0 calc(var(--aw) * -.17) calc((100% - var(--aw)) / 2); }   /* centrado aunque el cuadro sea más ancho que la columna */
.pn--hero .hero__plain { margin: 24px auto 0; max-width: 42ch; }
.pn--hero .hero__by { margin-top: 18px; }
.pn--hero .hero__hint { left: 50%; transform: translateX(-50%); bottom: 26px; }
.pn--hero .hero__hint::before { display: none; }
.hero__plain, .hero__by, .hero__hint, .hdr, .rail { transition-duration: .8s; }
@media (max-width: 900px) {
  .pn--hero .hero__txt { bottom: 76px; }
  .pn--hero .hero__title { --aw: calc((100vw - 2 * var(--px)) * 1.15); }
}
html:not(.world-layout) .pn--hero .hero__txt { position: absolute; }

/* ══ La entrada, de costado (2026-12-01): el círculo a la derecha, visto en ángulo; el logo y la
   descripción a la izquierda, alineados a la izquierda y a media altura. En teléfono, uno sobre otro ══ */
@media (min-width: 901px) {
  .pn--hero .hero__txt { left: var(--px); right: auto; top: 50%; bottom: auto; transform: translateY(-46%); width: min(560px, 42vw); text-align: left; }
  .pn--hero .hero__title { --aw: min(600px, 44vw); }
  .pn--hero .hero__anim { margin: calc(var(--aw) * -.2) 0 calc(var(--aw) * -.17) calc(var(--aw) * -.11); }
  .pn--hero .hero__plain { margin: 26px 0 0; max-width: 36ch; }
  .pn--hero .hero__hint { left: var(--px); transform: none; bottom: 30px; }
  .pn--hero .hero__hint::before { display: inline-block; }
}

/* ══ El motor de láminas (2026-12-01): con el mundo 3D la página no hace scroll ═════════════════════
   La pista (.track) sigue en el documento para dar las posiciones, pero no se recorre con el scroll:
   js/app.js anima una posición virtual de lámina en lámina. El pie aparece en la última lámina. */
html.scrolly .ftr { position: fixed; left: 0; right: 0; bottom: 0; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
html.scrolly.at-end .ftr { opacity: 1; pointer-events: auto; }

/* ══ Scroll narrativo (2026-12-02): el scroll vuelve a ser el del navegador ════════════════════════
   Lo de arriba queda como historia: la página ya no se bloquea. La pista se recorre con el scroll (cada
   tramo mide un 25 % más, para que la escena tenga recorrido) y js/app.js asienta la lámina al soltar. */
.world-layout .beat { height: calc(var(--h, 1) * 125vh); }

/* La línea de progreso y los nombres de los capítulos junto a las marcas */
.prog { position: fixed; z-index: 41; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; mix-blend-mode: difference; }
.prog i { display: block; height: 100%; background: #f2f0ec; opacity: .7; transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.intro .prog { opacity: 0; }
.rail button span { position: absolute; right: 36px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: #f2f0ec; opacity: 0; pointer-events: none; transition: opacity .24s var(--ease), transform .24s var(--ease); }
.rail:hover button span { opacity: .5; transform: translate(0, -50%); }
.rail:hover button:hover span, .rail:hover button.is-on span { opacity: 1; }
.rail button { height: 18px; }
.rail button::before { top: 8px; }

/* La entrada del texto: al llegar a una lámina (.is-in en el panel, la pone js/app.js) los bloques entran de a
   uno. El título sube línea por línea desde una máscara (.ln); lo demás (.rv) aparece subiendo un poco. La
   salida es sólo el fundido del panel con el scroll. Sin el mundo 3D nada de esto corre. */
@keyframes rv-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes ln-in { from { transform: translate3d(0, 112%, 0); } to { transform: none; } }
.world-layout .pn .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.world-layout .pn .ln__i { display: block; }
.world-layout .pn:not(.is-in) .rv { opacity: 0; }
.world-layout .pn:not(.is-in) .ln__i { transform: translate3d(0, 112%, 0); }
.world-layout .pn.is-in .rv { animation: rv-in .95s cubic-bezier(.16, .84, .3, 1) both; animation-delay: calc(var(--ri, 0) * 70ms + 120ms); }
.world-layout .pn.is-in h2 .ln__i { animation: ln-in 1.15s cubic-bezier(.16, .84, .3, 1) both; animation-delay: calc(var(--li, 0) * 95ms + 60ms); }
/* dentro de un panel con varios artículos (las experiencias, los lugares) cada uno repite su entrada al encenderse */
.world-layout .pn--cat .line:not(.is-on) .rv, .world-layout .pn--spaces .place:not(.is-on) .rv,
.world-layout .pn--cat .line:not(.is-on) .ln__i, .world-layout .pn--spaces .place:not(.is-on) .ln__i { animation: none; }
.world-layout .pn--cat .line, .world-layout .pn--spaces .place { transition-duration: .28s; }
@media (prefers-reduced-motion: reduce) { .world-layout .pn .rv, .world-layout .pn .ln__i { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* ══ El catálogo como fila de unidades (2026-12-01): con el mundo 3D, la lista va a la izquierda, sin las
   fotos (las muestran las lentes); sin 3D sigue la grilla de tarjetas con imagen ═════════════════════ */
.world-layout .pn--kinds { width: min(40vw, 500px); display: block; }
.world-layout .pn--kinds .kinds__head { display: block; }
.world-layout .pn--kinds .kinds__head .lead { margin-top: 14px; }
.world-layout .pn--kinds .kinds__legend { margin-top: 16px; color: var(--on-void-body); }
.world-layout .pn--kinds .kinds { display: block; margin-top: 22px; }
.world-layout .pn--kinds .kind { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--edge); }
.world-layout .pn--kinds .kind:last-child { border-bottom: 1px solid var(--edge); }
.world-layout .pn--kinds .kind__img { display: none; }
.world-layout .pn--kinds .kind h3 { margin: 0; font-size: .86rem; color: var(--on-void); }
.world-layout .pn--kinds .kind__reads { grid-row: 2; margin: 0; color: var(--on-void-muted) !important; }
.world-layout .pn--kinds .kind__fmt { grid-row: 1 / span 2; grid-column: 2; margin: 0; flex-direction: row; gap: 10px; color: var(--on-void-muted); }
.world-layout .pn--kinds .kind__fmt .fmt span { display: none; }
.world-layout .pn--kinds .kind:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) { .world-layout .pn--kinds { width: auto; } .world-layout .pn--kinds .kinds__head .lead { display: none; } .world-layout .pn--kinds .kind { padding: 8px 0; } }

/* ══ Lámina 2 en su mundo (2026-12-01): ya no es luz hueso; el texto a la izquierda, sobre oscuro ═══ */
.world-layout .pn--what { display: block; width: min(40vw, 520px); }
.world-layout .pn--what .what__img { display: none; }
.world-layout .pn--what .lead + .lead { margin-top: 14px; }
@media (max-width: 900px) { .world-layout .pn--what { width: auto; } }


/* ═══ Tipografía y diagramación: pasada editorial (2026-12-02, a pedido de Beltrán) ═══
   El texto va directo sobre el vacío, sin marcos: lo que ordena es la escala, no las cajas.
   - Tres voces: los títulos en una serif liviana, en altas y bajas y grandes (--display, Fraunces); el texto en la
     sans de siempre (Libre Franklin); y las etiquetas en mono, como numeración (IBM Plex Mono). El logotipo y la
     cabecera siguen en mayúsculas espaciadas: es la marca, y ahora contrasta con los títulos en vez de repetirse.
   - Los tamaños crecen con el ancho pero también se frenan con el alto (min(vw, vh)): en una pantalla baja el título
     no empuja las fichas fuera del cuadro.
   - Detrás de cada panel hay una penumbra sin borde (.pn::before): no es un marco, es el mismo vacío un poco más hondo
     donde está el texto, para que el humo no le quite contraste.
   - ?type=sans prueba los títulos en la sans de la marca; ?type=brand vuelve a los títulos de antes (mayúsculas). */
:root {
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --t-h2: clamp(2rem, min(4.3vw, 7.6vh), 4.6rem);          /* títulos de lámina */
  --t-h2-s: clamp(1.7rem, min(3.1vw, 5.5vh), 3.1rem);       /* títulos de las láminas con mucha ficha debajo */
  --t-h2-xl: clamp(3rem, min(7.4vw, 13.5vh), 8rem);         /* una sola palabra, sola en la lámina (los seis lugares) */
  --t-lead: clamp(1rem, min(1.2vw, 2.2vh), 1.2rem);
  --t-item: clamp(1.15rem, min(1.65vw, 2.9vh), 1.6rem);     /* nombres en las listas (las cinco experiencias, los cuatro paquetes) */
}
html.type-sans { --display: var(--sans); }
/* en monitores grandes todo crece un poco (hasta 20 px de base en 2560), siempre que el alto acompañe */
html:not(.type-brand) { font-size: clamp(16px, min(9.33px + .4167vw, 1.78vh), 20px); }
html:not(.type-brand) body { font-size: 1rem; }

html:not(.type-brand) .pn h2 { font-family: var(--display); font-weight: 300; font-size: var(--t-h2); line-height: 1.03; letter-spacing: -.022em; text-transform: none;
  max-width: 15ch; text-wrap: balance; font-optical-sizing: auto; font-variation-settings: 'SOFT' 40; }
html.type-sans .pn h2 { letter-spacing: -.035em; line-height: 1.02; }
html:not(.type-brand) .pn .label + h2 { margin-top: clamp(14px, 2.4vh, 26px); }
html:not(.type-brand) .pn h2 + .lead { margin-top: clamp(16px, 2.8vh, 30px); }
html:not(.type-brand) .pn .lead { font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
/* la máscara de cada línea del título deja lugar a las descendentes de la serif (g, y, p) */
.world-layout .pn .ln { padding-bottom: .16em; margin-bottom: -.16em; }

/* las fichas: la etiqueta en mono, el dato un poco más grande que antes */
html:not(.type-brand) .pn .facts dd { font-size: clamp(.9rem, min(1.04vw, 1.9vh), 1.02rem); line-height: 1.45; }
html:not(.type-brand) .pn .pk dd { font-size: clamp(.86rem, min(.98vw, 1.75vh), .96rem); line-height: 1.42; }
html:not(.type-brand) .pn .facts dt, html:not(.type-brand) .pn .pk dt { padding-top: .42em; }

/* la penumbra detrás del texto */
.world-layout .pn:not(.pn--hero):not(.pn--form)::before { content: ''; position: absolute; z-index: -1; inset: -24% -36% -24% -70%; pointer-events: none;
  background: radial-gradient(ellipse at 44% 50%, rgba(10, 10, 9, .66) 0, rgba(10, 10, 9, .44) 42%, rgba(10, 10, 9, 0) 72%); }

/* los paquetes: sus etiquetas, del mismo cuerpo que las demás (heredaban el del párrafo de la lista) */
html:not(.type-brand) .pn--room .path li > .label { font-size: .68rem; }
@media (min-width: 901px) {
  /* una sola columna de texto para todas las láminas, del mismo ancho */
  html:not(.type-brand).world-layout .pn:not(.pn--hero):not(.pn--wide):not(.pn--form) { width: min(42vw, 640px); }

  /* la portada: la bajada, en la serif y más grande; es la primera frase que se lee */
  html:not(.type-brand) .pn--hero .hero__plain { font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, min(1.85vw, 3.3vh), 1.9rem); line-height: 1.28; letter-spacing: -.012em;
    max-width: 27ch; color: var(--on-void); text-wrap: pretty; font-variation-settings: 'SOFT' 40; margin-top: clamp(20px, 3.4vh, 34px); }
  html:not(.type-brand) .pn--hero .hero__by { margin-top: clamp(18px, 3vh, 30px); color: var(--on-void-muted); }

  /* las cinco experiencias y los cuatro paquetes: un índice, con su número y el nombre en la serif */
  html:not(.type-brand).world-layout .pn--kinds h2, html:not(.type-brand) .pn--pkall h2, html:not(.type-brand) .pn--still h2, html:not(.type-brand) .pn--alma h2 { font-size: var(--t-h2-s); max-width: 17ch; }
  html:not(.type-brand).world-layout .pn--kinds .kinds { counter-reset: k; margin-top: clamp(16px, 3vh, 30px); }
  html:not(.type-brand).world-layout .pn--kinds .kind { counter-increment: k; grid-template-columns: 2.6em minmax(0, 1fr) auto; padding: clamp(8px, 1.5vh, 14px) 0; align-items: baseline; }
  html:not(.type-brand).world-layout .pn--kinds .kind::before { content: counter(k, decimal-leading-zero); grid-row: 1 / span 2; align-self: start; padding-top: .5em; font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; color: var(--on-void-muted); }
  html:not(.type-brand).world-layout .pn--kinds .kind h3 { grid-column: 2; font-family: var(--display); font-weight: 300; font-size: var(--t-item); letter-spacing: -.012em; line-height: 1.15; text-transform: none; font-variation-settings: 'SOFT' 40; }
  html:not(.type-brand).world-layout .pn--kinds .kind__reads { grid-column: 2; margin-top: 3px; }
  html:not(.type-brand).world-layout .pn--kinds .kind__fmt { grid-column: 3; align-self: center; }
  html:not(.type-brand).world-layout .pn--kinds .kind:hover h3 { text-decoration: none; }
  html:not(.type-brand).world-layout .pn--kinds .kind h3 { transition: transform .5s cubic-bezier(.16, .84, .3, 1); }
  html:not(.type-brand).world-layout .pn--kinds .kind:hover h3 { transform: translateX(8px); }
  html:not(.type-brand) .pn--pkall .pkall { margin-top: clamp(16px, 3vh, 30px); max-width: none; }
  html:not(.type-brand) .pn--pkall .pkall li { grid-template-columns: 2.6em minmax(0, 1fr); padding: clamp(9px, 1.6vh, 15px) 0; }
  html:not(.type-brand) .pn--pkall .pkall li > .label { padding-top: .5em; font-size: .64rem; }
  html:not(.type-brand) .pn--pkall .pkall b { font-family: var(--display); font-weight: 300; font-size: var(--t-item); letter-spacing: -.012em; line-height: 1.15; text-transform: none; font-variation-settings: 'SOFT' 40; }
  html:not(.type-brand) .pn--pkall .pkall p { margin-top: 3px; font-size: clamp(.86rem, min(.98vw, 1.75vh), .96rem); }

  /* los seis lugares: una palabra sola, enorme; el portal dice el resto */
  html:not(.type-brand) .pn--spaces .place h2 { font-size: var(--t-h2-xl); line-height: .96; letter-spacing: -.035em; max-width: 9ch; }
  html:not(.type-brand) .pn--spaces .pn__read { margin-top: clamp(18px, 3.4vh, 34px); }

  html:not(.type-brand) .pn--room .path li > .pk__ask { margin-top: clamp(14px, 2.4vh, 22px); }
  /* los seis lugares comparten una misma caja: cada nombre se apoya abajo, pegado a su pie de foto */
  html:not(.type-brand).world-layout .pn--spaces .place { align-self: end; }
  /* la vista de las cinco experiencias: la lista un poco más angosta, para que los haces no le caigan encima */
  html:not(.type-brand).world-layout .pn.pn--kinds:not(.pn--hero):not(.pn--wide):not(.pn--form) { width: min(38vw, 570px); }
  /* contacto: el formulario necesita el alto, el título se queda chico */
  html:not(.type-brand) .pn--form h2 { font-size: clamp(1.45rem, min(2.3vw, 3.9vh), 2.3rem); max-width: none; }
  html:not(.type-brand) .pn--alma .alma__logo img { width: clamp(150px, 13vw, 200px); }
}

@media (max-width: 900px) {
  html:not(.type-brand) .pn h2 { font-size: clamp(1.6rem, 7.6vw, 2.2rem); max-width: 16ch; }
  html:not(.type-brand) .pn--spaces .place h2 { font-size: clamp(2.4rem, 13vw, 3.6rem); line-height: .98; letter-spacing: -.03em; }
  html:not(.type-brand) .pn--form h2, html:not(.type-brand) .pn--cat .line h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  html:not(.type-brand) .pn .lead { font-size: 1rem; }
  html:not(.type-brand) .pn--hero .hero__plain { font-family: var(--display); font-weight: 300; font-size: clamp(1.1rem, 5vw, 1.4rem); line-height: 1.3; letter-spacing: -.01em; color: var(--on-void); font-variation-settings: 'SOFT' 40; }
  /* en teléfono los paneles recortan su contenido (se deslizan por dentro), así que la penumbra no puede ir en el panel:
     se vería su caja. Va una sola, fija, en la mitad de abajo de la pantalla, que es donde vive el texto */
  .world-layout .pn:not(.pn--hero)::before { content: none; }
  .world-layout main::before { content: ''; position: fixed; z-index: 1; left: 0; right: 0; bottom: 0; height: 68vh; pointer-events: none;
    background: linear-gradient(to top, rgba(10, 10, 9, .9) 0, rgba(10, 10, 9, .78) 48%, rgba(10, 10, 9, .4) 76%, rgba(10, 10, 9, 0) 100%); }
  /* las listas, también con el nombre en la serif */
  html:not(.type-brand).world-layout .pn--kinds .kind h3, html:not(.type-brand) .pn--pkall .pkall b { font-family: var(--display); font-weight: 300; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.2; text-transform: none; font-variation-settings: 'SOFT' 40; }
}
/* pantallas de escritorio bajas: las láminas con más ficha aprietan un poco más (pisan los ajustes de más arriba) */
@media (min-width: 901px) and (max-height: 880px) {
  .world-layout .pn--room::before { content: none; }      /* (a este alto el panel de paquetes recorta su contenido) */
  html:not(.type-brand) .pn--still h2, html:not(.type-brand) .pn--room h2 { font-size: clamp(1.6rem, min(2.9vw, 5.4vh), 2.8rem); }
  html:not(.type-brand) .pn--form h2 { font-size: clamp(1.35rem, min(2vw, 3.6vh), 2rem); }
}

/* ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   Las cinco experiencias en aro (2026-12-03)
   - La activa: js/scene.js pone .kinds--live en la lista mientras el aro se ve y .is-on en el renglón encendido. Los
     demás renglones bajan a penumbra. Se atenúa lo de adentro del renglón y no el renglón, que ya tiene su entrada.
   - Bajo la lista, los dos formatos como objetos en 3D hechos con CSS (planos en el espacio, sin imágenes): el visor de
     VR y la sala de proyección 360°. Se mecen despacio. Acromáticos: son chrome de marca. Con ellos a la vista sobra la
     leyenda de arriba (los mismos dos íconos chicos van ahora en el pie de cada objeto).
   ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
html.world-layout .pn--kinds .kinds.kinds--live .kind > *, html.world-layout .pn--kinds .kinds.kinds--live .kind::before { opacity: .36; transition: opacity .7s cubic-bezier(.37, 0, .63, 1), transform .5s cubic-bezier(.16, .84, .3, 1); }
html.world-layout .pn--kinds .kinds.kinds--live .kind.is-on > *, html.world-layout .pn--kinds .kinds.kinds--live .kind.is-on::before { opacity: 1; }
html.world-layout .pn--kinds .kinds.kinds--live .kind { transition: border-color .7s cubic-bezier(.37, 0, .63, 1); }
html.world-layout .pn--kinds .kinds.kinds--live .kind.is-on { border-top-color: rgba(242, 240, 236, .5); }
html:not(.type-brand).world-layout .pn--kinds .kinds.kinds--live .kind.is-on h3 { transform: translateX(8px); }
html.five-pick, html.five-pick body { cursor: pointer; }

.formats { display: none; }
.format { margin: 0; display: grid; justify-items: start; gap: 8px; }
.format .label { color: var(--on-void-body); }
.format .fmt { display: inline-flex; align-items: center; gap: 8px; }
.f3d { width: 124px; height: 78px; perspective: 560px; display: grid; place-items: center; }
.f3d__obj { position: relative; width: 0; height: 0; transform-style: preserve-3d; animation: f3d-sway 11s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.f3d__obj--vr { animation-name: f3d-sway-vr; animation-duration: 9s; animation-delay: -3s; }
.f3d__obj i { position: absolute; display: block; box-sizing: border-box; }
@keyframes f3d-sway { from { transform: rotateX(-24deg) rotateY(-36deg); } to { transform: rotateX(-24deg) rotateY(30deg); } }
@keyframes f3d-sway-vr { from { transform: translateZ(18px) rotateX(-20deg) rotateY(-44deg); } to { transform: translateZ(18px) rotateX(-20deg) rotateY(-8deg); } }
/* la sala: piso con retícula y tres muros que reciben la proyección (más claros hacia abajo); el círculo es quien está adentro */
.rm { border: 1px solid rgba(242, 240, 236, .55); }
.rm--floor { width: 96px; height: 96px; left: -48px; top: -48px; transform: translateY(24px) rotateX(90deg);
  background: repeating-linear-gradient(0deg, rgba(242, 240, 236, .16) 0 1px, transparent 1px 16px), repeating-linear-gradient(90deg, rgba(242, 240, 236, .16) 0 1px, transparent 1px 16px); }
.rm--floor b { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid rgba(242, 240, 236, .9); border-radius: 50%; }
.rm--back, .rm--left, .rm--right { width: 96px; height: 48px; left: -48px; top: -24px; background: linear-gradient(to top, rgba(242, 240, 236, .2), rgba(242, 240, 236, .03)); }
.rm--back { transform: translateZ(-48px); }
.rm--left { transform: translateX(-48px) rotateY(90deg); }
.rm--right { transform: translateX(48px) rotateY(90deg); }
/* el visor: una caja clara con su vidrio oscuro al frente, y la cinta que da la vuelta a la cabeza por detrás */
.hs--front, .hs--back { width: 76px; height: 40px; left: -38px; top: -20px; border-radius: 9px; }
.hs--front { transform: translateZ(14px); background: #f2f0ec; }
.hs--front b { position: absolute; left: 9px; right: 9px; top: 10px; bottom: 10px; border-radius: 10px; background: #0a0a09; box-shadow: inset 0 0 0 1px rgba(242, 240, 236, .25); }
.hs--back { transform: translateZ(-14px); background: #8e8d88; }
.hs--top, .hs--bottom { width: 64px; height: 28px; left: -32px; top: -14px; }
.hs--top { transform: translateY(-20px) rotateX(90deg); background: #d3d1cc; }
.hs--bottom { transform: translateY(20px) rotateX(90deg); background: #77756f; }
.hs--side { width: 28px; height: 28px; left: -14px; top: -14px; background: #a9a7a1; }
.hs--l { transform: translateX(-38px) rotateY(90deg); }
.hs--r { transform: translateX(38px) rotateY(90deg); }
.hs--band { height: 9px; top: -4.5px; border: 1px solid rgba(242, 240, 236, .75); background: rgba(242, 240, 236, .16); }
.hs--bl, .hs--br { width: 46px; left: -23px; }
.hs--bl { transform: translateX(-38px) translateZ(-37px) rotateY(90deg); }
.hs--br { transform: translateX(38px) translateZ(-37px) rotateY(90deg); }
.hs--bb { width: 76px; left: -38px; transform: translateZ(-60px); border-radius: 0 0 6px 6px; }
@media (prefers-reduced-motion: reduce) { .f3d__obj { animation: none; transform: rotateX(-24deg) rotateY(-26deg); } .f3d__obj--vr { transform: translateZ(18px) rotateX(-20deg) rotateY(-30deg); } }
/* los dos objetos van aparte de la lista, con su título ("Available formats"). Para darles aire, los textos de esta
   lámina van un punto más chicos que en las demás */
.formats__row { display: flex; gap: clamp(26px, 3.4vw, 52px); }
.formats__title { color: var(--on-void-muted); margin: 0 0 clamp(8px, 1.6vh, 16px); }
@media (min-width: 901px) {
  .world-layout .pn--kinds .formats { display: block; margin-top: clamp(22px, 4.6vh, 52px); }
  .world-layout .pn--kinds .kinds__legend { display: none; }
  html:not(.type-brand).world-layout .pn--kinds h2 { font-size: calc(var(--t-h2-s) * .84); }
  html:not(.type-brand).world-layout .pn--kinds .kinds__head .lead { font-size: calc(var(--t-lead) * .9); margin-top: 10px; }
  html:not(.type-brand).world-layout .pn--kinds .kinds { margin-top: clamp(12px, 2.2vh, 24px); }
  html:not(.type-brand).world-layout .pn--kinds .kinds .kind { padding: clamp(6px, 1.15vh, 11px) 0; }
  html:not(.type-brand).world-layout .pn--kinds .kinds .kind h3 { font-size: calc(var(--t-item) * .86); }
}
/* pantallas bajas (portátiles): los objetos un poco más chicos */
@media (min-width: 901px) and (max-height: 800px) {
  .f3d { height: 62px; transform: scale(.84); transform-origin: left center; }
}
@media (min-width: 901px) and (max-height: 640px) { .world-layout .pn--kinds .formats { display: none; } .world-layout .pn--kinds .kinds__legend { display: block; } }

/* ══ La entrada, el nombre a la derecha (2026-12-03, Vicente, con una referencia): la abertura arriba a la izquierda
   (js/hero.js, COVER_LOOK) y el haz cruza hacia el nombre. El bloque va a la derecha y abajo, alineado a la izquierda
   como en la referencia; "Enter" queda abajo a la izquierda. En teléfono sigue como estaba ═══════════════════════ */
@media (min-width: 901px) {
  .world-layout .pn--hero .hero__txt { left: auto; right: var(--px); top: auto; bottom: clamp(96px, 19vh, 210px); transform: none; width: min(620px, 44vw); }
  .world-layout .pn--hero .hero__title { --aw: min(660px, 48vw); }
  .world-layout .pn--hero .h1--name { font-size: clamp(2.5rem, 5.6vw, 5.2rem); }      /* zemdaris.html: con el nombre a la derecha, más chico para que no toque el borde */
  html:not(.type-brand).world-layout .pn--hero .hero__by { color: var(--on-void) !important; }      /* blanco, como en la referencia: sobre la luz del piso el gris se perdía */
}

/* ══ Láminas 2 y 3: un círculo y dos ventanas rectangulares (2026-12-03, Vicente). Las tres son cavidades del muro del
   cuarto, con su foto detrás (js/hero.js, 'trio'): con el mundo 3D, de .shots sólo se ven las etiquetas, que js/scene.js
   pone bajo cada abertura (--m1x … --m3y). Sin el mundo 3D, las fotos en fila ═══════════════════════════════════ */
.what__shots { display: none; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; object-fit: cover; }
.shot--ring img { aspect-ratio: 1; border-radius: 50%; object-position: 50% 62%; }
.shot--rect img { aspect-ratio: 4 / 3; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }      /* (sin el mundo 3D, también con forma de piedra) */
.shot img[data-focus] { object-position: 18% 50%; }
.shot figcaption { margin-top: 12px; color: var(--on-void) !important; }
.world-layout .shots { position: absolute; inset: -50vh -100vw; pointer-events: none; }
.world-layout .shot { position: absolute; }
.world-layout .shot img { display: none; }
.world-layout .shot figcaption { margin: 0; white-space: nowrap; }
.world-layout .shot--1 { left: var(--m1x, -999px); top: calc(var(--m1y, 0px) + 14px); transform: translateX(-50%); }
.world-layout .shot--2 { left: var(--m2x, -999px); top: calc(var(--m2y, 0px) + 14px); transform: translateX(-50%); }
.world-layout .shot--ring { left: var(--m3x, -999px); top: calc(var(--m3y, 0px) + 14px); transform: translateX(-50%); }
.world-layout .pn.is-in .shot figcaption { animation: rv-in 1.1s cubic-bezier(.16, .84, .3, 1) both; animation-delay: .3s; }
@media (min-width: 901px) {
  html:not(.type-brand).world-layout .pn.pn--for:not(.pn--hero):not(.pn--wide):not(.pn--form),
  html:not(.type-brand).world-layout .pn.pn--what:not(.pn--hero):not(.pn--wide):not(.pn--form) { width: min(34vw, 520px); }
}
html:not(.world-layout) .pn--what .what__img { display: none; }
html:not(.world-layout) .shots { display: flex; gap: 22px; margin-top: 28px; }
html:not(.world-layout) .shot { flex: 1; }
@media (max-width: 900px) {
  /* en teléfono el panel tiene scroll propio y recortaría las etiquetas: la capa va fija a la pantalla (aquí el panel no
     lleva transform) */
  .world-layout .shots { position: fixed; inset: 0; }
  .shot figcaption { font-size: .52rem; }
  .world-layout .shot--1, .world-layout .shot--2 { top: calc(var(--m1y, 0px) + 8px); }
  .world-layout .shot--2 { top: calc(var(--m2y, 0px) + 8px); }
  .world-layout .shot--ring { top: calc(var(--m3y, 0px) + 8px); }
}

/* ══ Lámina 2, para quién (2026-12-03, Vicente): los lugares, los formatos y, al final, lo que lo distingue ═════════ */
.world-layout .pn--for .what__img { display: none; }
.for__claim { margin-top: clamp(22px, 3.6vh, 40px); padding-top: clamp(18px, 2.8vh, 28px); border-top: 1px solid var(--edge); font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, min(2vw, 3.6vh), 2rem); line-height: 1.15; letter-spacing: -.012em; color: var(--on-void); }
html.type-brand .for__claim { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; }
@media (max-width: 900px) { .world-layout .pn--for { width: auto; } .for__claim { font-size: 1.2rem; } }

/* ══ La bajada de la portada, en una línea bajo el nombre (2026-12-03, Vicente, con su referencia): en la serif de
   siempre, del ancho de la palabra "Digital Sanctuaries" del logo animado, y el bloque un poco más grande para que se
   lea bien. La palabra ocupa del 34,5 % al 88,6 % del cuadro del video (medido sobre sus píxeles), y el cuadro arranca
   11 % antes del bloque. En Libre Franklin 300 (desde el 2026-12-05; antes Fraunces, 18,9) la frase mide 19,57 veces su cuerpo: de ahí el
   tamaño (.5415 / 19,57). Medido en Chrome; con otra tipografía de respaldo puede salir algo más ancha o más angosta ═══════ */
@media (min-width: 901px) {
  .world-layout .pn--hero .hero__txt { --aw: min(820px, 57vw); width: min(680px, 47vw); }
  .world-layout .pn--hero .hero__txt--zm { width: min(600px, 42vw); }
  .world-layout .pn--hero .hero__title { --aw: min(820px, 57vw); }
}
/* --wx, --ww: dónde empieza la palabra y cuánto mide, en fracciones del cuadro del video (menos lo que el cuadro se sale) */
.pn--hero .hero__txt { --wx: .2345; --ww: .5415; }
.pn--hero .hero__txt--zm { --wx: .2019; --ww: .4578; }      /* zemdaris: el nombre va del 37,2 % al 83 % del cuadro, en una línea */
@media (min-width: 901px) { .world-layout .pn--hero .hero__txt--zm .hero__anim { margin-left: calc(var(--aw) * -.17); margin-bottom: calc(var(--aw) * -.22); } }
@media (max-width: 900px) { .world-layout .pn--hero .hero__txt--zm .hero__anim { margin-bottom: calc(var(--aw) * -.22); } }      /* su logo arranca más adentro del cuadro: así queda alineado con el bloque */
html:not(.type-brand).world-layout .pn--hero .hero__title + .hero__src + .hero__plain { margin: 2px 0 0 calc(var(--aw) * var(--wx)); max-width: none;
  font-size: calc(var(--aw) * var(--ww) / var(--pk, 19.57));      /* --pk: cuántas veces su cuerpo mide la frase (cambia con el idioma) */ line-height: 1.3; white-space: nowrap; color: rgba(242, 240, 236, .86); }
.world-layout .pn--hero .hero__title + .hero__src + .hero__plain + .hero__by { margin-left: calc(var(--aw) * var(--wx)); margin-top: clamp(22px, 4.5vh, 44px); }
/* zemdaris.html (sin logo animado): la misma línea, debajo del nombre */
html:not(.type-brand).world-layout .pn--hero .h1--name + .hero__plain { margin-top: 18px; max-width: none; white-space: nowrap; color: rgba(242, 240, 236, .86); }
@media (max-width: 900px) {
  .world-layout .pn--hero .hero__title + .hero__src + .hero__plain + .hero__by { margin-left: 0; }
  html:not(.type-brand).world-layout .pn--hero .hero__title + .hero__src + .hero__plain,
  html:not(.type-brand).world-layout .pn--hero .h1--name + .hero__plain { margin: 8px auto 0; font-size: min(calc((100vw - 2 * var(--px)) / 19.4), 1.3rem); }
}

/* ══ In real life en una sola lámina (2026-12-03, Vicente): seis círculos del muro (js/hero.js, 'six'), cada uno con su
   foto, y el nombre debajo (js/scene.js pone --s1x … --s6y). Sin el mundo 3D, las fotos redondas en grilla ═══════ */
.six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; margin-top: 32px; }
.six__c { margin: 0; text-align: center; }
.six__c img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%; }
.six__c figcaption { margin-top: 12px; color: var(--on-void) !important; }
.uses__note { margin-top: 22px; color: var(--on-void-muted) !important; max-width: 46ch; line-height: 1.7; }
.world-layout .six { display: block; position: absolute; inset: -50vh -100vw; margin: 0; pointer-events: none; }
.world-layout .six__c { position: absolute; transform: translateX(-50%); }
.world-layout .six__c img { display: none; }
.world-layout .six__c figcaption { margin: 0; white-space: nowrap; }
.world-layout .six__c:nth-child(1) { left: var(--s1x, -999px); top: calc(var(--s1y, 0px) + 12px); }
.world-layout .six__c:nth-child(2) { left: var(--s2x, -999px); top: calc(var(--s2y, 0px) + 12px); }
.world-layout .six__c:nth-child(3) { left: var(--s3x, -999px); top: calc(var(--s3y, 0px) + 12px); }
.world-layout .six__c:nth-child(4) { left: var(--s4x, -999px); top: calc(var(--s4y, 0px) + 12px); }
.world-layout .six__c:nth-child(5) { left: var(--s5x, -999px); top: calc(var(--s5y, 0px) + 12px); }
.world-layout .six__c:nth-child(6) { left: var(--s6x, -999px); top: calc(var(--s6y, 0px) + 12px); }
.world-layout .pn.is-in .six__c figcaption { animation: rv-in 1.1s cubic-bezier(.16, .84, .3, 1) both; animation-delay: .3s; }
@media (min-width: 901px) {
  html:not(.type-brand).world-layout .pn.pn--uses:not(.pn--hero):not(.pn--wide):not(.pn--form) { width: min(30vw, 460px); }
  .world-layout .pn--uses::before { inset: -24% -6% -24% -70% !important; }      /* la penumbra del texto no llega a las piedras */
}
@media (max-width: 900px) {
  .world-layout .six { position: fixed; inset: 0; }
  .world-layout .six__c { width: 27vw; text-align: center; }
  .world-layout .six__c figcaption { font-size: .5rem; white-space: normal; line-height: 1.5; }      /* los nombres largos, en dos líneas */
  .world-layout .six__c { margin-top: -4px; }
  .world-layout .uses__note { display: none; }
}

/* ══ Versión en español (2026-12-04, es.html, la genera tools/make_es.py): el cambio de idioma en la cabecera, que se ve
   también en teléfono ══════════════════════════════════════ */
.hdr__nav a.hdr__lang { font-size: .62rem; letter-spacing: .2em; padding: 4px 0; border-bottom: 1px solid rgba(242, 240, 236, .35); }
@media (max-width: 900px) { .hdr__nav a.hdr__lang { display: inline; } .hdr__nav { gap: 18px; } }
/* (en español la bajada mide lo mismo que en inglés, 18,9 veces su cuerpo: no hace falta otra --pk) */

/* (2026-12-05, Vicente) sin etiquetas bajo las fotos de las láminas 2 y 3: sólo "In real life" lleva los nombres */
.world-layout .shots { display: none; }

/* (2026-12-05, Vicente: "utilicemos Libre Franklin Light para todos los textos, excepto para el título") una sola
   tipografía: los títulos de las láminas (antes Fraunces) y las etiquetas, botones y menú (antes IBM Plex Mono) pasan a
   Libre Franklin 300. Quedan en 400 sólo el título de la portada (el logotipo animado y su texto) y el nombre del menú
   y del pie, que es el logotipo */
:root, html.type-sans { --display: var(--sans); --mono: var(--sans); }
body :where(*):not(.hero__word):not(.hdr__word):not(.ftr__brand *) { font-weight: 300; font-variation-settings: normal; }
.pn h2, .for__claim, .pn--hero .hero__plain, .kind h3, .pkall b { letter-spacing: -.01em; }

/* (2026-12-05) la lámina 02 tiene un título largo ("Digital sanctuaries built in Virtual Reality and interactive
   projections."): en el tamaño menor de título, para que no llegue a las piedras */
@media (min-width: 901px) { html:not(.type-brand) .world-layout .pn--what h2, html:not(.type-brand).world-layout .pn--what h2 { font-size: var(--t-h2-s); max-width: 12.5ch; } }
