/* ==========================================================================
   Culture Videolab — estilos compartidos
   Dirección visual "Apertura" (centralize): perla + negro, acento naranja,
   cortes a 60°, placas con texto que rueda, grano de película.
   ========================================================================== */

:root {
  /* paleta original de Culture */
  --bg: #1a2f1a;          /* forest */
  --bg-center: #2d4a2d;   /* forest-light */
  --bg-raise: #223a22;
  --pearl: #f5f1e8;       /* cream: texto claro */
  --sand: #e8dcc4;        /* superficies claras */
  --earth: #8b7355;

  --steel: #9caf88;       /* sage */
  --soft: #d4c4a8;        /* beige */
  --line: rgb(232 220 196 / 0.12);
  --line-pearl: rgb(232 220 196 / 0.18);

  --ink: #1a2f1a;
  --ink-soft: #2d4a2d;
  --ink-mute: #6a5a42;
  --line-ink: rgb(26 47 26 / 0.16);

  --accent: #c17a5c;      /* terracotta */
  --ok: #4f7d3f;
  --bad: #a8443a;

  --font-display: 'Syne', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --fs-mono-xs: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem);
  --fs-mono: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 3rem);

  --gutter: clamp(1rem, 0.6rem + 1.9vw, 2.5rem);
  --maxw: 1360px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 68px;

  /* cortes a 60° → desplazamiento = alto × tan(30°) */
  --slant: 0.577;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* palabra destacada en terracota */
.hl { color: var(--accent); }
p { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
}
.mono-xs {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* hexágono chico, bullet de marca */
.hx {
  display: inline-block;
  flex: none;
  width: 0.72em;
  height: 0.8em;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- fondo + grano ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 65% at 50% 35%, #24402a 0%, var(--bg) 55%, #122212 100%);
}
.grain {
  position: fixed;
  inset: -64px;
  z-index: 990;
  pointer-events: none;
  background: url('grain-fine-512-a.png') 0 0 / 256px 256px;
  opacity: 0.42;
  will-change: transform;
  contain: strict;
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain-shift 1s steps(1, end) infinite; }
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  11% { transform: translate(-43px, 23px); }
  22% { transform: translate(31px, -53px); }
  33% { transform: translate(-17px, -37px); }
  44% { transform: translate(51px, 39px); }
  55% { transform: translate(-57px, -9px); }
  66% { transform: translate(21px, 59px); }
  77% { transform: translate(-33px, 47px); }
  88% { transform: translate(41px, -25px); }
  100% { transform: translate(0, 0); }
}

/* ---------- foto de fondo del evento (la del sitio original), con velo verde y zoom lento ---------- */
.photo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920&q=80') center / cover;
  filter: saturate(1.25) brightness(0.72);
}
@media (prefers-reduced-motion: no-preference) {
  .photo-bg::before { animation: slow-zoom 25s ease-in-out infinite alternate; }
}
@keyframes slow-zoom { to { transform: scale(1.08); } }
.photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(26 47 26 / 0.35) 0%, rgb(26 47 26 / 0.72) 45%, rgb(26 47 26 / 0.97) 100%),
    linear-gradient(90deg, rgb(26 47 26 / 0.85) 0%, rgb(26 47 26 / 0.25) 100%);
}

/* ---------- temas de sección ---------- */
.theme-dark {
  --fg: var(--pearl);
  --muted: var(--steel);
  --body: var(--soft);
  --rule: var(--line-pearl);
  color: var(--pearl);
}
.theme-light {
  --fg: var(--ink);
  --muted: var(--ink-mute);
  --body: var(--ink-soft);
  --rule: var(--line-ink);
  color: var(--ink);
  background: var(--sand);
  position: relative;
  isolation: isolate;
}
.theme-light::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('grain-strong-512.png') 0 0 / 256px;
  opacity: 0.4;
}

/* ---------- logo (el PNG original, usado como máscara para poder teñirlo) ---------- */
.logo {
  display: block;
  aspect-ratio: 1373 / 722;
  background: currentColor;
  -webkit-mask: url('culture-logo.png') center / contain no-repeat;
  mask: url('culture-logo.png') center / contain no-repeat;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(26 47 26 / 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--pearl);
}
.brand .logo {
  width: 74px;
  transition: opacity 0.45s var(--ease-expo), transform 0.45s var(--ease-expo);
}
/* en la portada, el logo del header espera a que el logo grande salga de pantalla */
@media (max-width: 1023px) {
  .hero-logo-on .brand .logo { opacity: 0; transform: translateY(-6px); }
}
@media (max-width: 479px) {
  .brand .logo { width: 64px; }
}
.brand-tag {
  display: none;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--steel);
}
@media (min-width: 768px) {
  .brand-tag { display: inline; }
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pearl);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-link .hx { font-size: 11px; }

/* ---------- texto que rueda ---------- */
.roll {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.25;
  height: 1.25em;
}
.roll > span {
  display: block;
  text-shadow: 0 1.25em currentColor;
  transition: transform 0.55s var(--ease-expo);
}
a:hover .roll > span,
button:not(:disabled):hover .roll > span,
a:focus-visible .roll > span,
button:focus-visible .roll > span {
  transform: translateY(-1.25em);
}

/* ---------- botones ---------- */
.btn-plate {
  --h: 58px;
  --cut: calc(var(--h) * var(--slant));
  --plate: var(--ink);
  --plate-ink: var(--pearl);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  height: var(--h);
  padding: 0 calc(var(--cut) + 18px) 0 24px;
  background: var(--plate);
  color: var(--plate-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: padding 0.55s var(--ease-expo), background-color 0.3s, color 0.3s, opacity 0.3s;
}
.btn-plate .hx {
  font-size: 15px;
  transition: transform 0.55s var(--ease-expo);
}
.btn-plate:not(:disabled):hover { padding-right: calc(var(--cut) + 34px); }
.btn-plate:not(:disabled):hover .hx { transform: scale(1.3); }
.btn-plate:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.btn-plate.is-light { --plate: var(--pearl); --plate-ink: var(--ink); }
.btn-plate.is-accent { --plate: var(--accent); --plate-ink: var(--ink); }
.btn-plate.is-accent .hx { background: var(--ink); }
.btn-plate:disabled { cursor: not-allowed; opacity: 0.38; }
.btn-plate.is-block {
  width: 100%;
  justify-content: space-between;
}
.btn-plate .ico { width: 20px; height: 20px; flex: none; }
.btn-plate.is-block .roll { min-width: 0; }
@media (max-width: 479px) {
  .btn-plate.is-block {
    height: auto;
    min-height: var(--h);
    padding-block: 12px;
    padding-left: 20px;
    white-space: normal;
    line-height: 1.25;
  }
  .btn-plate.is-block .roll { height: auto; overflow: visible; }
  .btn-plate.is-block .roll > span { text-shadow: none; transform: none !important; }
}
.input { background-clip: padding-box; }
.theme-light .input { background-color: rgb(245 241 232 / 0.6); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 3px;
}
.btn-line:hover,
.btn-line:focus-visible { animation: bar-sweep 0.7s var(--ease-expo); }
@keyframes bar-sweep {
  0% { background-position: 100% 100%; background-size: 100% 3px; }
  45% { background-position: 100% 100%; background-size: 0% 3px; }
  46% { background-position: 0 100%; background-size: 0% 3px; }
  100% { background-position: 0 100%; background-size: 100% 3px; }
}

/* ---------- etiquetas de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted, var(--steel));
}
.eyebrow .hx { font-size: 10px; }
.eyebrow b { color: var(--fg, var(--pearl)); font-weight: 500; }

/* ---------- formularios ---------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 22px; }
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.field-label .req { color: var(--accent); }
.input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgb(5 5 7 / 0.035);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.35s var(--ease-expo);
}
.theme-dark .input { background: rgb(245 241 232 / 0.05); }
.input::placeholder { color: var(--muted); opacity: 0.6; }
.input:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.input:focus {
  border-color: var(--fg);
  box-shadow: inset 4px 0 0 var(--accent);
}

/* ---------- revelado ---------- */
.rv-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.rv-words .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .rv-words .w > span {
    animation: word-in 1.1s var(--ease-expo) both;
    animation-delay: calc(var(--d, 0ms) + var(--i, 0) * 60ms);
  }
  .rv {
    animation: fade-up 1s var(--ease-expo) both;
    animation-delay: var(--d, 0ms);
  }
}
@keyframes word-in { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

html.js [data-sr]:not(.in) { opacity: 0; transform: translateY(26px); }
html.js [data-sr] {
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-expo);
  transition-delay: var(--d, 0ms);
}

/* ---------- páginas del flujo (registro / pago / verificar) ---------- */
.flow {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
.flow-aside {
  position: relative;
  isolation: isolate;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) var(--gutter) clamp(2rem, 1.5rem + 2vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  container-type: inline-size;
}
.flow-aside .logo-bg {
  position: absolute;
  right: -8%;
  bottom: -14%;
  width: min(78%, 560px);
  color: var(--sand);
  opacity: 0.08;
  pointer-events: none;
}
.flow-title {
  /* se ajusta al ancho de la columna: CONFIRMAR / INVITACIÓN nunca se cortan */
  font-size: min(clamp(2rem, 1.2rem + 3.2vw, 3.9rem), 8.4cqi);
  max-width: 12ch;
}
.flow-lead {
  color: var(--soft);
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 32ch;
}
.steps {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.steps li {
  --h: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--h);
  padding: 0 calc(var(--h) * var(--slant) + 10px) 0 12px;
  background: rgb(245 241 232 / 0.07);
  color: var(--steel);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--h) * var(--slant)) 100%, 0 100%);
}
.steps li.is-done { color: var(--pearl); }
.steps li.is-now { background: var(--accent); color: var(--ink); }
.steps li .n { opacity: 0.55; }

.flow-main {
  padding: clamp(2rem, 1.5rem + 3vw, 4.5rem) var(--gutter) clamp(3rem, 2rem + 4vw, 5rem);
}
.flow-main-inner { width: 100%; max-width: 520px; margin-inline: auto; }
.flow-foot {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 6px;
  justify-items: start;
  color: var(--muted);
}
.flow-foot a { color: var(--fg); }

.host-chip {
  --h: 40px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  padding: 0 calc(var(--h) * var(--slant) + 16px) 0 16px;
  background: var(--accent);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--h) * var(--slant)) 100%, 0 100%);
  max-width: 100%;
}
.host-chip .mono-xs { opacity: 0.7; }
.host-chip strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.host-chip strong:empty::before { content: '—'; }

.form-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .flow { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr; }
  .flow-aside {
    position: sticky;
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    justify-content: center;
    padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    border-right: 1px solid var(--line);
  }
  .flow-main {
    display: flex;
    align-items: center;
    padding-block: clamp(1.75rem, 5svh, 5rem);
  }
}

/* ---------- pie ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  color: var(--steel);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.site-footer .logo { width: 84px; color: var(--pearl); }
/* el crédito queda aparte, separado por una línea */
.site-footer .credit {
  align-self: stretch;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .site-footer { padding: 40px 0; }
  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
  }
  .site-footer .logo { width: 72px; }
  .site-footer .credit {
    align-self: auto;
    justify-content: flex-start;
    margin-top: 0;
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  /* la frase del medio se centra entre logo y crédito */
  .site-footer .container > .mono-xs { margin-inline: auto; }
}

/* crédito del estudio */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
}
.credit .mono-xs { opacity: 0.85; }
.credit .wordmark {
  font-family: 'Unbounded', var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--pearl);
  text-transform: none;
}
.wm-i { position: relative; display: inline-block; }
.wm-dot {
  position: absolute;
  width: 0.17em;
  height: 0.17em;
  left: 47%;
  top: 0.12em;
  margin-left: -0.085em;
  background: #cf6a33; /* naranja de centralize */
}
.credit:hover .wordmark { color: var(--accent); }
.credit .wordmark { transition: color 0.3s; }
.site-footer .footer-meta { display: inline-flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   MOVIMIENTO — misma lógica que centralize (expo, placas a 60°, grano),
   con la historia de Culture: el sol sale sobre el horizonte y se abre.
   ===================================================================== */

/* ---------- intro (solo portada, una vez por sesión) ---------- */
.intro-layer {
  position: fixed;
  inset: 0;
  z-index: 990;
  pointer-events: auto;
  cursor: pointer;
}
.intro-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--bg);
  overflow: hidden;
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1);
}
.intro-half::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('grain-strong-512.png') 0 0 / 256px;
  opacity: 0.35;
}
.intro-half.top { top: 0; }
.intro-half.bot { bottom: 0; }
/* cada mitad lleva su parte de la escena: al abrirse, el sol se parte en el horizonte */
.intro-stage {
  position: absolute;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
}
.intro-half.top .intro-stage { top: 0; }
.intro-half.bot .intro-stage { bottom: 0; }
.intro-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(118vw, 900px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(193 122 92 / 0.85) 0%, rgb(193 122 92 / 0.32) 26%, rgb(193 122 92 / 0.08) 48%, transparent 66%);
  transform: scale(0);
  animation: intro-sun 1.5s var(--ease-expo) 0.15s forwards;
}
.intro-logo-wrap {
  position: relative;
  width: min(62vw, 360px);
  clip-path: inset(100% -20% -20% -20%);
  animation: intro-rise 1.15s var(--ease-expo) 0.35s forwards;
}
.intro-logo {
  width: 100%;
  color: var(--pearl);
  transform: translateY(42%);
  animation: intro-logo 1.15s var(--ease-expo) 0.35s forwards, intro-punch 0.5s var(--ease-out) 1.45s;
}
.intro-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--accent);
  transform: scaleX(0);
  animation: intro-line 0.9s var(--ease-expo) 0.1s forwards;
}
.intro-tag {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + min(18vw, 110px));
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0;
  animation: intro-tag 0.9s var(--ease-expo) 1.25s forwards;
}
.intro-tag b { color: var(--accent); font-weight: 500; }
.intro-skip {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0;
  animation: intro-tag 0.6s ease 0.6s forwards;
}
/* apertura */
.intro-layer.is-open { pointer-events: none; }
.intro-layer.is-open .intro-half.top { transform: translateY(-101%); }
.intro-layer.is-open .intro-half.bot { transform: translateY(101%); }
.intro-layer.is-open .intro-skip { opacity: 0 !important; transition: opacity 0.2s; }

@keyframes intro-sun { to { transform: scale(1); } }
@keyframes intro-rise { to { clip-path: inset(-20% -20% -20% -20%); } }
@keyframes intro-logo { to { transform: translateY(0); } }
@keyframes intro-punch { 40% { transform: scale(1.07); } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-tag { to { opacity: 1; } }

/* mientras corre la intro, la portada espera para animarse al abrirse */
html.intro .hero .rv,
html.intro .hero .rv-words .w > span { animation-play-state: paused; }
html.intro { overflow: hidden; }

/* ---------- portada viva ---------- */
.hero { --mx: 0; --my: 0; }
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .hero::before {
    translate: calc(var(--mx) * -40px) calc(var(--my) * -30px);
  }
  .hero .flyer-frame {
    transform: perspective(1200px) rotateY(calc(var(--mx) * 5deg)) rotateX(calc(var(--my) * -4deg)) translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0);
    transition: transform 0.9s var(--ease-out);
  }
}

/* ---------- títulos de sección: suben desde una línea ---------- */
/* (sin clip-path en el propio título: el navegador no detecta que entra en pantalla) */
html.js .section-title[data-sr] { transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-expo), letter-spacing 1.4s var(--ease-expo); transition-delay: var(--d, 0ms); }
html.js .section-title[data-sr]:not(.in) { opacity: 0; transform: translateY(0.6em); letter-spacing: 0.02em; }

/* ---------- pasos del ingreso: la placa entra con corte y después el texto ---------- */
html.js .step[data-sr] .step-n { transition: clip-path 0.8s var(--ease-expo) calc(var(--d, 0ms) + 120ms); }
html.js .step[data-sr]:not(.in) .step-n { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
html.js .step[data-sr]:not(.in) { transform: translateX(-22px); }
.step::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-expo);
}
@media (hover: hover) {
  .step:hover::after { transform: scaleX(1); }
}

/* ---------- line-up: la franja naranja barre el bloque principal ---------- */
.slot.is-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
}
html.js .slot.is-main.in::before { animation: slot-sweep 1.1s var(--ease-expo) 0.25s; }
@keyframes slot-sweep {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- transición entre páginas: dos placas a 60° barren la pantalla ---------- */
html::before,
html::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: -40vh;
  width: calc(100vw + 80vh);
  z-index: 980;
  pointer-events: none;
  clip-path: polygon(40vh 0, 100% 0, calc(100% - 40vh) 100%, 0 100%);
  transform: translateX(-101%);
  visibility: hidden;
}
html::before { background: var(--accent); }
html::after { background: var(--bg) url('grain-strong-512.png') 0 0 / 256px; }
html.pt-out::before,
html.pt-out::after { visibility: visible; transform: translateX(0); transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1); }
html.pt-out::after { transition-delay: 0.08s; }
html.pt-in::before,
html.pt-in::after { visibility: visible; transform: translateX(0); }
html.pt-in.pt-go::before,
html.pt-in.pt-go::after { transform: translateX(101%); transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1); }
html.pt-in.pt-go::before { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  .intro-layer { display: none; }
  html::before, html::after { display: none; }
  html.js .section-title[data-sr]:not(.in) { transform: none; letter-spacing: normal; }
  html.js .step[data-sr]:not(.in) .step-n { clip-path: none; }
}
html.js .step[data-sr] {
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-expo), padding 0.55s var(--ease-expo);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0s;
}

/* hasta que la intro está lista, la portada queda tapada (sin destello al cargar) */
html.intro:not(.intro-ready) body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 989;
  background: var(--bg);
}

/* ---------- intro: la línea del logo (debajo del sol) es la que abre el sitio ---------- */
.intro-stage { --lw: min(62vw, 360px); }
.intro-logo-wrap {
  width: var(--lw);
  /* la línea del logo está al 52,8 % de su alto: se sube para que caiga justo en el corte */
  translate: 0 -5.4%;
}
.intro-horizon { display: none; }
.intro-half.top { height: 50%; }
.intro-half.bot { height: calc(50% + 1px); }
.intro-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--lw) * 0.333);
  height: max(2px, calc(var(--lw) * 0.009));
  translate: calc(-50% - var(--lw) * 0.0075) -50%;
  background: var(--pearl);
  opacity: 0;
  animation: intro-bar 0.6s var(--ease-expo) 1.75s forwards;
}
@keyframes intro-bar {
  0% { opacity: 1; }
  100% { opacity: 1; width: 112vw; }
}
