/* Berserker Games — identidad tomada de los SVG oficiales de ADJUNTOS */

:root {
  --ink: #05121a;
  --ink-2: #081d28;
  --ink-3: #0c2733;
  --deep: #003f5b;
  --cyan: #2a96b0;
  --cyan-bright: #6ffbff;
  --gold: #fdd100;
  --gold-deep: #fdaa06;

  --text: #e8f4f8;
  --text-dim: #93b0bd;
  --text-faint: #5f7d8a;
  --line: rgba(106, 176, 199, 0.18);
  --line-strong: rgba(106, 176, 199, 0.38);

  --ok: #35c98a;
  --warn: #fdba03;
  --danger: #ff6b6b;
  --info: var(--cyan);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --maxw: 1120px;
  --topbar-desktop-height: 102px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/*
 * Los estilos de autor ganan a la hoja del navegador, asi que .btn/.stack
 * anulaban el display:none de [hidden]. Sin esto los cuatro pasos del
 * formulario aparecen a la vez.
 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  background-image:
    radial-gradient(120% 80% at 78% -8%, rgba(42, 150, 176, 0.28), transparent 60%),
    radial-gradient(90% 60% at 8% 4%, rgba(0, 63, 91, 0.5), transparent 62%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a { color: var(--cyan-bright); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #000; padding: .7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }

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

/* ------------------------------------------------------------ topbar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 18, 26, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  /*
   * Instalada en iOS la pagina se mete bajo la barra de estado (hora, bateria,
   * notch): el encabezado la absorbe con su propio fondo en vez de pelearse
   * con ella. En navegador el inset vale 0 y no cambia nada.
   */
  padding-top: env(safe-area-inset-top);
}

/*
 * Tres columnas con la del medio libre: la marca queda separada del borde por
 * el ancho maximo del contenedor, la navegacion cae centrada de verdad en la
 * pagina, y las acciones tampoco tocan el extremo derecho.
 */
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .6rem clamp(1rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.topbar__brand { display: flex; align-items: center; }
.topbar__brand img { width: clamp(112px, 15vw, 148px); height: auto; display: block; }

.topbar__actions { display: flex; align-items: center; gap: .55rem; justify-self: end; }

.sound {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(42, 150, 176, .12);
  color: var(--cyan-bright);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.sound:hover {
  background: rgba(42, 150, 176, .24);
  border-color: var(--cyan);
}
.sound svg {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
}
.sound__body { fill: currentColor; }
.sound__wave,
.sound__mute {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.sound__mute { display: none; }
.sound[aria-pressed="false"] {
  color: var(--text-faint);
  background: rgba(95, 125, 138, .08);
  border-color: rgba(95, 125, 138, .35);
}
.sound[aria-pressed="false"] .sound__wave { display: none; }
.sound[aria-pressed="false"] .sound__mute { display: block; }

.topbar__toggle {
  display: grid; place-items: center;
  width: 42px; height: 38px; border-radius: 9px;
  background: rgba(42, 150, 176, .12); border: 1px solid var(--line-strong);
  cursor: pointer;
}
.topbar__toggle-bar,
.topbar__toggle-bar::before,
.topbar__toggle-bar::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--cyan-bright); border-radius: 2px;
}
.topbar__toggle-bar { position: relative; }
.topbar__toggle-bar::before { position: absolute; top: -6px; }
.topbar__toggle-bar::after { position: absolute; top: 6px; }

.topbar__nav {
  display: none;
  min-width: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: .15rem;
  padding: .6rem clamp(1rem, 4vw, 2.4rem) 1rem;
  background: rgba(6, 22, 31, 0.98);
  border-bottom: 1px solid var(--line);
}
.topbar__nav.is-open { display: flex; }

.topbar__nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  padding: .6rem .2rem; border-radius: 8px;
}
.topbar__nav a:hover { color: var(--text); }
.topbar__nav a.is-active { color: var(--cyan-bright); }

/* La inscripcion sigue destacando sin robarle el sitio a Contactenos. */
.topbar__cta {
  border: 1px solid var(--line-strong);
  background: rgba(42, 150, 176, .14);
  color: var(--cyan-bright) !important;
  text-transform: uppercase;
  font-size: .78rem !important;
  letter-spacing: .06em;
}

/* La navegacion completa necesita aire suficiente junto a las acciones. */
@media (min-width: 1160px) {
  .topbar__toggle { display: none; }
  .topbar__nav {
    display: flex; flex-direction: row; align-items: center;
    justify-content: center; gap: .2rem;
    position: static; padding: 0; background: none; border: 0;
  }
  .topbar__nav a { padding: .5rem .7rem; white-space: nowrap; }
  .topbar__cta { padding: .45rem .9rem !important; margin-left: .35rem; }
}

@media (max-width: 430px) {
  .topbar__inner { padding-inline: .7rem; gap: .55rem; }
  .topbar__brand img { width: 96px; }
  .topbar__actions { gap: .35rem; }
  .topbar__contacto { padding-inline: .65rem; font-size: .67rem; }
  .sound,
  .topbar__toggle { width: 38px; height: 36px; }
}

/* ------------------------------------------------------------ layout */

.view { flex: 1; }

.coming-soon {
  min-height: calc(100svh - var(--topbar-desktop-height));
  display: grid;
  place-items: center;
  padding-block: clamp(2.5rem, 8vh, 7rem);
}
.coming-soon__card {
  position: relative;
  isolation: isolate;
  width: min(100%, 680px);
  overflow: hidden;
  border-color: rgba(111, 251, 255, .42);
  background: linear-gradient(145deg, rgba(10, 42, 57, .92), rgba(4, 18, 26, .92));
  box-shadow: 0 0 0 1px rgba(111, 251, 255, .08) inset, 0 20px 60px rgba(0, 0, 0, .46), 0 0 34px rgba(42, 150, 176, .2);
}
.coming-soon__card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -55% 12% auto;
  height: 150%;
  background: radial-gradient(ellipse, rgba(111, 251, 255, .18), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.coming-soon__card > * { position: relative; z-index: 1; }
.coming-soon__card .eyebrow { margin: 0; }
.coming-soon__card .section-lead {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  text-transform: uppercase;
}
.coming-soon__card .muted { max-width: 46ch; margin: 0 auto; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3.4rem) clamp(.9rem, 3vw, 2rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 .35rem;
  line-height: 1.05;
}
.section-lead { color: var(--text-dim); margin: 0 0 1.8rem; max-width: 62ch; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 .6rem;
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
}

/*
 * El emblema no es una ilustracion mas: es fondo. Va a la derecha, por detras
 * de la tarjeta de precio y con opacidad baja, de modo que se lea como textura
 * y nunca compita con el texto ni con las cifras.
 */
/*
 * Se dimensiona por ALTURA contra el hero, no por ancho: asi nunca sobresale
 * por abajo. En ventanas anchas y bajas el emblema medido por ancho quedaba
 * mas alto que el hero y `overflow: hidden` lo cortaba a filo, dibujando una
 * linea recta de lado a lado justo en la union con la seccion siguiente.
 * El degradado remata el borde por si algun ancho extremo se escapa.
 */
.hero__emblema {
  position: absolute;
  top: 50%;
  right: clamp(-14vw, -6vw, 0px);
  height: 84%;
  width: auto;
  max-width: min(64vw, 720px);
  transform: translateY(-50%);
  opacity: .14;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
}
@media (min-width: 980px) {
  .hero__emblema { opacity: .17; right: clamp(-8vw, -3vw, 0px); }
}

.hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 7vw, 4.4rem) clamp(.9rem, 3vw, 2rem) clamp(2.6rem, 7vw, 4rem);
  display: grid; gap: clamp(1.8rem, 5vw, 3rem);
  position: relative; z-index: 1;
}
.hero__content { min-width: 0; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  line-height: .96;
  text-transform: uppercase;
  margin: 0 0 .55rem;
  text-shadow: 0 4px 26px rgba(2, 12, 18, .85);
}

.hero__edicion {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 2.6vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.25;
  margin: 0 0 1.1rem;
  color: var(--text);
  text-shadow: 0 3px 18px rgba(2, 12, 18, .85);
}
.hero__tagline-logo {
  display: block;
  width: clamp(11rem, 20vw, 17rem);
  height: auto;
  margin: -.15rem 0 1.25rem;
  filter: drop-shadow(0 5px 16px rgba(2, 12, 18, .78));
}

.hero__lead {
  color: var(--text-dim); font-size: 1.03rem; max-width: 50ch; margin: 0 0 1.5rem;
  text-shadow: 0 2px 14px rgba(2, 12, 18, .8);
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.7rem; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(3, 16, 23, .68);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .42rem .9rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.chip strong { color: var(--cyan-bright); font-weight: 700; }
.chip--pending { background: rgba(253, 186, 3, .12); border-color: rgba(253, 186, 3, .4); }

/* ------------------------------------------------------- contador flotante */

.countdown-dock {
  position: fixed;
  left: 50%;
  bottom: max(.85rem, env(safe-area-inset-bottom));
  z-index: 55;
  width: min(650px, calc(100% - 1.4rem));
  transform: translateX(-50%);
}
.countdown-dock__capsule {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.5vw, 1.1rem);
  min-height: 76px;
  padding: .62rem .7rem .62rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(111, 251, 255, .46);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(3, 19, 28, .96), rgba(5, 39, 52, .94) 58%, rgba(17, 47, 48, .96));
  box-shadow: 0 0 0 1px rgba(111, 251, 255, .08) inset, 0 14px 34px rgba(0, 0, 0, .48), 0 0 30px rgba(42, 150, 176, .2);
  backdrop-filter: blur(16px);
}
.countdown-dock__capsule::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80% auto -80% 64%;
  width: 180px;
  background: radial-gradient(circle, rgba(253, 209, 0, .2), transparent 68%);
  pointer-events: none;
}
.countdown-dock__lead {
  display: grid;
  gap: .08rem;
  min-width: 138px;
  padding-right: clamp(.5rem, 1.3vw, .9rem);
  border-right: 1px solid rgba(111, 251, 255, .18);
}
.countdown-dock__eyebrow {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--cyan-bright);
  font-size: .56rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.countdown-dock__eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-bright);
  animation: countdown-pulse 1.8s ease-in-out infinite;
}
.countdown-dock__lead strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .025em;
  line-height: 1.05;
  text-transform: uppercase;
}
.countdown-dock__lead small {
  color: var(--text-faint);
  font-size: .65rem;
  line-height: 1.1;
}
.countdown-dock__panel { flex: 1; min-width: 0; }
.countdown-dock__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: .18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.countdown-dock__units li { min-width: 0; text-align: center; }
.countdown-dock__units b {
  display: block;
  color: var(--cyan-bright);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.8vw, 1.72rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(111, 251, 255, .48);
}
.countdown-dock__units span {
  display: block;
  margin-top: .2rem;
  color: var(--text-faint);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}
.countdown-dock__compact { display: none; }
.countdown-dock__toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(111, 251, 255, .3);
  border-radius: 50%;
  background: rgba(42, 150, 176, .14);
  color: var(--cyan-bright);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.countdown-dock__toggle:hover { background: rgba(42, 150, 176, .3); border-color: var(--cyan-bright); }
.countdown-dock__toggle:active { transform: scale(.92); }
.countdown-dock__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; transition: transform .2s ease; }
.countdown-dock.is-minimized { width: auto; }
.countdown-dock.is-minimized .countdown-dock__capsule {
  min-height: 50px;
  padding: .35rem .4rem .35rem .7rem;
  gap: .45rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .48), 0 0 24px rgba(42, 150, 176, .18);
}
.countdown-dock.is-minimized .countdown-dock__lead { display: none; }
.countdown-dock.is-minimized .countdown-dock__compact { display: inline-flex; align-items: center; gap: .38rem; }
.countdown-dock__bolt { width: 15px; height: 15px; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(253, 209, 0, .5)); }
.countdown-dock__compact strong { color: var(--text); font-family: var(--font-display); font-size: .78rem; letter-spacing: .04em; white-space: nowrap; }
.countdown-dock.is-minimized .countdown-dock__toggle svg { transform: rotate(180deg); }
.countdown-dock:not([hidden]) ~ .footer { padding-bottom: calc(5.85rem + env(safe-area-inset-bottom)); }
@keyframes countdown-pulse {
  0%, 100% { opacity: .65; transform: scale(.84); }
  50% { opacity: 1; transform: scale(1); }
}
@media (max-width: 620px) {
  .countdown-dock { width: min(calc(100% - .9rem), 500px); bottom: max(.55rem, env(safe-area-inset-bottom)); }
  .countdown-dock__capsule { min-height: 62px; gap: .35rem; padding: .5rem .45rem .5rem .7rem; }
  .countdown-dock__lead { min-width: 69px; padding-right: .4rem; }
  .countdown-dock__lead strong, .countdown-dock__lead small { display: none; }
  .countdown-dock__eyebrow { max-width: 60px; font-size: .48rem; line-height: 1.2; }
  .countdown-dock__eyebrow i { width: 5px; height: 5px; }
  .countdown-dock__units { grid-template-columns: repeat(4, minmax(30px, 1fr)); gap: .08rem; }
  .countdown-dock__units b { font-size: clamp(1.02rem, 5.3vw, 1.38rem); }
  .countdown-dock__units span { font-size: .42rem; letter-spacing: .07em; }
  .countdown-dock__toggle { width: 34px; height: 34px; }
  .countdown-dock__toggle svg { width: 18px; height: 18px; }
  .countdown-dock:not([hidden]) ~ .footer { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
}

/* tarjeta de precio */

.price-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg, rgba(0, 52, 76, .9), rgba(4, 20, 28, .96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3.5vw, 1.8rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
}
.price-card__current {
  display: grid;
  gap: .22rem;
  margin: -.15rem 0 1rem;
  padding: .72rem .82rem;
  border: 1px solid rgba(253, 209, 0, .55);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, rgba(253, 209, 0, .18), rgba(253, 209, 0, .035));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 235, 143, .18);
}
.price-card__current-label {
  display: flex;
  align-items: center;
  gap: .42rem;
  color: var(--text-dim);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.1;
  text-transform: uppercase;
}
.price-card__current-label::before {
  content: "";
  width: .45rem;
  height: .45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 .2rem rgba(111, 251, 255, .12), 0 0 .8rem rgba(111, 251, 255, .85);
}
.price-card__stage {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.22rem);
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
}
.price-card__state {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price-card__state i {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .65rem currentColor;
}
.price-card__current.is-upcoming {
  border-color: rgba(111, 251, 255, .5);
  border-left-color: var(--cyan-bright);
  background: linear-gradient(100deg, rgba(42, 150, 176, .2), rgba(42, 150, 176, .035));
}
.price-card__current.is-upcoming .price-card__stage,
.price-card__current.is-upcoming .price-card__state { color: var(--cyan-bright); }
.price-card__current.is-closed {
  border-color: rgba(95, 125, 138, .6);
  border-left-color: var(--text-faint);
  background: linear-gradient(100deg, rgba(95, 125, 138, .18), rgba(95, 125, 138, .03));
}
.price-card__current.is-closed .price-card__stage,
.price-card__current.is-closed .price-card__state { color: var(--text-dim); }
.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 1; margin: 0 0 .25rem; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.price-card__window { color: var(--text-dim); font-size: .88rem; margin: 0 0 1.1rem; }
.price-card__breakdown {
  margin: 0 0 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: .5rem;
}
.price-card__breakdown > div { padding: .4rem .1rem; font-size: .84rem; }
.price-card__breakdown > div:last-child { border-bottom: 0; font-weight: 700; color: var(--gold); }
.price-card__next {
  border-top: 1px solid var(--line);
  padding-top: .9rem; margin-top: .9rem;
  font-size: .82rem; color: var(--text-faint);
}
.price-card__closed { color: var(--warn); font-weight: 600; }

.stage-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.stage-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font-size: .84rem; padding: .48rem .55rem; border: 1px solid transparent;
  border-left: 3px solid transparent; border-radius: 7px;
}
.stage-list .is-current {
  color: var(--text); font-weight: 700;
  border-color: rgba(253, 209, 0, .42); border-left-color: var(--gold);
  background: rgba(253, 209, 0, .1);
  box-shadow: inset 0 1px 0 rgba(255, 235, 143, .1);
}
.stage-list .is-current span,
.stage-list .is-current b { color: var(--gold); }
.stage-list .is-past { color: var(--text-faint); text-decoration: line-through; }
.stage-list b { font-variant-numeric: tabular-nums; }

@media (min-width: 1040px) {
  .hero {
    min-height: calc(100svh - var(--topbar-desktop-height));
  }
  .hero__inner {
    width: 100%;
    min-height: inherit;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding-top: clamp(.75rem, 1.5vh, 1rem);
    padding-bottom: clamp(.75rem, 1.5vh, 1rem);
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 30rem;
  }
  .hero__title { font-size: clamp(3.1rem, 4vw, 4.25rem); }
  .price-card {
    width: 100%;
    max-width: 30rem;
    justify-self: end;
  }
  .price-card__window,
  .price-card__breakdown + .faint { display: none; }
  .price-card__next { display: none; }
  /* El desglose principal deja claro la tarifa; en escritorio se condensa la
     lista para que el Hero completo conserve el primer pliegue. */
  .stage-list li small { display: none; }
  .stage-list::before {
    content: "Todos los totales incluyen tarifa de plataforma.";
    color: var(--text-faint);
    font-size: .66rem;
    line-height: 1.15;
  }
}

/* ------------------------------------------------------------ botones */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 10px;
  padding: .8rem 1.4rem;
  font-size: .92rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  font-family: inherit;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1200; }
.btn--cyan { background: var(--cyan); color: #01141c; }
/* Fondo opaco y borde marcado: sobre el emblema y los rayos, el translucido
   original desaparecia. */
.btn--ghost {
  background: rgba(2, 13, 19, .78);
  border-color: var(--cyan);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}
.btn--ghost:hover:not(:disabled) { border-color: var(--cyan-bright); background: rgba(6, 32, 44, .88); }
.btn--danger { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .5); color: #ffb0b0; }
.btn--sm { padding: .5rem .95rem; font-size: .78rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------ tarjetas */

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.home-categories-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
}
.home-categories-grid .cat--category { height: 100%; }
@media (min-width: 700px) {
  .home-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .home-categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: rgba(8, 29, 40, .68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.card--pad { padding: clamp(1.2rem, 3.5vw, 2rem); }
.card h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .9rem; }

/* ------------------------------------------------- guia de inscripcion */

.registration-guide {
  width: min(760px, calc(100% - 1.4rem));
  max-height: min(720px, calc(100svh - 1.4rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--text);
  border: 1px solid rgba(111, 251, 255, .46);
  border-radius: clamp(16px, 3vw, 24px);
  background: linear-gradient(145deg, #0a2a39, #061923 68%, #092832);
  box-shadow: 0 0 0 1px rgba(111, 251, 255, .08) inset, 0 28px 80px rgba(0, 0, 0, .7), 0 0 42px rgba(42, 150, 176, .2);
}
.registration-guide::backdrop { background: rgba(1, 10, 15, .76); backdrop-filter: blur(8px); }
.registration-guide__surface { position: relative; padding: clamp(1.35rem, 4vw, 2.25rem); }
.registration-guide__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(3, 16, 23, .62);
  color: var(--text-dim);
  cursor: pointer;
}
.registration-guide__close:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }
.registration-guide__close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.registration-guide__lead { max-width: 58ch; margin: 0 2.4rem 1.35rem 0; color: var(--text-dim); }
.registration-guide__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.registration-guide__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: .85rem .9rem;
  border: 1px solid rgba(106, 176, 199, .22);
  border-radius: 12px;
  background: rgba(2, 13, 19, .42);
}
.registration-guide__number {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(111, 251, 255, .42);
  border-radius: 50%;
  color: var(--cyan-bright);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.registration-guide__steps h3 { margin: .05rem 0 .2rem; font-size: .96rem; }
.registration-guide__steps p { margin: 0; color: var(--text-dim); font-size: .82rem; line-height: 1.45; }
.registration-guide__actions { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.registration-guide__actions .btn { min-width: 156px; }
@media (min-width: 620px) {
  .registration-guide__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .registration-guide { width: min(calc(100% - 1rem), 760px); }
  .registration-guide__surface { padding: 1.2rem; }
  .registration-guide__lead { margin-right: 2.6rem; font-size: .88rem; }
  .registration-guide__actions .btn { width: 100%; }
}

/* categoria */

.cat {
  display: flex; flex-direction: column; gap: .75rem;
  background: rgba(8, 29, 40, .68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}
/*
 * flex-wrap + min-width:0: en anchos intermedios el badge de cupos no cabe al
 * lado de "PRINCIPIANTE" y empujaba la pagina fuera de la pantalla.
 */
.cat__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .6rem; flex-wrap: wrap;
}
.cat__head > div { min-width: 0; flex: 1 1 auto; }
.cat__name { overflow-wrap: anywhere; }
.cat__name { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; margin: 0; }
.cat__div { font-size: .74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .12em; }

.meter { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--cyan-bright)); }
.meter__fill.is-tight { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.meter__fill.is-full { background: linear-gradient(90deg, #b64a4a, var(--danger)); }

.cat__stat { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-dim); }
.cat__stat b { color: var(--text); }

/* tarjetas de categoria: el modificador evita afectar comprobantes y fichas */

.cat--category {
  --cat-accent: var(--cyan-bright);
  --cat-rgb: 111, 251, 255;
  position: relative;
  isolation: isolate;
  min-height: 244px;
  gap: .8rem;
  overflow: hidden;
  border-color: rgba(var(--cat-rgb), .32);
  background:
    linear-gradient(145deg, rgba(8, 41, 55, .94), rgba(3, 16, 23, .88)),
    rgba(var(--cat-rgb), .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 34px rgba(0, 0, 0, .28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cat--category::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  top: -96px;
  right: -68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cat-rgb), .24), transparent 70%);
  pointer-events: none;
}
.cat--category:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--cat-rgb), .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 38px rgba(0, 0, 0, .4), 0 0 22px rgba(var(--cat-rgb), .12);
}
.cat--intermedio { --cat-accent: var(--gold); --cat-rgb: 253, 209, 0; }
.cat--avanzado { --cat-accent: #ffb347; --cat-rgb: 255, 179, 71; }
.cat--category .cat__head { align-items: center; flex-wrap: nowrap; }
.cat--category .cat__eyebrow {
  margin: 0 0 .2rem;
  color: var(--cat-accent);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cat--category .cat__name { font-size: 1.22rem; line-height: 1; }
.cat--category .cat__div { margin: .25rem 0 0; color: var(--text-dim); }
.cat__division-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--cat-rgb), .56);
  border-radius: 50%;
  background: rgba(var(--cat-rgb), .11);
  color: var(--cat-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: inset 0 0 14px rgba(var(--cat-rgb), .12);
}
.cat__availability {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label number" "detail number";
  align-items: center;
  column-gap: .75rem;
  padding: .68rem .72rem;
  border: 1px solid rgba(var(--cat-rgb), .26);
  border-radius: var(--radius-sm);
  background: rgba(2, 13, 19, .45);
}
.cat__availability > span {
  grid-area: label;
  color: var(--text-dim);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.cat__availability strong {
  grid-area: number;
  color: var(--cat-accent);
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: .86;
  text-shadow: 0 0 18px rgba(var(--cat-rgb), .45);
  font-variant-numeric: tabular-nums;
}
.cat__availability small { grid-area: detail; color: var(--text-faint); font-size: .72rem; }
.cat__meter-head {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--text-faint);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cat__meter-head b { color: var(--text-dim); font-weight: 700; }
.cat--category .meter { height: 8px; background: rgba(255, 255, 255, .07); }
.cat--category .meter__fill { background: linear-gradient(90deg, rgba(var(--cat-rgb), .46), var(--cat-accent)); }
.cat--category .meter__fill.is-tight { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.cat--category .meter__fill.is-full { background: linear-gradient(90deg, #b64a4a, var(--danger)); }
.cat--category .cat__stat { margin-top: auto; font-size: .72rem; }
.cat--category .cat__stat span:last-child { text-align: right; }

.category-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.category-group {
  --group-accent: var(--cyan);
  --group-rgb: 42, 150, 176;
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid rgba(var(--group-rgb), .28);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(8, 35, 47, .78), rgba(3, 16, 23, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.category-group--intermedio { --group-accent: var(--gold); --group-rgb: 253, 209, 0; }
.category-group--avanzado { --group-accent: #ffb347; --group-rgb: 255, 179, 71; }
.category-group__head { display: grid; grid-template-columns: 1fr auto; column-gap: .7rem; align-items: end; }
.category-group__head .eyebrow { margin: 0 0 .18rem; color: var(--group-accent); }
.category-group__head h2 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.category-group__head > span { color: var(--text-faint); font-size: .7rem; white-space: nowrap; }
.category-group__cards { display: grid; gap: .8rem; }

/* La pieza oficial es la unica fuente visual de Parametros. */
.params-official {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: clamp(.3rem, 1vw, .65rem);
  border: 1px solid rgba(111, 251, 255, .5);
  border-radius: clamp(14px, 2vw, 22px);
  background: linear-gradient(135deg, rgba(12, 39, 51, .9), rgba(3, 16, 23, .76));
  box-shadow: 0 0 0 1px rgba(111, 251, 255, .1) inset, 0 0 30px rgba(42, 150, 176, .28), var(--shadow);
}
.params-official::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% -3% -6%;
  border-radius: inherit;
  background: radial-gradient(ellipse, rgba(42, 150, 176, .22), transparent 68%);
  filter: blur(16px);
}
.params-official img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(9px, 1.6vw, 16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .36);
}

/* ------------------------------------------------------------ badges */

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 999px; padding: .22rem .68rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.badge--ok { background: rgba(53, 201, 138, .14); border-color: rgba(53, 201, 138, .45); color: #7fe6bb; }
.badge--warn { background: rgba(253, 186, 3, .14); border-color: rgba(253, 186, 3, .45); color: #ffd76b; }
.badge--info { background: rgba(42, 150, 176, .16); border-color: var(--line-strong); color: var(--cyan-bright); }
.badge--danger { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .45); color: #ffa8a8; }
.badge--muted { background: rgba(255, 255, 255, .05); border-color: var(--line); color: var(--text-faint); }

/* ------------------------------------------------------------ formularios */

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .35rem; }
.field > label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--text-dim); }
.field__hint { font-size: .75rem; color: var(--text-faint); }
.field__error { font-size: .78rem; color: #ffa8a8; min-height: 0; }
.field.has-error input,
.field.has-error select { border-color: rgba(255, 107, 107, .6); }

/*
 * Validacion en vivo: cada campo se marca al salir de el, no al final del
 * formulario. El ✓ va como fondo del propio input —no como ::after del
 * contenedor— para que siga centrado aunque la etiqueta ocupe dos lineas.
 * La CSP permite img-src data:.
 */
.field.is-valid input,
.field.is-valid select {
  border-color: rgba(53, 201, 138, .55);
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%2335c98a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 16px 16px;
}
.field.has-error input:focus,
.field.has-error select:focus { border-color: rgba(255, 107, 107, .85); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  background: rgba(3, 16, 23, .82);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: .72rem .85rem;
  font-size: 1rem;      /* 16px evita el zoom automatico en iOS */
  font-family: inherit;
}
input::placeholder { color: var(--text-faint); }
select { appearance: none; background-image: none; }
textarea { resize: vertical; min-height: 90px; }

input[type="file"] {
  width: 100%; font-size: .9rem; color: var(--text-dim);
  background: rgba(3, 16, 23, .6); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); padding: .9rem;
}

.check {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start;
  background: rgba(3, 16, 23, .5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--cyan); }
.check__text { font-size: .87rem; }
.check__text small { display: block; color: var(--text-faint); font-size: .75rem; margin-top: .15rem; }
.check.has-error { border-color: rgba(255, 107, 107, .6); }

/* El enlace legal es un control independiente: abrir el PDF no altera el consentimiento. */
.check--consent {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  cursor: default;
}
.check--consent .check__choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  min-width: 0;
  cursor: pointer;
}
.check--consent .field__error { grid-column: 1 / -1; }
.check__document {
  align-self: center;
  color: var(--cyan-bright);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.check__document:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 560px) {
  .check--consent { grid-template-columns: minmax(0, 1fr); }
  .check__document { justify-self: start; margin-left: 2.15rem; }
}

/* pasos */

.steps { display: flex; gap: .4rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.steps li {
  flex: 1; min-width: 0; text-align: center; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-faint);
}
.steps__item {
  display: inline-flex; align-items: center; justify-content: center; gap: .34rem;
  width: 100%; min-height: 37px; padding: .58rem .22rem 0;
  border: 0; border-top: 3px solid var(--line);
  background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.steps__item--link { cursor: pointer; }
.steps__item--link:hover { color: var(--cyan-bright); border-top-color: var(--cyan); }
.steps__item--link:focus-visible {
  outline: 2px solid var(--cyan-bright); outline-offset: 3px; border-radius: 4px;
}
.steps__number { font-size: .62rem; opacity: .72; }
.steps li.is-active { color: var(--cyan-bright); }
.steps li.is-active .steps__item { border-top-color: var(--cyan); }
.steps li.is-done { color: var(--text-dim); }
.steps li.is-done .steps__item { border-top-color: var(--cyan-bright); }

@media (max-width: 430px) {
  .steps { gap: .2rem; }
  .steps li { font-size: .56rem; letter-spacing: .05em; }
  .steps__item { gap: 0; padding-inline: .1rem; }
  .steps__number { display: none; }
}

.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: space-between; }

/* ------------------------------------------------------------ avisos */

.notice {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(42, 150, 176, .1);
  padding: .95rem 1.1rem;
  font-size: .88rem;
}
.notice strong { display: block; margin-bottom: .2rem; }
.notice--warn { background: rgba(253, 186, 3, .1); border-color: rgba(253, 186, 3, .4); }
.notice--danger { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .4); }
.notice--ok { background: rgba(53, 201, 138, .1); border-color: rgba(53, 201, 138, .4); }
.correction-form { border-color: rgba(253, 186, 3, .38); }
.correction-form__fields-label {
  margin: 0; color: var(--text-dim); font-size: .78rem; font-weight: 700;
  letter-spacing: .035em;
}
.correction-form__fields { align-items: start; }
.correction-form__fields .field { min-width: 0; }
.support-channels { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.support-channels__copy { min-width: 0; color: var(--text-dim); }
.support-channels__copy strong { color: var(--text); }
.support-channels__instagram {
  display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-height: 2.4rem;
  padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--cyan-bright); background: rgba(3, 18, 27, .34); font-size: .78rem; font-weight: 700;
  text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.support-channels__instagram:hover { color: var(--ink); border-color: var(--cyan-bright); background: var(--cyan-bright); transform: translateY(-1px); }
.support-channels__instagram svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 560px) {
  .support-channels { grid-template-columns: minmax(0, 1fr); }
  .support-channels__instagram { justify-self: start; }
}

/* ------------------------------------------------------------ datos clave */

.kv { display: grid; gap: .1rem; margin: 0; }
.kv > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem .1rem; border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-dim); margin: 0; }
.kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }

.copy-row { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .36rem;
  min-height: 32px; padding: .34rem .68rem;
  background: rgba(42, 150, 176, .16); border: 1px solid var(--line-strong);
  color: var(--cyan-bright); border-radius: 7px;
  font-size: .68rem; cursor: pointer; font-family: inherit; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(111, 251, 255, .12), 0 5px 14px rgba(0, 0, 0, .22);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.copy-btn::before {
  content: "";
  display: inline-block;
  width: .62rem;
  height: .68rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: -3px 3px 0 -1px currentColor;
}
.copy-btn:hover {
  background: rgba(42, 150, 176, .3); border-color: var(--cyan-bright);
  box-shadow: 0 0 0 1px rgba(111, 251, 255, .16), 0 7px 18px rgba(0, 0, 0, .28);
  transform: translateY(-1px);
}
.copy-btn:active { transform: translateY(1px) scale(.97); }
.copy-btn.is-copying { opacity: .72; pointer-events: none; }
.copy-btn.is-copied {
  background: rgba(53, 201, 138, .18); border-color: rgba(53, 201, 138, .78); color: #a3f2cf;
  box-shadow: 0 0 18px rgba(53, 201, 138, .3);
}
.copy-btn.is-copied::before {
  width: .34rem;
  height: .62rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.copy-btn.is-copy-error { border-color: rgba(255, 107, 107, .72); color: #ffb1b1; }
.copy-btn--code { min-height: 42px; padding-inline: 1rem; font-size: .74rem; }

.code-pill {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  letter-spacing: .08em;
  background: rgba(3, 16, 23, .8);
  border: 1px dashed var(--gold);
  color: var(--gold);
  border-radius: 10px;
  padding: .5rem 1rem;
}

/* ------------------------------------------------------------ tablas */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 640px; }
thead th {
  text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-faint); padding: .7rem .8rem; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap; background: rgba(3, 16, 23, .6);
  position: sticky; top: 0;
}
tbody td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgba(42, 150, 176, .06); }
tbody tr.is-clickable { cursor: pointer; }

.table--params { min-width: 560px; }
.table--params td:first-child { font-weight: 700; color: var(--cyan-bright); white-space: nowrap; }
.table--params td { text-align: center; }
.table--params td:first-child { text-align: left; }

/* ------------------------------------------------------------ admin */

/*
 * minmax(0, 1fr): sin esto, un item de grid usa min-width:auto y la tabla o los
 * <select> de opciones largas estiran toda la columna, sacando la pagina de la
 * pantalla en movil.
 */
.admin { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
.admin__bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: .9rem 1rem; background: rgba(8, 29, 40, .8);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.admin__bar .grow { flex: 1 1 200px; }
.admin__bar input, .admin__bar select { min-width: 0; }
.admin__who { font-size: .8rem; color: var(--text-dim); margin-right: auto; }
.admin__who b { color: var(--text); display: block; }
.admin__tabs {
  display: flex; gap: .45rem; align-items: center; flex-wrap: wrap;
  padding: .35rem; width: fit-content; max-width: 100%;
  background: rgba(3, 16, 23, .7); border: 1px solid var(--line); border-radius: 999px;
}
.admin__tab {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  padding: .58rem .95rem; font: inherit; font-size: .76rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
  background: transparent; transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.admin__tab:hover { color: var(--cyan-bright); background: rgba(42, 150, 176, .14); }
.admin__tab.is-active {
  color: #041218; background: var(--cyan-bright);
  box-shadow: 0 0 18px rgba(111, 251, 255, .25);
}
.admin__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.audit-section { min-width: 0; }
.audit-section .section-head { margin-bottom: 0; }
.audit__filters { align-items: stretch; }
.audit__filters select { flex: 0 1 220px; }
.audit__summary {
  display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-dim); padding: 0 .15rem;
}
.audit-list { display: grid; gap: .8rem; }
.audit-entry {
  position: relative; overflow: hidden; padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(8, 31, 43, .88), rgba(3, 16, 23, .8));
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.audit-entry::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cyan); box-shadow: 0 0 16px rgba(111, 251, 255, .58);
}
.audit-entry__head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.audit-entry__head .eyebrow { margin-bottom: .22rem; font-size: .62rem; }
.audit-entry__head h3 { margin: 0; font-size: 1rem; color: var(--text); }
.audit-entry__head time { flex: none; color: var(--text-faint); font-size: .76rem; text-align: right; }
.audit-entry__meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap; margin: .75rem 0 0;
  font-size: .78rem; color: var(--text-dim);
}
.audit-entry__meta div { display: flex; gap: .35rem; }
.audit-entry__meta dt { color: var(--text-faint); }
.audit-entry__meta dd { margin: 0; }
.audit-entry__reason {
  margin: .8rem 0 0; padding: .7rem .8rem; color: #f3d881; font-size: .84rem;
  background: rgba(253, 186, 3, .08); border-left: 2px solid var(--gold); border-radius: 0 7px 7px 0;
}
.audit-entry__details { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.audit-entry__details summary { cursor: pointer; color: var(--cyan-bright); font-size: .82rem; font-weight: 700; }
.audit-entry__snapshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .7rem; }
.audit-entry__snapshot { min-width: 0; font-size: .72rem; color: var(--text-dim); }
.audit-entry__snapshot b { display: block; color: var(--text); margin-bottom: .25rem; }
.audit-entry__snapshot pre {
  overflow: auto; max-height: 220px; margin: 0; padding: .7rem;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-dim);
  background: rgba(1, 10, 15, .72); border: 1px solid var(--line); border-radius: 7px;
  font: .7rem/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.audit__pager { display: flex; justify-content: flex-end; gap: .6rem; }
@media (max-width: 620px) {
  .admin__tabs { width: 100%; }
  .admin__tab { flex: 1; }
  .audit-entry__head { display: grid; gap: .4rem; }
  .audit-entry__head time { text-align: left; }
  .audit-entry__snapshots { grid-template-columns: minmax(0, 1fr); }
}

.stat-grid {
  display: grid; gap: .8rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 620px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.stat {
  min-width: 0; min-height: 118px;
  display: flex; flex-direction: column; justify-content: space-between; gap: .65rem;
  background: rgba(8, 29, 40, .72); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .95rem 1.1rem;
}
.stat b {
  display: block; min-width: 0; overflow-wrap: anywhere;
  font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.1;
  color: var(--cyan-bright); font-variant-numeric: tabular-nums;
}
.stat span { overflow-wrap: anywhere; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); }
.stat--gold b { color: var(--gold); }
.stat--danger b { color: var(--danger); }

.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 10, 15, .72);
  display: flex; justify-content: flex-end;
}
.drawer__panel {
  width: min(560px, 100%); height: 100%; overflow-y: auto;
  background: #061620; border-left: 1px solid var(--line-strong);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.drawer__close {
  background: none; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; flex: none;
}
.data-correction-admin__fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48rem;
  margin: 0; padding: 0; border: 0;
}
.data-correction-admin__fields .check {
  min-width: 0; padding: .55rem .6rem; gap: .5rem;
  background: rgba(3, 16, 23, .34);
}
.data-correction-admin__fields .check__text { min-width: 0; font-size: .76rem; }
.category-change-admin { border-color: rgba(111, 251, 255, .3); }
@media (max-width: 420px) {
  .data-correction-admin__fields { grid-template-columns: minmax(0, 1fr); }
}

.trail { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.trail li {
  border-left: 2px solid var(--line-strong); padding: .1rem 0 .1rem .8rem;
  font-size: .8rem; color: var(--text-dim);
}
.trail b { color: var(--text); display: block; font-size: .82rem; }
.trail time { color: var(--text-faint); font-size: .72rem; }
.trail em { color: var(--gold); font-style: normal; }

.receipt-frame {
  width: 100%; min-height: 380px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #01090d;
}
.receipt-img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); display: block; }

/* ------------------------------------------------------ piezas para difundir
 *
 * La descarga es publica a proposito: cualquiera puede bajar el flyer y
 * publicarlo, sin inscribirse ni dejar datos. Ese es el punto de una pieza de
 * promocion.
 */

.difundir__piezas {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.difundir__pieza {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(42, 150, 176, .10);
  color: inherit;
  text-decoration: none;
}
.difundir__pieza:hover { border-color: var(--cyan-bright); background: rgba(42, 150, 176, .18); }
.difundir__pieza img {
  width: 74px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.difundir__icono {
  width: 74px; height: 100px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(3, 16, 23, .7);
  color: var(--cyan-bright);
  font-weight: 800; font-size: .82rem; letter-spacing: .1em;
}
.difundir__pieza b { display: block; font-size: .96rem; }
.difundir__pieza small { display: block; margin-top: .25rem; color: var(--text-dim); font-size: .8rem; line-height: 1.45; }
.difundir__acciones { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }

/* El poster entero es un enlace; el flyer no, porque lleva dos botones dentro
   y un enlace no puede contener botones. */
a.difundir__pieza { cursor: pointer; }

/* ------------------------------------------------------------ avisos push */

.avisos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(42, 150, 176, .10);
}
.avisos__texto { display: grid; gap: .18rem; min-width: min(100%, 15rem); flex: 1 1 15rem; }
.avisos__texto b { font-size: .92rem; }
.avisos__texto span { font-size: .82rem; color: var(--text-dim); line-height: 1.45; }

/* Cambio de contrasena del panel: plegado, salvo cuando la clave sigue siendo
 * la provisional del instalador y hay que empujar a cambiarla. */
.admin__clave { margin-bottom: 1rem; }
.admin__clave > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cyan-bright);
  font-size: .9rem;
}
.admin__clave > summary::marker { color: var(--cyan); }
.admin__clave[open] > summary { margin-bottom: .9rem; }

/* ------------------------------------------------------------ instalar la PWA
 *
 * Hoja inferior en vez de modal a pantalla completa: informa sin secuestrar la
 * pagina, y quien lo ignore puede seguir navegando. Solo se muestra en movil,
 * y eso lo decide el JavaScript, no una media query: tambien depende de si la
 * app ya esta instalada.
 */

.instalar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 0 .7rem calc(.7rem + env(safe-area-inset-bottom));
  animation: instalar-entra .32s cubic-bezier(.2, .9, .3, 1);
}

@keyframes instalar-entra {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.instalar__panel {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 1.2rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, rgba(0, 52, 76, .96), rgba(4, 20, 28, .98));
  box-shadow: 0 -10px 44px rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px);
  text-align: center;
}

.instalar__cerrar {
  position: absolute; top: .4rem; right: .5rem;
  width: 34px; height: 34px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-dim); font-size: 1.5rem; line-height: 1;
}

.instalar__logo { width: 96px; height: auto; margin: 0 auto .7rem; display: block; }

.instalar__titulo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 .35rem;
}

.instalar__texto {
  margin: 0;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--text-dim);
  text-wrap: balance;
}

/* Que navegador se detecto y que implica. Es la linea que decide si la
 * persona puede instalar aqui o tiene que cambiar de navegador. */
.instalar__nota {
  margin: .7rem 0 0;
  padding: .5rem .7rem;
  border-radius: calc(var(--radius) / 2);
  border: 1px solid rgba(111, 251, 255, .22);
  background: rgba(42, 150, 176, .12);
  color: var(--cyan-bright);
  font-size: .8rem;
  line-height: 1.4;
}

.instalar__pasos {
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
  text-align: left;
  display: grid;
  gap: .55rem;
}

/*
 * El texto de cada paso va dentro de un <span>: en una rejilla, cada nodo de
 * texto y cada <b> sueltos cuentan como celda propia y el paso se partia en
 * varias filas.
 */
.instalar__pasos li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--text);
}
.instalar__pasos li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(42, 150, 176, .18);
  border: 1px solid var(--line-strong);
  color: var(--cyan-bright);
  font-size: .72rem;
  font-weight: 700;
  /* Centra el numero con la primera linea del texto, no con todo el bloque. */
  margin-top: -1px;
}
.instalar__pasos b { color: var(--cyan-bright); font-weight: 700; }

.instalar__acciones {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Salida discreta para quien ya la tiene instalada y el navegador no lo dice. */
.instalar__ya {
  display: block;
  margin: .7rem auto 0;
  background: none;
  border: 0;
  padding: .2rem;
  color: var(--text-faint);
  font-size: .76rem;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.instalar__acciones .btn { flex: 1 1 auto; min-width: 8.5rem; justify-content: center; }

/* ------------------------------------------------------------ toasts */

.toasts {
  position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 90; display: grid; gap: .5rem; width: min(440px, calc(100% - 1.6rem));
}
.toast {
  background: #08222e; border: 1px solid var(--line-strong);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  font-size: .87rem; box-shadow: var(--shadow);
  animation: toast-in .2s ease;
}
.toast--ok { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--danger); }
.toast--warn { border-left-color: var(--warn); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); margin-top: 3rem; background: rgba(3, 13, 19, .78); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.45rem, 3vw, 2rem) clamp(.9rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) max-content;
  grid-template-areas: "brand meta utility";
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.footer__brand { grid-area: brand; display: grid; justify-items: start; }
.footer__brand-link { display: block; line-height: 0; border-radius: 5px; }
.footer__logo { display: block; width: 120px; opacity: .72; filter: brightness(0) invert(1); transition: opacity .2s ease, filter .2s ease; }
.footer__brand-link:hover .footer__logo { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(111, 251, 255, .25)); }
.footer__meta { grid-area: meta; min-width: 0; display: grid; gap: .28rem; font-size: .84rem; color: var(--text-dim); }
.footer__meta p { margin: 0; }
.footer__event { color: var(--text-dim); font-weight: 650; }
.footer__note { max-width: 47rem; color: var(--text-faint); font-size: .78rem; line-height: 1.5; }
.footer__utility {
  grid-area: utility; justify-self: end; display: grid; grid-template-columns: auto auto; align-items: center;
  gap: 1rem; padding-left: clamp(.9rem, 2vw, 1.35rem); border-left: 1px solid var(--line);
}
.footer__staff {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.05rem;
  padding: .35rem .6rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text-faint); font-size: .75rem; text-decoration: none; white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.footer__staff:hover { color: var(--cyan-bright); border-color: var(--line); background: rgba(42, 150, 176, .1); }
.footer__sualab {
  display: inline-flex; flex-direction: column; align-items: center; gap: .22rem; width: 74px;
  color: var(--text-faint); font-size: .63rem; font-weight: 700; letter-spacing: .09em;
  line-height: 1.1; text-align: center; text-decoration: none; text-transform: uppercase;
}
.footer__sualab > span { display: block; width: 100%; }
.footer__sualab img { display: block; width: 74px; height: auto; opacity: .75; transition: opacity .2s ease, filter .2s ease; }
.footer__sualab:hover { color: var(--cyan-bright); }
.footer__sualab:hover img { opacity: 1; filter: drop-shadow(0 0 7px rgba(88, 239, 246, .35)); }
@media (max-width: 780px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "brand utility" "meta meta";
    align-items: start;
  }
  .footer__utility { align-self: center; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "meta" "utility"; gap: 1.1rem; }
  .footer__brand { grid-template-columns: auto auto; align-items: center; column-gap: .85rem; }
  .footer__utility { justify-self: start; padding: .9rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

/* ------------------------------------------------------------ utilidades */

.stack { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.stack--sm { gap: .55rem; }
.stack--lg { gap: 1.8rem; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: .8rem; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--cyan-bright);
  animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 2.6rem 1rem; color: var(--text-faint); }

/* ============================================================ capa de tormenta
 *
 * Todo lo de esta seccion es decorativo. Vive en capas fijas con
 * pointer-events:none por debajo del contenido, asi que no puede tapar ni
 * interceptar un formulario, una tabla o un boton del panel.
 * Solo se animan transform y opacity para que el trabajo lo haga el compositor.
 */

.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint style;
}

/* El contenido real siempre por encima de la tormenta. */
.view, .footer { position: relative; z-index: 1; }

/* ---------------- rayos de ambiente ----------------
 *
 * Las piezas son los SVG de ADJUNTOS/TRUENOS, servidos como <img>. Cargarlos
 * como imagen y no en linea es deliberado: cada archivo trae su propio
 * <style> y sus propios ids de degradado (.cls-1, radial-gradient-9…), que
 * chocarian entre si al inlinearlos, y ademas un <style> en linea lo bloquea
 * la CSP de la pagina. Como imagen cada SVG vive en su propio documento, se
 * descarga una sola vez y se reutiliza en todas las instancias.
 *
 * El envoltorio se encarga de colocar y voltear; la imagen, de animarse.
 * Asi el transform de posicion no pelea con el de la animacion.
 */

/*
 * El pivote va arriba al centro: es el punto por donde el rayo entra a la
 * pantalla. Girando sobre el, el trazo siempre queda apuntando al centro
 * venga del borde que venga.
 */
.fx-bolt {
  position: absolute;
  top: var(--y);
  left: var(--x);
  /* Ancho explicito: ver la nota de RATIOS en fx.js. */
  width: var(--w);
  height: var(--h);
  transform-origin: 50% 0;
  transform: translateX(-50%) rotate(var(--rot, 0deg)) scaleX(var(--flip, 1));
}

.fx-bolt__img {
  display: block;
  height: 100%;
  width: 100%;
  opacity: 0;
  /* El arte ya trae su resplandor: en screen el negro desaparece y solo suma luz. */
  mix-blend-mode: screen;
  will-change: opacity, transform;
  animation: fx-strike var(--dur) linear var(--delay) infinite;
}

/* Los dorados van apagados a proposito: acompañan, no compiten. */
.fx-bolt--gold .fx-bolt__img {
  filter: hue-rotate(-142deg) saturate(1.2) brightness(1.04);
}

@keyframes fx-strike {
  0%, 88%, 100% { opacity: 0; transform: scaleY(.97); }
  88.6% { opacity: var(--peak); transform: scaleY(1); }
  90% { opacity: calc(var(--peak) * .18); }
  91.4% { opacity: var(--peak); }
  92.6% { opacity: calc(var(--peak) * .5); }
  94% { opacity: calc(var(--peak) * .85); }
  97% { opacity: 0; transform: scaleY(1.02); }
}

.fx-paused .fx-bolt__img,
.fx-paused .fx-burst__img { animation-play-state: paused; }

/* ---------------- descarga desde el punto de click ---------------- */

.fx-burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
}

.fx-burst__img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  /* T5 mide 237x243: se declara la proporcion en vez de dejarla deducir. */
  aspect-ratio: 237 / 243;
  height: auto;
  /*
   * El contenedor del estallido mide 0x0 (solo marca el punto del click), y el
   * `img { max-width: 100% }` del reset lo tomaba como limite: la imagen salia
   * de cero pixeles y no se veia nunca.
   */
  max-width: none;
  margin: 0;
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(.15);
  opacity: 0;
  mix-blend-mode: screen;
  will-change: opacity, transform;
  animation: fx-burst-in 720ms cubic-bezier(.14, .8, .28, 1) forwards;
}

/* Golpe de luz en el punto exacto del toque. */
.fx-burst__flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22vmax;
  height: 22vmax;
  margin: -11vmax 0 0 -11vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(111, 251, 255, .18) 34%, transparent 66%);
  opacity: 0;
  will-change: transform, opacity;
  animation: fx-flash 560ms cubic-bezier(.18, .8, .3, 1) forwards;
}

/* Mismo criterio que los brazos: el nucleo acompaña, no deslumbra. */
@keyframes fx-burst-in {
  0% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(.15); opacity: 0; }
  12% { opacity: .5; }
  22% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(.92); opacity: .42; }
  30% { opacity: .2; }
  40% { opacity: .48; }
  100% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.18); opacity: 0; }
}

@keyframes fx-flash {
  0% { transform: scale(.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/*
 * Rayos que salen disparados del puntero. Son las mismas piezas del cielo,
 * pivotando en el punto del click y en direcciones al azar.
 */
.fx-ray {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ancho);
  height: var(--len);
  transform-origin: 50% 0;
  transform: translateX(-50%) rotate(var(--rot)) scaleX(var(--flip, 1));
}

.fx-ray__img {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 50% 0;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: opacity, transform;
  /*
   * La mascara difumina el arranque y la punta. Sin ella se ve el borde recto
   * donde empieza el vector, justo en el punto del click, y delata el recorte.
   */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 68%, transparent 100%);
  animation: fx-ray-out 700ms cubic-bezier(.12, .78, .3, 1) var(--ray-delay, 0ms) forwards;
}

/* Techo de opacidad bajo: a plena intensidad el detalle del vector se comia
   la pantalla y tapaba el contenido. */
@keyframes fx-ray-out {
  0% { opacity: 0; transform: scaleY(.2); }
  10% { opacity: .34; transform: scaleY(.62); }
  26% { opacity: .16; }
  42% { opacity: .42; transform: scaleY(1); }
  60% { opacity: .26; }
  100% { opacity: 0; transform: scaleY(1.08); }
}

/* ---------------- pantalla de carga ---------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(125% 95% at 50% 38%, #0b2a3a, #05121a 68%);
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader.is-gone { opacity: 0; visibility: hidden; }

.preloader__sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/*
 * Ancho propio: sin el, el contenedor lo dimensionaba la barra de carga y el
 * max-width:100% del reset recortaba el logo.
 */
.preloader__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  padding: 1.5rem;
  width: min(92vw, 470px);
  text-align: center;
}

.preloader__halo {
  position: absolute;
  left: 50%; top: 42%;
  width: min(84vw, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 150, 176, .34), transparent 62%);
  animation: fx-halo 2.6s ease-in-out infinite;
}

.preloader__logo {
  position: relative;
  width: min(74vw, 390px);
  display: block;
  filter: drop-shadow(0 0 26px rgba(42, 150, 176, .55));
  animation: fx-logo-in 1.15s cubic-bezier(.16, .9, .24, 1) both;
}

.preloader__bar {
  width: min(56vw, 220px);
  height: 3px;
  border-radius: 99px;
  background: rgba(42, 150, 176, .22);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright), var(--gold));
  animation: fx-bar 1.15s ease-in-out infinite;
}

@keyframes fx-logo-in {
  0% { opacity: 0; transform: scale(.82) translateY(14px); }
  55% { opacity: 1; }
  70% { transform: scale(1.03) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fx-halo {
  0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.94); }
  50% { opacity: .95; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes fx-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ---------------- puntero: el martillo de Thor ----------------
 *
 * El vector es ADJUNTOS/puntero.svg recoloreado: cuerpo blanco y contorno en
 * tinta, para que se lea igual sobre el fondo oscuro que sobre un boton dorado.
 * Va como archivo y no como data URI porque son 20 KB: en archivo se descarga
 * y se cachea una sola vez en lugar de viajar dentro del CSS.
 *
 * Solo en dispositivos con puntero fino: en tactil no existe cursor.
 * El punto activo (20 2) esta arriba al centro del dibujo; si conviene moverlo,
 * son esos dos numeros.
 */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("/assets/puntero.svg") 21 2, auto; }

  a, button, summary, label, select, [role="button"], .is-clickable, .copy-btn,
  input[type="radio"], input[type="checkbox"], input[type="file"] {
    cursor: url("/assets/puntero.svg") 21 2, pointer;
  }

  input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
  input[type="number"], input[type="password"], input[type="search"], textarea {
    cursor: text;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fx-layer { display: none; }
}
