/* Vitrix: sitio público, versión de escritorio (1280 a 1920).
   Idea: la vitrina de noche. La página es la calle a oscuras; la luz sale
   del negocio (ámbar) y de las pantallas reales del sistema, que son claras. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Chivo Mono";
  src: url("../fonts/ChivoMono-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}

:root {
  --noche: #000000;
  --chapa: #15130f;
  --chapa-2: #201d17;
  --tiza: #f3ede2;
  --tiza-2: rgba(243, 237, 226, 0.64);
  --tiza-3: rgba(243, 237, 226, 0.36);
  --linea: rgba(243, 237, 226, 0.15);
  --ambar: #ffb435;
  --fucsia: #ff5fa2;
  --menta: #57e3a0;
  --lila: #a78bfa;
  --m: clamp(64px, 6vw, 132px);
  --ancho: 1560px;
  --sale: cubic-bezier(0.2, 0.7, 0.1, 1);
  --sube: cubic-bezier(0.66, 0, 0.12, 1);
}

* { box-sizing: border-box; }
/* 16px hasta 1440 de ancho; crece hasta 20px en 1920 */
html { background: var(--noche); scroll-behavior: smooth; font-size: clamp(16px, 1.111vw, 20px); }
body {
  margin: 0;
  min-width: 1280px;
  background: var(--noche);
  color: var(--tiza);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--ambar); color: #000; }

/* ---------- piezas compartidas ---------- */

.titulo {
  font-size: clamp(56px, 4.7vw, 88px);
  line-height: 0.98;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.018em;
  max-width: 15ch;
  text-wrap: balance;
}
.titulo--m { font-size: clamp(38px, 3.1vw, 56px); line-height: 1.02; max-width: 13ch; }
.bajada {
  margin-top: 28px;
  font-size: clamp(20px, 1.5vw, 26px);
  line-height: 1.42;
  color: var(--tiza-2);
  max-width: 34ch;
}
.nota { font-size: 0.9375rem; line-height: 1.4; color: var(--tiza-3); font-stretch: 92%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(52px, 3.7vw, 66px);
  padding: 0 clamp(26px, 1.9vw, 34px);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 650;
  font-stretch: 104%;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s, transform 0.2s var(--sale);
}
.btn:active { transform: scale(0.97); }
.btn--luz { background: var(--ambar); color: #000; box-shadow: 0 0 0 0 rgba(255, 180, 53, 0); }
.btn--luz:hover { box-shadow: 0 0 44px 2px rgba(255, 180, 53, 0.5); }
.btn--tiza { background: var(--tiza); color: #000; }
.btn--tiza:hover { background: #fff; }
.btn--linea { border-color: var(--tiza-3); color: var(--tiza); background: transparent; }
.btn--linea:hover { border-color: var(--tiza); }
.btn--grande { height: 72px; padding: 0 44px; font-size: 1.375rem; }
.acciones { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: clamp(76px, 5.3vw, 96px);
  padding: 0 var(--m);
  display: flex;
  align-items: center;
  gap: 48px;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.nav.es-fondo { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__marca {
  font-size: clamp(27px, 1.9vw, 34px);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav__links { display: flex; gap: 34px; margin-right: auto; }
.nav__links a {
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 500;
  color: var(--tiza-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--tiza); }
.nav__cta { height: clamp(44px, 3.1vw, 54px); padding: 0 clamp(20px, 1.5vw, 28px); font-size: clamp(15px, 1.05vw, 18px); }

/* ---------- 1. la persiana ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  max-height: 1200px;
  overflow: hidden;
  isolation: isolate;
  background: var(--noche);
}
.hero__luz { position: absolute; inset: 0; z-index: -1; opacity: 0; animation: prende 1.6s 1.1s var(--sale) forwards; }
/* la misma luz, otra vez, encima del titular: lo tiñe donde lo cruza */
.hero__luz--sobre { z-index: 2; mix-blend-mode: multiply; pointer-events: none; }
.hero__luz--sobre::after { content: none; }
.hero__luz--sobre .rayo { mix-blend-mode: normal; }
.hero__luz--sobre .rayo--ambar { background: linear-gradient(180deg, #ffb435, rgba(255, 180, 53, 0.75) 78%, rgba(255, 180, 53, 0.35)); }
.hero__luz--sobre .rayo--fucsia { background: linear-gradient(180deg, #ff5fa2, rgba(255, 95, 162, 0.78) 78%, rgba(255, 95, 162, 0.35)); }
.hero__luz--sobre .rayo--menta { background: linear-gradient(180deg, #57e3a0, rgba(87, 227, 160, 0.78) 78%, rgba(87, 227, 160, 0.35)); }
.hero__luz--sobre .rayo--lila { background: linear-gradient(180deg, #a78bfa, rgba(167, 139, 250, 0.8) 78%, rgba(167, 139, 250, 0.35)); }
.hero__luz::after {
  /* la vereda: una línea de luz donde termina la vidriera */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 53, 0.55) 30%, rgba(255, 95, 162, 0.45) 55%, rgba(167, 139, 250, 0.45) 75%, transparent);
}
.rayo {
  position: absolute;
  top: -12%;
  height: 135%;
  transform-origin: top center;
  transform: skewX(-27deg);
  mix-blend-mode: screen;
  filter: blur(1.5px);
  animation: deriva 16s ease-in-out infinite alternate;
}
.rayo--ambar { left: 58%; width: 15%; background: linear-gradient(180deg, rgba(255, 180, 53, 0.62), rgba(255, 180, 53, 0.1) 70%, transparent); }
.rayo--fucsia { left: 74.5%; width: 8%; background: linear-gradient(180deg, rgba(255, 95, 162, 0.55), rgba(255, 95, 162, 0.08) 72%, transparent); animation-delay: -5s; }
.rayo--menta { left: 84%; width: 5%; background: linear-gradient(180deg, rgba(87, 227, 160, 0.5), rgba(87, 227, 160, 0.06) 70%, transparent); animation-delay: -9s; }
.rayo--lila { left: 90.5%; width: 12%; background: linear-gradient(180deg, rgba(167, 139, 250, 0.55), rgba(167, 139, 250, 0.08) 74%, transparent); animation-delay: -2s; }
@keyframes deriva { from { translate: -14px 0; } to { translate: 18px 0; } }
@keyframes prende { to { opacity: 1; } }

.hero__in {
  position: relative;
  height: 100%;
  padding: 0 var(--m) clamp(48px, 7vh, 84px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(28px, 4.5vh, 52px);
}
.hero__pie { position: relative; z-index: 3; }
.hero__t {
  font-size: clamp(126px, 10.4vw, 200px);
  line-height: 0.86;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.028em;
  animation: abre 1.5s 0.45s var(--sube) backwards;
}
.hero__t span { display: block; white-space: nowrap; }
@keyframes abre {
  from { font-stretch: 62%; font-weight: 500; letter-spacing: 0; opacity: 0.25; }
}
.hero__pie {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  animation: asoma 0.9s 1.35s var(--sale) backwards;
}
.hero__que { font-size: clamp(21px, 1.6vw, 28px); line-height: 1.36; max-width: 30ch; color: var(--tiza); }
@keyframes asoma { from { opacity: 0; transform: translateY(14px); } }

.persiana {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  animation: sube 1.55s 0.35s var(--sube) forwards;
  will-change: transform;
}
.persiana__lamas {
  flex: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 4%, transparent 96%, rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(180deg, #2a2620 0 1px, #1b1814 1px 9px, #100e0b 9px 24px, #060505 24px 29px, #1f1c17 29px 30px);
}
.persiana__zocalo {
  height: 46px;
  background: linear-gradient(180deg, #34302a, #1b1915 40%, #0b0a08);
  box-shadow: 0 10px 60px 12px rgba(255, 180, 53, 0.42), 0 1px 0 rgba(255, 200, 110, 0.7);
  display: grid;
  place-items: center;
}
.persiana__zocalo i { width: 92px; height: 8px; border-radius: 4px; background: #060505; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
@keyframes sube {
  0% { transform: translateY(0); }
  9% { transform: translateY(7px); }
  100% { transform: translateY(-104%); }
}

/* ---------- 2. la frase ---------- */

.frase { padding: clamp(160px, 24vh, 260px) var(--m) clamp(150px, 22vh, 240px); }
.frase__t {
  max-width: 23ch;
  font-size: clamp(58px, 5.1vw, 98px);
  line-height: 1.04;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.02em;
}
.frase__t .pal { color: rgba(243, 237, 226, 0.2); transition: color 0.5s ease; }
.frase__t .pal.es-luz { color: var(--tiza); }
.frase__t .pal.es-frente { color: var(--ambar); transition-duration: 0.12s; }

/* ---------- 3. un día de trabajo ---------- */

.dia { position: relative; height: 480vh; }
.dia__fijo {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 700px;
  padding: 96px var(--m) 36px;
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(0, 8.7fr);
  gap: clamp(40px, 4vw, 80px);
  align-items: center;
  max-width: calc(var(--ancho) + 2 * var(--m));
  margin: 0 auto;
}
.dia__texto { position: relative; align-self: center; padding-left: 26px; }
.dia__reloj {
  margin-top: clamp(22px, 3.4vh, 40px);
  font-size: clamp(104px, 8.6vw, 164px);
  line-height: 0.9;
  font-weight: 300;
  font-stretch: 62%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ambar);
}
.dia__momentos { position: relative; margin-top: 18px; height: 10.5rem; }
.momento {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.5s var(--sale);
  pointer-events: none;
}
.momento.es-ahora { opacity: 1; transform: none; pointer-events: auto; }
.momento h3 { font-size: 1.875rem; line-height: 1.1; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; }
.momento p { margin-top: 12px; font-size: 1.125rem; color: var(--tiza-2); max-width: 31ch; }
.dia__marcas { position: absolute; left: 0; top: 6px; bottom: 6px; display: flex; flex-direction: column; gap: 6px; }
.dia__marcas li { flex: 1; width: 3px; border-radius: 2px; background: var(--linea); transition: background-color 0.4s; }
.dia__marcas li.es-hecho { background: var(--ambar); }

.dia__escena { min-width: 0; }
.escena {
  position: relative;
  aspect-ratio: 2880 / 1740;
  max-height: calc(100vh - 200px);
  margin-left: auto;
}
.pant {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noche);
  clip-path: inset(calc(100% + 170px) -150px -170px -150px);
  transition: clip-path 0.75s var(--sube);
}
.pant.es-vista { clip-path: inset(-150px -150px -170px -150px); }
.pant img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  transition: box-shadow 0.8s ease 0.2s;
}
.pant.es-arriba img { box-shadow: 0 0 0 1px rgba(255, 180, 53, 0.4), 0 44px 130px -34px rgba(255, 180, 53, 0.55); }
.dia__escena .nota { margin-top: 16px; text-align: right; }

/* ---------- 4. el asistente ---------- */

.asis {
  padding: clamp(150px, 20vh, 220px) var(--m) clamp(140px, 18vh, 200px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 5vw, 96px);
  max-width: calc(var(--ancho) + 2 * var(--m));
  margin: 0 auto;
  align-items: start;
}
.asis__titulo { position: sticky; top: 130px; z-index: 3; }
.asis__ventanilla { position: relative; padding-bottom: 20px; }
.ventanilla {
  position: relative;
  z-index: 2;
  width: min(100%, 600px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.5), 0 0 90px -10px rgba(167, 139, 250, 0.55);
}
.haz {
  /* la luz de la ventanilla cae sobre la vereda */
  position: absolute;
  z-index: 0;
  left: -150px;
  top: 150px;
  width: min(calc(100% + 150px), 1050px);
  bottom: -40px;
  --a: 172px;
  --b: 728px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.5), rgba(167, 139, 250, 0.13) 50%, transparent 94%);
  clip-path: polygon(var(--a) 0, var(--b) 0, var(--b) 0, var(--a) 0);
  transition: clip-path 1.6s var(--sube);
}
.asis.es-dentro .haz { clip-path: polygon(var(--a) 0, var(--b) 0, 100% 100%, 0 100%); }
.asis__puntos { position: relative; z-index: 1; margin-top: 44px; max-width: 760px; }
.asis__puntos li {
  padding: 20px 0 21px;
  border-top: 1px solid var(--linea);
  font-size: clamp(22px, 1.75vw, 30px);
  line-height: 1.24;
  font-weight: 550;
  font-stretch: 104%;
  letter-spacing: -0.008em;
  color: var(--tiza-3);
  transition: color 0.7s ease;
}
.asis.es-dentro .asis__puntos li { color: var(--tiza); }
.asis.es-dentro .asis__puntos li:nth-child(1) { transition-delay: 0.45s; }
.asis.es-dentro .asis__puntos li:nth-child(2) { transition-delay: 0.7s; }
.asis.es-dentro .asis__puntos li:nth-child(3) { transition-delay: 0.95s; }
.asis.es-dentro .asis__puntos li:nth-child(4) { transition-delay: 1.2s; }
.asis.es-dentro .asis__puntos li:nth-child(5) { transition-delay: 1.45s; }

/* ---------- 5. todo lo que hace: la cuadra ---------- */

.todo {
  --color: var(--ambar);
  position: relative;
  padding: clamp(140px, 18vh, 200px) var(--m) clamp(120px, 16vh, 180px);
  max-width: calc(var(--ancho) + 2 * var(--m));
  margin: 0 auto;
}
.todo__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.todo__cab .bajada { margin: 0 0 8px; max-width: 30ch; }

.fachada {
  margin-top: clamp(56px, 8vh, 88px);
  display: grid;
  grid-template-columns: repeat(19, minmax(0, 1fr));
  gap: clamp(12px, 1.25vw, 22px) clamp(9px, 0.95vw, 17px);
}
.vent {
  --c: var(--ambar);
  position: relative;
  aspect-ratio: 5 / 7;
  padding: 0;
  border: 1px solid rgba(243, 237, 226, 0.13);
  border-radius: 3px 3px 0 0;
  background-color: #0b0a09;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.26));
  cursor: pointer;
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.6s ease, opacity 0.5s ease;
}
.vent::before, .vent::after { content: ""; position: absolute; background: rgba(0, 0, 0, 0.55); pointer-events: none; }
.vent::before { left: 50%; top: 0; bottom: 0; width: 1.5px; translate: -50% 0; }
.vent::after { top: 42%; left: 0; right: 0; height: 1.5px; }
.vent.es-tenue { background-color: rgba(255, 180, 53, 0.22); border-color: rgba(255, 180, 53, 0.28); }
.vent.es-luz {
  background-color: var(--c);
  border-color: var(--c);
  box-shadow: 0 0 22px 0 color-mix(in srgb, var(--c) 55%, transparent), 0 14px 34px -4px color-mix(in srgb, var(--c) 45%, transparent);
}
.vent.es-apagada { opacity: 0.8; }
.vent:hover { border-color: var(--tiza); }
.vent.es-esta { box-shadow: 0 0 0 2px var(--tiza), 0 0 30px 2px color-mix(in srgb, var(--c) 70%, transparent); }
.fachada__vereda { margin-top: clamp(14px, 1.6vw, 24px); height: 1px; background: linear-gradient(90deg, transparent, var(--tiza-3) 12%, var(--tiza-3) 88%, transparent); }

.grupos { margin: 30px -12px 0; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
.grupo {
  --c: var(--ambar);
  position: relative;
  padding: 10px 12px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tiza-2);
  font: inherit;
  font-size: clamp(13.5px, 1.04vw, 17px);
  font-weight: 600;
  font-stretch: 94%;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s;
}
.grupo sup { margin-left: 5px; font-size: 0.75rem; font-weight: 500; color: var(--tiza-3); font-variant-numeric: tabular-nums; }
.grupo:hover { color: var(--tiza); }
.grupo::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--sale);
}
.grupo[aria-selected="true"] { color: var(--tiza); }
.grupo[aria-selected="true"]::after { transform: scaleX(1); }
.grupo[aria-selected="true"] sup { color: var(--c); }

.detalle {
  margin-top: 40px;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(32px, 3.4vw, 64px);
  align-items: start;
}
.detalle__n { font-size: clamp(34px, 2.9vw, 52px); line-height: 1; font-weight: 750; font-stretch: 116%; letter-spacing: -0.02em; color: var(--color); transition: color 0.4s; }
.detalle__c { margin-top: 14px; font-size: 1rem; color: var(--tiza-2); }
.detalle h3 { font-size: 0.875rem; font-weight: 600; font-stretch: 88%; color: var(--tiza-3); letter-spacing: 0.01em; margin-bottom: 14px; }
.areas li { padding: 11px 0 12px; border-top: 1px solid var(--linea); }
.areas b { display: block; font-size: 1.125rem; font-weight: 650; }
.areas span { display: block; margin-top: 2px; font-size: 1rem; line-height: 1.38; color: var(--tiza-2); }
.pantallas { columns: 2; column-gap: 28px; }
.pantallas li { break-inside: avoid; padding: 5px 0; font-size: 1rem; line-height: 1.3; color: var(--tiza); cursor: default; transition: color 0.2s; }
.pantallas li.es-esta { color: var(--color); }
.detalle > * { animation: cambia 0.5s var(--sale) backwards; }
.detalle > *:nth-child(2) { animation-delay: 0.06s; }
.detalle > *:nth-child(3) { animation-delay: 0.12s; }
@keyframes cambia { from { opacity: 0; transform: translateY(8px); } }

.cartel {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  padding: 7px 11px 8px;
  border-radius: 6px;
  background: var(--tiza);
  color: #000;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-4px);
  transition: opacity 0.15s;
}
.cartel.es-visible { opacity: 1; }

/* ---------- 6. el ticket ---------- */

.tique {
  padding: clamp(140px, 18vh, 200px) var(--m) clamp(120px, 14vh, 170px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 5vw, 96px);
  max-width: calc(var(--ancho) + 2 * var(--m));
  margin: 0 auto;
  align-items: start;
  min-height: 118vh;
}
.tique__texto { position: sticky; top: 150px; }
.tique__maquina { position: relative; width: 26.25rem; justify-self: center; }
.tique__boca {
  position: relative;
  z-index: 2;
  height: 26px;
  margin: 0 -22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a362f, #1a1814 55%, #060505);
  box-shadow: inset 0 -6px 0 #000, 0 14px 30px -6px #000;
}
.tique__salida { position: relative; z-index: 1; margin-top: -8px; overflow: hidden; padding-bottom: 14px; }
.papel {
  padding: 34px 28px 30px;
  background: #f6f1e7;
  color: #14120e;
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 0.9062rem;
  line-height: 1.375rem;
  transform: translateY(-100%);
  will-change: transform;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 100% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 100% repeat-x;
}
.papel__marca { text-align: center; font-size: 1.625rem; line-height: 1.875rem; font-weight: 700; letter-spacing: 0.34em; margin-right: -0.34em; }
.papel__sub { text-align: center; margin-top: 4px; }
.papel hr { border: 0; border-top: 1.5px dashed #14120e; margin: 16px 0; }
.papel dl { margin: 0; display: grid; gap: 10px; }
.papel dt { font-weight: 700; }
.papel dd { padding-left: 2ch; color: #4a463d; }
.papel__total { display: flex; justify-content: space-between; font-size: 1.1875rem; font-weight: 700; }
.papel__pie { text-align: center; margin-top: 18px; padding-bottom: 14px; }

/* ---------- 7. todo o nada ---------- */

.entera {
  padding: clamp(140px, 18vh, 200px) var(--m) clamp(120px, 16vh, 180px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 3vw, 56px) clamp(48px, 5vw, 96px);
  max-width: calc(var(--ancho) + 2 * var(--m));
  margin: 0 auto;
  align-items: center;
}
.entera__texto .acciones { margin-top: 38px; }
.entera__estado { margin-top: 20px; min-height: 26px; font-size: 1.0625rem; color: var(--tiza-2); transition: color 0.3s; }
.entera__estado.es-ok { color: var(--menta); }
.entera__estado.es-falla { color: var(--fucsia); }

.libro { --c: var(--menta); display: grid; gap: 0; }
.fila {
  display: grid;
  grid-template-columns: 7.75rem 9.25rem minmax(0, 1fr) 9.25rem;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--linea);
}
.fila:last-child { border-bottom: 1px solid var(--linea); }
.fila__n { font-size: 1.625rem; font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; }
.fila__a, .fila__d { font-size: 1rem; color: var(--tiza-3); transition: color 0.35s; }
.fila__d { text-align: right; }
.fila__via { position: relative; height: 12px; border-radius: 6px; background: rgba(243, 237, 226, 0.08); overflow: hidden; }
.fila__via i {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--c);
  box-shadow: 0 0 22px var(--c);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform var(--t, 0.8s) var(--sube), background-color 0.25s;
}
.libro.es-antes .fila__a { color: var(--tiza); }
.libro.es-despues .fila__d { color: var(--tiza); }
.libro.es-falla { --c: var(--fucsia); }
.libro.es-falla [data-falla] { animation: tiembla 0.42s linear; }
@keyframes tiembla {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.entera__mas {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 6vh, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 72px);
}
.entera__mas li { padding-top: 18px; border-top: 1px solid var(--linea); font-size: 1.1875rem; line-height: 1.38; color: var(--tiza-2); max-width: 30ch; }

/* ---------- 8. cómo empezar ---------- */

.empezar {
  padding: clamp(140px, 18vh, 200px) var(--m) clamp(110px, 14vh, 160px);
  max-width: calc(var(--ancho) + 2 * var(--m));
  margin: 0 auto;
}
.pasos { margin-top: clamp(56px, 8vh, 90px); }
.pasos__linea { position: relative; height: 2px; background: var(--linea); }
.pasos__linea i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ambar), var(--ambar) calc(100% - 90px), #fff);
  box-shadow: 0 0 18px var(--ambar);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.pasos__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); }
.paso { padding-top: 26px; }
.paso__n {
  display: block;
  font-size: clamp(120px, 10vw, 190px);
  line-height: 0.86;
  font-weight: 800;
  font-stretch: 62%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tiza-3);
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease, font-stretch 0.9s var(--sale);
}
.paso.es-hecho .paso__n { color: var(--ambar); -webkit-text-stroke-color: var(--ambar); font-stretch: 112%; }
.paso h3 { margin-top: 22px; font-size: 1.75rem; line-height: 1.12; font-weight: 700; font-stretch: 106%; letter-spacing: -0.01em; max-width: 14ch; }
.paso p { margin-top: 10px; font-size: 1.125rem; color: var(--tiza-2); max-width: 28ch; }
.pasos__despues { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--linea); font-size: 1.125rem; color: var(--tiza-2); max-width: 64ch; }

.cierre {
  margin-top: clamp(120px, 18vh, 200px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
}
.cierre__t {
  font-size: clamp(120px, 9.6vw, 184px);
  line-height: 0.8;
  white-space: nowrap;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.035em;
}
.cierre__lado { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 10px; }
.cierre__lado .nota { max-width: 30ch; color: var(--tiza-2); }

/* ---------- pie ---------- */

.pie {
  margin-top: 40px;
  padding: 44px var(--m) 52px;
  border-top: 1px solid var(--linea);
  display: flex;
  align-items: baseline;
  gap: 48px;
}
.pie__marca { font-size: 1.375rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; text-decoration: none; }
.pie__links { display: flex; gap: 28px; white-space: nowrap; }
.pie__links a { font-size: 0.9375rem; color: var(--tiza-2); text-decoration: none; }
.pie__links a:hover { color: var(--tiza); }
.pie__legal { margin-left: auto; white-space: nowrap; font-size: 0.875rem; color: var(--tiza-3); }

/* ---------- sin movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .persiana { display: none; }
  .hero__luz { opacity: 1; animation: none; }
  .rayo, .hero__t, .hero__pie { animation: none; }
  .pant, .haz, .asis__puntos li, .vent, .fila__via i, .paso__n, .momento, .detalle > * { transition: none; animation: none; }
  .papel { transform: none !important; }
}
