/* =========================================================
   ENIE 2027 — Landing de expectativa
   Colores medidos sobre la web oficial (enie.cl)
   ========================================================= */

:root {
  --yellow: #FFD101;        /* amarillo ENIE (medido) */
  --yellow-soft: #FFE15A;
  --navy: #181473;          /* azul profundo ENIE (medido) */
  --navy-700: #120F5C;
  --navy-900: #0C0A3E;
  --navy-950: #07062A;
  --black: #111111;
  --white: #FFFFFF;
  --cyan: #00C9EA;          /* solo detalles */
  --red: #E8222E;           /* rojo del isotipo, solo para errores */
  --error-text: #FFC2C6;

  --font-display: "Inter Tight", "Inter Display", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }

::selection { background: var(--yellow); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.hex-dot {
  display: inline-block;
  width: .7em;
  height: .8em;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}

/* ---------------- NAV ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem var(--gutter);
  transition: background-color .4s, backdrop-filter .4s, padding .4s var(--ease-out), box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(7, 6, 42, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  padding-block: .55rem;
}
.nav__brand { display: block; border-radius: 8px; }
.nav__brand img {
  height: 54px;
  width: auto;
  transition: height .4s var(--ease-out), transform .4s var(--ease-out);
}
.nav.is-scrolled .nav__brand img { height: 42px; }
.nav__brand:hover img { transform: scale(1.04); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background-color .3s, color .3s;
}
.nav__cta svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.nav__cta:hover { border-color: var(--yellow); color: var(--yellow); }
.nav__cta:hover svg { transform: translateX(3px); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__previous {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 100px;
  color: #fff;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s, border-color .25s,
              transform .25s;
}

.nav__previous:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .nav__actions {
    gap: 8px;
  }

  .nav__previous {
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* ---------------- BOTONES ---------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 56px;
  padding: .5rem .55rem .5rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
}
.btn--primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 10px 30px -12px rgba(255, 209, 1, .55), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.btn--primary::after {           /* destello */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .65) 48%, transparent 64%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(255, 209, 1, .75), 0 0 0 6px rgba(255, 209, 1, .12);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .12s; }

.btn__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  flex: none;
  transition: transform .45s var(--ease-out);
}
.btn__icon svg { width: 16px; height: 16px; }
.hero .btn:hover .btn__icon { transform: translateY(3px); }
.btn--submit:hover .btn__icon { transform: translateX(3px); }

.btn__spinner {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--black) 0 55%, transparent 56%),
    conic-gradient(var(--black) 0 25%, rgba(17, 17, 17, .18) 25% 100%);
  animation: spin .8s linear infinite;
  flex: none;
}
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn__icon { display: none; }
.btn.is-loading .btn__spinner { display: block; }
.btn[disabled] { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7.5rem var(--gutter) 5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 0%, #1D1888 0%, var(--navy) 22%, var(--navy-900) 58%, var(--navy-950) 100%);
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero__glow--a {
  width: 60vmax; height: 60vmax;
  left: 50%; top: 42%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(60, 52, 214, .55), transparent 65%);
  animation: breathe 9s var(--ease-in-out) infinite alternate;
}
.hero__glow--b {
  width: 34vmax; height: 34vmax;
  right: -8vmax; bottom: -10vmax;
  background: radial-gradient(circle, rgba(0, 201, 234, .22), transparent 65%);
  animation: breathe 11s var(--ease-in-out) infinite alternate-reverse;
}
@keyframes breathe {
  from { transform: scale(.92); opacity: .75; }
  to   { transform: scale(1.08); opacity: 1; }
}

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__floor {
  position: absolute;
  left: -50%; right: -50%;
  bottom: -2%;
  height: 46%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 85%);
  animation: floor 6s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }

.hero__hex {
  position: absolute;
  left: 50%; top: 47%;
  width: min(92vw, 820px);
  translate: -50% -50%;
  overflow: visible;
}
.hero__hex-rot {
  transform-origin: 0 0;
  animation: rotate 140s linear infinite;
  fill: none;
  stroke: rgba(255, 255, 255, .14);
  stroke-width: .45;
}
.hero__hex-rot circle { fill: rgba(255, 255, 255, .35); stroke: none; }
.hero__hex-inner {
  stroke: rgba(255, 209, 1, .75);
  stroke-width: .7;
  stroke-dasharray: 26 250;
  animation: dash 9s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -276; } }

.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 48%, rgba(7, 6, 42, .55), transparent 75%),
    linear-gradient(to bottom, rgba(7,6,42,.5), transparent 18%, transparent 75%, rgba(7,6,42,.9));
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  max-width: 100%;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(7, 6, 42, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: clamp(.64rem, 1.4vw, .76rem);
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  text-align: left;
}

.hero__title {
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: .9;
  letter-spacing: -.035em;
  white-space: nowrap;
  text-shadow: 0 10px 60px rgba(7, 6, 42, .6);
}
.hero__title span { display: inline-block; }
.hero__title-enie { color: var(--white); }
.hero__title-year {
  margin-left: .12em;
  text-shadow: none;
  filter: drop-shadow(0 10px 40px rgba(255, 209, 1, .18));
  color: var(--yellow);
  background: linear-gradient(100deg, var(--yellow) 0%, var(--yellow) 40%, #FFF3B0 50%, var(--yellow) 60%, var(--yellow) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s var(--ease-in-out) 2.2s infinite;
}
@keyframes shimmer {
  0%, 55% { background-position: 100% 0; }
  100% { background-position: -50% 0; }
}

.hero__claim {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 2.3vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  max-width: 30ch;
  text-wrap: balance;
}
.hero__sub {
  margin-top: .9rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, .72);
  text-wrap: balance;
}

.hero__actions {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping {
  from { transform: scale(1); opacity: .9; }
  to   { transform: scale(3.2); opacity: 0; }
}

/* Animación de carga */
.js .reveal-load {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
}
.is-loaded .reveal-load {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 120ms + 120ms);
}
.js .hero__title.reveal-load { transform: translateY(30px) scale(.96); }
.is-loaded .hero__title.reveal-load { transform: none; }

/* ---------------- PRÓXIMAMENTE ---------------- */
.soon {
  position: relative;
  background: var(--yellow);
  color: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.soon::before {               /* trama de puntos */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(17, 17, 17, .14) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
}

.soon__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter) clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  grid-template-areas:
    "title art"
    "title text";
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.soon__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8.6vw, 8.2rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.soon__title .line { display: block; overflow: hidden; padding: .14em 0 .06em; margin-top: -.14em; }
.soon__title .line > span { display: inline-block; }
.soon__dot { color: var(--navy); }

.js .soon__title .line.reveal { opacity: 1; transform: none; }
.js .soon__title .line > span {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .soon__title .line.is-visible > span { transform: none; }

.soon__art {
  grid-area: art;
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.soon__hex, .soon__hex-ghost {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.soon__hex-rot {
  transform-origin: 0 0;
  transform: rotate(calc(var(--p, 0) * 120deg));
}
.soon__hex .t {
  stroke: var(--black);
  stroke-width: 1.6;
  stroke-linejoin: round;
  fill: transparent;
  transition: transform 1.2s var(--ease-out), opacity 1s var(--ease-out), fill .4s;
}
.soon__hex .t1 { fill: var(--navy); stroke: var(--navy); }
.soon__hex .t2 { fill: var(--black); }
.soon__hex .t4 { fill: var(--white); }
.soon__hex .t5 { fill: var(--navy); stroke: var(--navy); opacity: .9; }
.soon__hex-ghost polygon {
  fill: none;
  stroke: var(--black);
  stroke-width: .7;
  stroke-dasharray: 3 4;
  transform: scale(1.18);
  transform-origin: 0 0;
  opacity: .55;
  animation: rotate 60s linear infinite reverse;
}

/* Ensamblado de triángulos */
.js .soon__art .t { opacity: 0; }
.js .soon__art .t1 { transform: translate(14px, -26px); }
.js .soon__art .t2 { transform: translate(28px, 0); }
.js .soon__art .t3 { transform: translate(14px, 26px); }
.js .soon__art .t4 { transform: translate(-14px, 26px); }
.js .soon__art .t5 { transform: translate(-28px, 0); }
.js .soon__art .t6 { transform: translate(-14px, -26px); }
.js .soon__art.is-visible .t { opacity: 1; transform: none; }
.js .soon__art.is-visible .t5 { opacity: .9; }
.soon__art .t2 { transition-delay: .08s; }
.soon__art .t3 { transition-delay: .16s; }
.soon__art .t4 { transition-delay: .24s; }
.soon__art .t5 { transition-delay: .32s; }
.soon__art .t6 { transition-delay: .40s; }
.soon__art:hover .t3 { fill: var(--black); }
.soon__art:hover .t6 { fill: var(--white); }

.soon__text {
  grid-area: text;
  justify-self: end;
  max-width: 24ch;
  padding-top: 1.1rem;
  border-top: 2px solid var(--black);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .6rem;
}

/* Cinta */
.marquee {
  position: relative;
  background: var(--black);
  color: var(--yellow);
  padding: 1.05rem 0;
  transform: rotate(-1.6deg) scale(1.04);
  transform-origin: center;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(17, 17, 17, .5);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 2rem;
  padding-right: 2rem;
}
.marquee__group span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.9vw, 1.35rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group i {
  width: 12px; height: 14px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- REGISTRO ---------------- */
.signup {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-950) 100%);
  overflow: hidden;
  isolation: isolate;
  outline: none;
}
.signup__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 72% 50%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 72% 50%, #000, transparent 75%);
}
.signup__bg::after {
  content: "";
  position: absolute;
  width: 46vmax; height: 46vmax;
  right: -6vmax; top: 50%;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 30, 170, .7), transparent 62%);
  filter: blur(40px);
}

.signup__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.signup__title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.signup__lead {
  margin-top: 1.4rem;
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: rgba(255, 255, 255, .75);
}

.card {
  position: relative;
  padding: clamp(1.4rem, 3.4vw, 2.6rem);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 60%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.card::before {               /* línea de luz superior */
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--yellow), transparent);
  opacity: .9;
}

.field__label {
  display: block;
  margin-bottom: .7rem;
  font-weight: 700;
  font-size: .95rem;
}
.field__row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(7, 6, 42, .55);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field__row:hover { border-color: rgba(255, 255, 255, .38); }
.field__row:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 201, 234, .18);
  background: rgba(7, 6, 42, .75);
}
.field__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 1.1rem;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
}
.field__input::placeholder { color: rgba(255, 255, 255, .42); }
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 100px #0E0B48 inset;
  caret-color: var(--white);
}
.btn--submit { flex: none; }

.field__error {
  display: none;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .65rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--error-text);
}
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 18px; height: 20px;
  margin-top: .1rem;
  flex: none;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.field__error:not(:empty) { display: flex; }
.field.is-invalid .field__row { border-color: var(--red); box-shadow: 0 0 0 4px rgba(232, 34, 46, .2); }
.field.is-invalid .field__row { animation: shake .45s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.consent { margin-top: 1.5rem; }
.consent__input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.consent__label {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
}
.consent__label a { color: var(--white); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.consent__label a:hover { color: var(--yellow); }
.consent__box {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: .05rem;
  flex: none;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: var(--black);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease-out);
}
.consent__box svg { width: 15px; height: 15px; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease-out); }
.consent__label:hover .consent__box { border-color: var(--yellow); }
.consent__input:checked + .consent__label .consent__box { background: var(--yellow); border-color: var(--yellow); transform: scale(1.06); }
.consent__input:checked + .consent__label .consent__box svg { stroke-dashoffset: 0; }
.consent__input:focus-visible + .consent__label .consent__box { outline: 3px solid var(--cyan); outline-offset: 3px; }
.consent.is-invalid .consent__box { border-color: var(--red); box-shadow: 0 0 0 4px rgba(232, 34, 46, .2); }
.consent .field__error { padding-left: calc(24px + .85rem); }

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  margin-top: 1.2rem;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
}
.form__status:empty { display: none; }
.form__status.is-error {
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 34, 46, .55);
  background: rgba(232, 34, 46, .12);
  color: var(--error-text);
}

.success { text-align: center; padding: 1rem 0 .5rem; outline: none; }
.success__icon { width: 92px; margin: 0 auto 1.4rem; }
.success__icon polygon {
  fill: rgba(255, 209, 1, .1);
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-dasharray: 270;
  stroke-dashoffset: 270;
  animation: draw 1s var(--ease-out) forwards;
}
.success__icon path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw .6s var(--ease-out) .55s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  text-transform: uppercase;
}
.success__text { margin: .8rem auto 0; max-width: 36ch; color: rgba(255, 255, 255, .75); overflow-wrap: anywhere; }
.success__text strong { color: var(--white); }
.success:not([hidden]) { animation: fadeUp .7s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Revelado al hacer scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 2.2rem var(--gutter);
  font-size: .9rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand img { height: 46px; width: auto; }
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
}
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; }
.footer__links a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 1px no-repeat;
  transition: color .25s, background-size .35s var(--ease-out);
  padding-bottom: 2px;
}
.footer__links a:hover { color: var(--yellow); background-size: 100% 1px; }
.footer__copy { color: rgba(255, 255, 255, .45); font-size: .82rem; }

/* ---------------- POLÍTICA DE PRIVACIDAD ---------------- */
.legal-page { background: var(--navy-950); }
.legal-header {
  padding: 1.2rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.legal-header img { height: 46px; width: auto; }
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 5rem;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.legal .legal__date { margin-top: .8rem; color: rgba(255, 255, 255, .55); font-size: .9rem; }
.legal h2 {
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--yellow);
}
.legal p, .legal li { color: rgba(255, 255, 255, .8); }
.legal p { margin-top: .8rem; }
.legal ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.legal li { margin-top: .4rem; }
.legal a { color: var(--white); text-decoration-color: var(--yellow); text-underline-offset: 3px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .signup__inner { grid-template-columns: 1fr; }
  .signup__intro { max-width: 640px; }
}

@media (max-width: 760px) {
  .soon__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "title" "text";
  }
  .soon__art {
    justify-self: start;
    width: 150px;
    margin-bottom: 1.8rem;
  }
  .soon__text { justify-self: start; margin-top: 2rem; max-width: 30ch; }
}

@media (max-width: 600px) {
  .nav__brand img { height: 46px; }
  .nav.is-scrolled .nav__brand img { height: 38px; }
  .nav__cta { padding: .6rem .9rem; font-size: .64rem; }
  .hero { padding-top: 6.5rem; }
  .hero__eyebrow { letter-spacing: .12em; border-radius: 16px; }
  .hero__floor { background-size: 44px 44px; }
  .field__row {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 0;
    background: transparent;
    gap: .75rem;
  }
  .field__row:focus-within { box-shadow: none; background: transparent; }
  .field__input {
    flex: none;
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(7, 6, 42, .6);
    transition: border-color .3s, box-shadow .3s;
  }
  .field__input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 201, 234, .18); }
  .field.is-invalid .field__row { box-shadow: none; animation: none; }
  .field.is-invalid .field__input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(232, 34, 46, .2); }
  .btn--submit { width: 100%; justify-content: space-between; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .btn { font-size: .72rem; padding-left: 1.2rem; gap: .6rem; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
  .js .reveal, .js .reveal-load { opacity: 1; transform: none; filter: none; }
  .js .soon__title .line > span { transform: none; }
  .js .soon__art .t { opacity: 1; transform: none; }
  .hero__title-year { -webkit-text-fill-color: var(--yellow); background: none; }
}

/* Alto contraste forzado (Windows) */
@media (forced-colors: active) {
  .btn--primary { border: 2px solid ButtonText; }
  .hero__title-year { -webkit-text-fill-color: CanvasText; }
}
