/* ── CONCURSO (EN /contest · ES /es/concurso) ─────────────────────────────
   El sistema de la home: titulares a dos tonos con la Forma DJR Banner,
   material real, medios redondeados y nada de iconos. Empieza de noche, con
   una tele que emite tres anuncios reales de 20 segundos y la cuenta atrás de
   un corte publicitario; sigue en blanco y vuelve a la noche en el formulario.

   1 · Portada (la tele) · 2 · El premio · 3 · Cómo participar (la regla de
   20 segundos) · 4 · Quién puede · 5 · Formulario · 6 · FAQ · 7 · Cierre azul
   · Footer de la home
   ──────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Regular-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Regular-Testing.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Medium-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Medium-Testing.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Bold-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Bold-Testing.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Banner';
  src: url('/assets/fonts/FormaDJRBanner-Medium-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRBanner-Medium-Testing.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── Tokens (los de home.css; la noche, la del globo) ── */
:root {
  --ink: #0a0a0a;
  --ink-2: #3c424e;
  --mute: #868c98;
  --mute-text: #5f6571;
  --line: rgba(10, 10, 10, 0.1);
  --line-2: rgba(10, 10, 10, 0.18);
  --paper: #fff;
  --soft: #f3f5f8;
  --blue: #2b5fd9;
  --blue-soft: #e8eefc;
  --night: #060b16;
  --night: oklch(0.135 0.025 252);
  --n-t1: rgba(255, 255, 255, 0.94);
  --n-t2: rgba(255, 255, 255, 0.7);
  --n-t3: rgba(255, 255, 255, 0.56);
  --n-mute: #7f8fb8;
  --n-line: rgba(255, 255, 255, 0.12);
  --bezel: #0c0e13;
  --gutter: clamp(16px, 4.4vw, 56px);
  --maxw: 1240px;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Forma DJR Banner', 'Forma DJR Text', system-ui, sans-serif;
  --text: 'Forma DJR Text', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (min-width: 900px) { :root { --r-xl: 40px; --r-lg: 26px; --r-md: 20px; } }

/* ── Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* Sin fondo en html: así el de body llega al lienzo y el aura y las
   partículas (z-index -1) se pintan encima de él. */
html { overflow-x: clip; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  background: #f4f8fb;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; }
main img, main video { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.is-night :focus-visible, .ct-launch-panel :focus-visible { outline-color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.a-skip {
  position: fixed; top: 12px; left: 12px; z-index: 4000;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.a-skip:focus-visible { transform: none; outline-color: #fff; }
main > section { scroll-margin-top: 88px; }
.nw { white-space: nowrap; }

/* ── Piezas comunes ── */
.ct-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.ct-sec { padding-block: clamp(96px, 12vw, 176px); }
.ct-display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.15rem + 4.3vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.m { color: var(--mute); }
.is-night .m { color: var(--n-mute); }
.ct-lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
  text-wrap: pretty;
}
.ct-lede a, .ct-small a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.ct-small { font-size: 0.875rem; line-height: 1.55; color: var(--mute-text); max-width: 60ch; }

.ct-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0;
  font-family: var(--text); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.ct-btn:active { transform: scale(0.96); }
.ct-btn-dark { background: var(--ink); color: #fff; }
.ct-btn-light { background: #fff; color: var(--ink); }
.ct-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36); }
@media (hover: hover) {
  .ct-btn:hover { transform: translateY(-2px); }
  .ct-btn:active { transform: scale(0.96); }
  .ct-btn-dark:hover { background: #262a33; }
  .ct-btn-light:hover { background: #eef1f6; }
  .ct-btn-ghost:hover { box-shadow: inset 0 0 0 1px #fff; }
}

/* Entrada suave, una vez, solo con JS (sin él todo se ve). */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Logos de plataforma dentro del titular, como en la home: material real en
   la frase, no iconos. */
.chip {
  display: inline-flex; vertical-align: middle;
  margin: -0.18em 0 0 0.16em;
}
.chip img {
  width: 0.86em; height: 0.86em;
  border-radius: 0.2em;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  transform: rotate(var(--tilt, 0deg));
}

/* ════════════════════════════════════════════════════════════════════════
   1 · PORTADA: titular a la izquierda, la tele a la derecha
   ════════════════════════════════════════════════════════════════════════ */
.ct-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: var(--night);
  color: var(--n-t1);
  padding: clamp(112px, 14svh, 148px) 0 clamp(56px, 8svh, 96px);
}
.ct-hero-in {
  display: grid;
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}
@media (min-width: 1024px) {
  .ct-hero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 4.4vw, 72px); }
}

.ct-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 34px; padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 0.875rem; font-weight: 600; color: var(--n-t1);
  font-variant-numeric: tabular-nums;
}

.ct-h1 {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.25rem + 4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.018em;
  color: #fff;
  text-wrap: balance;
}
.ct-hero .ct-lede { margin-top: 24px; color: var(--n-t2); max-width: 36ch; }
.ct-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ── La tele ──
   Marco hecho con sombra, peana, cristal y la luz que el anuncio pinta en la
   pared (canvas pequeño, desenfocado, que el CSS estira). Dentro de la
   pantalla, lo de un corte publicitario de plataforma: "Anuncio" con la
   cuenta atrás, la barra de lo que queda y quién es, todo dentro del objeto. */
.ct-tvwrap { position: relative; padding-bottom: 34px; }
.ct-tv {
  --sr: 6px;
  --bz: clamp(7px, 0.9vw, 12px);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
}
.ct-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 200%; height: 220%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.75;
  pointer-events: none;
  filter: saturate(1.8) brightness(1.05);
  -webkit-mask-image: radial-gradient(closest-side, #000 28%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 28%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
}
.ct-glow.is-css-blur { filter: blur(28px) saturate(1.8) brightness(1.05); }
.ct-screen {
  position: absolute; inset: 0;
  border-radius: var(--sr);
  overflow: hidden;
  background: #020203;
  box-shadow:
    0 0 0 var(--bz) var(--bezel),
    0 0 0 calc(var(--bz) + 1px) rgba(255, 255, 255, 0.07),
    0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.ct-tv::after {
  /* El cristal: un brillo diagonal muy suave. */
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--sr);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}
.ct-neck, .ct-base { position: absolute; left: 50%; background: var(--bezel); pointer-events: none; }
.ct-neck { top: calc(100% + var(--bz)); width: 7%; height: 22px; transform: translateX(-50%); }
.ct-base {
  top: calc(100% + var(--bz) + 22px);
  width: 30%; height: 5px; border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ct-still, .ct-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ct-video { opacity: 0; transition: opacity 0.4s ease; }
.ct-tv.is-playing .ct-video { opacity: 1; }
/* Sombra abajo para que el rótulo se lea sobre cualquier anuncio. */
.ct-screen::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  z-index: 0;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.72), rgba(4, 5, 8, 0.34) 55%, rgba(4, 5, 8, 0));
  pointer-events: none;
}
.ct-adbadge, .ct-who, .ct-snd, .ct-bar { z-index: 1; }
.ct-yours { z-index: 2; }

/* Corte publicitario: arriba a la izquierda "Anuncio · 0:17". */
.ct-adbadge {
  position: absolute; top: 4.2cqw; left: 4cqw;
  display: inline-flex; align-items: center; gap: 0.7cqw;
  padding: 0.55cqw 1.1cqw 0.55cqw 0.6cqw;
  border-radius: 0.9cqw;
  background: rgba(8, 9, 13, 0.6);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  font-size: max(11px, 1.7cqw); font-weight: 600; line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ct-adbadge b {
  padding: 0.35cqw 0.7cqw;
  border-radius: 0.5cqw;
  background: #f5c84c; color: #111;
  font-weight: 700;
}
/* Quién es: abajo a la izquierda, dentro de la pantalla, alto fijo. */
.ct-who {
  position: absolute; left: 4cqw; right: 22cqw; bottom: 5.4cqw;
  display: grid; gap: 0.5cqw;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.ct-who-brand { font: 500 max(14px, 3cqw)/1.05 var(--display); letter-spacing: -0.012em; }
.ct-who-meta { font-size: max(11px, 1.55cqw); line-height: 1.2; color: rgba(255, 255, 255, 0.84); }
.ct-who, .ct-adbadge { transition: opacity 0.35s ease; }
.ct-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: max(3px, 0.55cqw);
  background: rgba(255, 255, 255, 0.18);
}
.ct-bar i { display: block; height: 100%; width: 100%; background: #f5c84c; transform-origin: 0 50%; transform: scaleX(0); }
.ct-snd {
  position: absolute; top: 4cqw; right: 4cqw;
  min-height: max(30px, 4.6cqw); padding: 0 max(12px, 1.8cqw);
  border: 0; border-radius: 999px;
  background: rgba(8, 9, 13, 0.46);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: max(12px, 1.6cqw); font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ct-snd.is-on { background: #fff; color: #0a0b10; }
@media (hover: hover) { .ct-snd:not(.is-on):hover { background: rgba(255, 255, 255, 0.14); } }

/* "El tuyo": la pantalla azul con los 20 segundos sin empezar. */
.ct-yours {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3cqw;
  background: var(--blue);
  text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.ct-tv.is-yours .ct-yours { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
.ct-tv.is-yours .ct-who, .ct-tv.is-yours .ct-snd { opacity: 0; pointer-events: none; }
.ct-yours-t { font: 500 7.2cqw/1 var(--display); letter-spacing: -0.02em; color: #fff; max-width: 12ch; text-wrap: balance; }
.ct-yours .ct-btn { min-height: max(40px, 6cqw); padding: 0 max(18px, 3.2cqw); font-size: max(14px, 1.9cqw); }

/* Fila bajo la tele: qué anuncio suena. Puntos, no texto: el texto está en
   la pantalla. */
.ct-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; }
.ct-dots span { width: 28px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); transition: background-color 0.3s ease; }
.ct-dots span.is-on { background: #fff; }

/* ════════════════════════════════════════════════════════════════════════
   2 · EL PREMIO
   ════════════════════════════════════════════════════════════════════════ */
.ct-prize-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 1024px) { .ct-prize-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.ct-prize .ct-lede { max-width: 38ch; }
.ct-plats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(48px, 6vw, 88px);
}
@media (min-width: 900px) { .ct-plats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.ct-plats li { aspect-ratio: 1; }
.ct-plats img {
  width: 100%; height: 100%;
  border-radius: clamp(14px, 1.8vw, 24px);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -26px rgba(10, 20, 60, 0.45);
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) { .ct-plats li:hover img { transform: translateY(-4px) rotate(var(--r, -2deg)); } }
.ct-prize .ct-small { margin-top: 20px; }

/* ════════════════════════════════════════════════════════════════════════
   3 · CÓMO PARTICIPAR: los tres pasos
   ════════════════════════════════════════════════════════════════════════ */
.ct-how { background: transparent; }
.ct-how-head { display: grid; gap: 24px; }
@media (min-width: 1024px) { .ct-how-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }


.ct-steps { list-style: none; display: grid; gap: clamp(28px, 3vw, 40px); margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .ct-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ct-step { padding-top: 22px; border-top: 1px solid var(--ink); }
.ct-step-n { display: block; font-size: 0.875rem; font-weight: 600; color: var(--mute-text); font-variant-numeric: tabular-nums; }
.ct-step h3 { margin-top: 22px; font: 500 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1.02 var(--display); letter-spacing: -0.014em; }
.ct-step p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }

/* ════════════════════════════════════════════════════════════════════════
   4 · QUIÉN PUEDE PARTICIPAR: filas con raya
   ════════════════════════════════════════════════════════════════════════ */
.ct-who-grid { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 1024px) { .ct-who-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.ct-kinds { list-style: none; border-top: 1px solid var(--line-2); }
.ct-kinds li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  font: 500 clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem)/1.05 var(--display);
  letter-spacing: -0.014em;
}
.ct-kinds li span { font: 600 0.875rem/1.3 var(--text); letter-spacing: 0; color: var(--mute-text); text-align: right; }
.ct-who-sec .ct-lede { margin-top: 28px; }

/* ════════════════════════════════════════════════════════════════════════
   5 · FORMULARIO: un panel de noche liso con el formulario dentro
   ════════════════════════════════════════════════════════════════════════ */
.ct-enter { padding: 0 clamp(8px, 1vw, 14px); }
.ct-enter-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--night);
  color: var(--n-t1);
  padding: clamp(56px, 8vw, 120px) 0;
}
.ct-enter-grid { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) {
  .ct-enter-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .ct-enter-side { position: sticky; top: 112px; }
}
.ct-enter .ct-display { color: #fff; }
.ct-enter .ct-lede { margin-top: 22px; color: var(--n-t2); }
.ct-need { list-style: none; margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--n-line); }
.ct-need li { padding: 14px 0; border-bottom: 1px solid var(--n-line); font-size: 1rem; line-height: 1.45; color: var(--n-t2); }
.ct-need li b { color: #fff; font-weight: 600; }
.ct-enter-side .ct-small { margin-top: 22px; color: var(--n-t3); }

.ct-form {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ct-form::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 100, 255, 0.6) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 160, 60, 0.5) 70%, transparent);
  background-size: 200% 100%;
  animation: ct-shimmer 4s linear infinite;
}
@keyframes ct-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ct-fields { display: grid; gap: 22px; border: 0; }
.ct-fields[disabled] { opacity: 0.45; }
/* Con display: grid el atributo hidden no bastaba: tras enviar se seguía viendo el formulario. */
.ct-fields[hidden] { display: none; }
@media (min-width: 640px) { .ct-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } }
.ct-field { display: grid; gap: 9px; border: 0; min-width: 0; }
.ct-field > label, .ct-field > legend, .ct-label {
  font-size: 0.875rem; font-weight: 600; color: var(--n-t2);
}
.ct-field > legend { padding: 0; margin-bottom: 9px; }
.ct-opt { font-weight: 400; color: var(--n-t3); }
.ct-input {
  display: block; width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: background-color 0.2s, border-color 0.2s;
}
textarea.ct-input { border-radius: 22px; min-height: 120px; resize: vertical; line-height: 1.5; }
.ct-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.ct-input:focus { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.36); }
.ct-input.is-invalid, .ct-drop.is-invalid { border-color: rgba(248, 113, 113, 0.8); }

/* Elegir: píldoras que se rellenan de blanco. Son radios de verdad. */
.ct-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-choice { position: relative; }
.ct-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-choice span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 0.9375rem; font-weight: 600; color: var(--n-t2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.ct-choice input:checked + span { background: #fff; color: var(--ink); box-shadow: none; }
.ct-choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) { .ct-choice span:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); color: #fff; } .ct-choice input:checked + span:hover { color: var(--ink); } }
.ct-seg { display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ct-seg .ct-choice span { min-height: 40px; box-shadow: none; }

.ct-drop {
  position: relative;
  display: grid; justify-items: center; gap: 6px;
  padding: 26px 20px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.ct-drop.is-over { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.ct-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ct-drop-t { font-weight: 600; color: #fff; }
.ct-drop-s { font-size: 0.8125rem; color: var(--n-t3); }
.ct-drop.has-file { border-style: solid; border-color: rgba(255, 255, 255, 0.36); }
.ct-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ct-progress i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 0.2s linear; }
.ct-progress[hidden] { display: none; }
[data-when][hidden] { display: none; }

.ct-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; line-height: 1.5; color: var(--n-t2); cursor: pointer; }
.ct-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: #fff; cursor: pointer; }
.ct-check a { color: #fff; text-underline-offset: 0.2em; }
.ct-submit { margin-top: 6px; width: 100%; }
.ct-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.ct-status { min-height: 1.4em; font-size: 0.9375rem; line-height: 1.45; color: var(--n-t2); }
.ct-status.is-error { color: #fca5a5; }

/* Antes de abrir y después de cerrar: un aviso encima del formulario. */
.ct-gate {
  margin-bottom: 22px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(93, 139, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(93, 139, 255, 0.35);
  font-size: 0.9375rem; line-height: 1.5; color: #fff;
}
.ct-gate[hidden] { display: none; }

/* Hecho: el formulario se cambia por el acuse. */
.ct-done { display: grid; gap: 18px; padding: clamp(8px, 2vw, 24px) 0; }
.ct-done[hidden] { display: none; }
/* Recibe el foco al enviar (para lectores de pantalla); sin anillo, que no es un control. */
.ct-done:focus { outline: none; }
.ct-done h3 { font: 500 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--display); letter-spacing: -0.016em; color: #fff; }
.ct-done p { font-size: 1.0625rem; line-height: 1.6; color: var(--n-t2); max-width: 44ch; }

/* ════════════════════════════════════════════════════════════════════════
   6 · FAQ (el de la home)
   ════════════════════════════════════════════════════════════════════════ */
.h-faq-grid { display: grid; gap: clamp(32px, 4vw, 48px); }
.h-faq-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  content: '';
  position: absolute; right: 6px; top: 50%;
  width: 14px; height: 1.6px; margin-top: -0.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq-item.is-closing summary::after { transform: rotate(90deg); opacity: 1; }
.faq-a { overflow: hidden; }
.faq-item summary:hover { color: var(--blue); }
.faq-item p { padding: 0 0 24px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.faq-item p a { color: var(--blue); text-underline-offset: 3px; }
.faq-q { font: inherit; margin: 0; letter-spacing: inherit; color: inherit; }
@media (min-width: 1024px) {
  .h-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 7vw, 120px); }
  .h-faq-head { position: sticky; top: 112px; align-self: start; }
}

/* ════════════════════════════════════════════════════════════════════════
   7 · CIERRE (el panel azul de la home)
   ════════════════════════════════════════════════════════════════════════ */
.ct-launch { padding: clamp(40px, 6vw, 96px) clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px); }
.ct-launch-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  color: #fff;
  text-align: center;
  padding: clamp(88px, 12vw, 168px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.4vw, 28px);
  background:
    url("/assets/images/home/launch-glow.svg") left center / 100% 100% no-repeat,
    linear-gradient(90deg, #1a62d8 0%, #1052cc 38%, #0c45c0 65%, #0a3ab2 100%);
}
@media (max-width: 767px) { .ct-launch-panel { background-size: 62% 100%, auto; } }
.ct-launch-panel::before,
.ct-launch-panel::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.ct-launch-panel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.ct-launch-panel::after {
  opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
.ct-launch-panel .ct-display { color: #fff; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem); max-width: 16ch; }
.ct-launch-panel p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.92); max-width: 40ch; }
.ct-launch-panel .ct-fine { font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); max-width: 52ch; }
.ct-launch-panel .ct-fine a { color: #fff; text-underline-offset: 0.2em; }

/* ════════════════════════════════════════════════════════════════════════
   FOOTER (el de la home, sin cambios de diseño)
   ════════════════════════════════════════════════════════════════════════ */
#site-footer { position: relative; z-index: 1; background: #fff; color: #111; }
.ft-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.85) 22%, rgba(59, 130, 246, 0.55) 50%, rgba(37, 99, 235, 0.85) 78%, transparent 100%);
  background-size: 200% 100%;
  animation: ft-sep-shimmer 6s linear infinite;
}
@keyframes ft-sep-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ft-inner { max-width: 1100px; margin: 0 auto; padding: 64px 6% 48px; }
.ft-links-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px 32px; margin-bottom: 52px; }
.ft-logo { height: 16px; opacity: 0.92; display: block; margin-bottom: 20px; }
.ft-tagline { font-size: 0.78rem; color: rgba(17, 17, 17, 0.52); line-height: 1.8; max-width: 220px; }
.ft-col-title { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(17, 17, 17, 0.38); margin-bottom: 18px; }
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ft-links a { font-size: 0.82rem; color: rgba(17, 17, 17, 0.62); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; letter-spacing: -0.01em; }
.ft-links a:hover { color: #0c1442; }
.ft-socials { display: flex; gap: 8px; margin-top: 24px; }
.ft-social-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; color: rgba(17, 17, 17, 0.45); text-decoration: none; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.ft-social-icon:hover { border-color: rgba(43, 95, 217, 0.35); color: #2b5fd9; background: rgba(43, 95, 217, 0.06); }
.ft-funding { display: flex; justify-content: center; padding: 8px 0 32px; }
.ft-funding img { max-width: 100%; width: 720px; height: auto; display: block; opacity: 0.92; }
.ft-tcf-badge { display: block; width: auto; height: 48px; margin-top: 18px; }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, 0.08); flex-wrap: wrap; gap: 10px; }
.ft-copy, .ft-made { font-size: 0.71rem; color: rgba(17, 17, 17, 0.42); letter-spacing: 0.01em; }
@media (max-width: 900px) {
  .ft-links-grid { grid-template-columns: 2fr 1fr 1fr; }
  .ft-col:last-child { grid-column: span 3; }
}
@media (max-width: 640px) {
  .ft-inner { padding: 48px 5% 36px; }
  .ft-links-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ft-col-brand { grid-column: span 2; }
  .ft-col:last-child { grid-column: auto; }
  .ft-funding { padding: 4px 0 24px; }
  .ft-funding img { width: 100%; }
}
@media (max-width: 380px) {
  .ft-links-grid { gap: 24px 14px; }
  .ft-tagline { max-width: 100%; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ft-separator, .ct-form::before { animation: none; }
  .ct-btn { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   BASES (/es/concurso/bases · /contest/terms): texto legal en claro
   ════════════════════════════════════════════════════════════════════════ */
.ct-legal { padding: clamp(136px, 12vw, 176px) 0 clamp(80px, 9vw, 128px); }
.ct-legal .ct-wrap { max-width: 860px; }
.ct-legal h1 { font: 500 clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem)/1 var(--display); letter-spacing: -0.018em; text-wrap: balance; }
.ct-legal .ct-meta { margin-top: 18px; font-size: 0.9375rem; color: var(--mute-text); }
.ct-draft {
  margin-top: 28px; padding: 16px 20px;
  border-radius: 16px;
  background: #fff6db; box-shadow: inset 0 0 0 1px #f0d48a;
  font-size: 0.9375rem; line-height: 1.5; color: #5a4300;
}
.ct-legal section { margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.ct-legal h2 { font: 500 clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem)/1.15 var(--display); letter-spacing: -0.01em; }
.ct-legal p, .ct-legal li { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.ct-legal p { margin-top: 14px; }
.ct-legal ul, .ct-legal ol { margin: 14px 0 0 1.2em; display: grid; gap: 8px; }
.ct-legal a { color: var(--blue); text-underline-offset: 0.2em; }
.ct-legal strong { color: var(--ink); font-weight: 600; }
.ct-back { display: inline-flex; margin-top: clamp(40px, 5vw, 56px); }


/* ── Aura de fondo: la de las páginas interiores (product, plataformas,
   recursos…), copiada tal cual. Un degradado azul pegado al perímetro, con el
   centro libre para que el texto nunca compita con el color; deriva sola y
   sube un poco al bajar por la página. ── */
body { position: relative; }
.bg-aura { position: absolute; inset: 0; height: 100%; z-index: -1; pointer-events: none; }
.bg-aura .aura-vp {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 54% 48% at 50% 46%, transparent 30%, #000 100%);
          mask-image: radial-gradient(ellipse 54% 48% at 50% 46%, transparent 30%, #000 100%);
}
.bg-aura .aura-par { position: absolute; inset: 0; }
@supports (animation-timeline: scroll()) {
  .bg-aura .aura-par {
    animation: aura-parallax linear both; animation-timeline: scroll(root block); will-change: transform;
  }
}
@keyframes aura-parallax {
  from { transform: translate3d(0, 18%, 0); }
  to   { transform: translate3d(0, -18%, 0); }
}
.bg-aura span {
  position: absolute; inset: -28%; display: block; will-change: transform;
  /* Los mismos cinco degradados con blur(64px) saturate(118%), horneados en una
     imagen: el filtro en vivo sobre una capa de 1,5 pantallas que no para de
     moverse se recalculaba en cada fotograma (caro en móvil). Se ve igual. */
  background: url("/assets/images/aura/aura-desk.webp") center / 100% 100% no-repeat;
  animation: aura-drift 68s var(--ease-wander) infinite alternate;
}
@keyframes aura-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.6%, -2.2%, 0) scale(1.07); }
  100% { transform: translate3d(-2.2%, 2.6%, 0) scale(1.03); }
}
@media (max-width: 900px) {
  .bg-aura .aura-vp { -webkit-mask-image: radial-gradient(ellipse 62% 44% at 50% 46%, transparent 26%, #000 100%);
                              mask-image: radial-gradient(ellipse 62% 44% at 50% 46%, transparent 26%, #000 100%); }
  .bg-aura span { background-image: url("/assets/images/aura/aura-mob.webp"); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-aura span { animation: none; }
  .bg-aura .aura-par { animation: none; transform: none; }
}

/* ── Profundidad de fondo (depth.js): partículas en tres planos ── */
.depth-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.depth-field.is-page { position: fixed; }
[data-depth]:not([data-depth="page"]) { position: relative; isolation: isolate; }

/* El suelo de la sala: una trama de puntos en perspectiva bajo la tele, que
   se pierde hacia el fondo. La luz de la tele la ilumina por encima. */
.ct-floor {
  position: absolute; left: -30%; right: -30%; bottom: -2%; height: 78%;
  z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(159, 186, 255, 0.6) 1.4px, transparent 2px);
  background-size: 34px 34px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 88%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 88%);
}
.ct-hero::after {
  /* Horizonte: una luz muy baja donde el suelo se pierde. */
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 62% 100%, rgba(43, 95, 217, 0.22), transparent 70%);
}

/* Bases oficiales (13-10): país de la campaña y nota bajo los pasos. */
.ct-select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%), linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.ct-select:invalid { color: rgba(255, 255, 255, 0.4); }
.ct-select option { color: #0a0a0a; }
.ct-steps-note { margin-top: clamp(28px, 3vw, 40px); }
.ct-need a { color: #fff; text-underline-offset: 0.2em; }
/* Campo trampa para bots: fuera de la vista y del lector de pantalla. */
.ct-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ct-hint { font-size: 0.8125rem; color: var(--n-t3); }
