/* ─────────────────────────────────────────────
   Gender Reveal · Alexei & Laura
   Paleta equilibrada: rosa ↔ lila ↔ azul
   ───────────────────────────────────────────── */

/* Tipografías alojadas en la propia web (sin depender de Google Fonts) */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/caveat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/caveat-latin-700-normal.woff2") format("woff2"); }

:root {
  --rosa-50: #fff1f6;
  --rosa-100: #ffdbe9;
  --rosa-200: #ffc0d8;
  --rosa-400: #f47aa9;
  --rosa-600: #d54683;
  --rosa-700: #b8336d;

  --azul-50: #eef7ff;
  --azul-100: #d6ecff;
  --azul-200: #b5dcff;
  --azul-400: #5eaef2;
  --azul-600: #2b7bcc;
  --azul-700: #1f66b0;

  --lila-50: #f5f0ff;
  --lila-100: #ebe2ff;
  --lila-400: #a58be8;
  --lila-600: #7658cc;

  --amarillo: #ffcf5c;
  --amarillo-100: #fff4d1;
  --menta-100: #dcf7ec;

  --crema: #fffaf6;
  --blanco: #ffffff;
  --tinta: #3b2d4f;
  --tinta-suave: #6d6182;
  --borde: #f0e6f0;

  --sombra-s: 0 4px 14px -6px rgba(88, 56, 120, .25);
  --sombra-m: 0 14px 34px -16px rgba(88, 56, 120, .35);
  --sombra-l: 0 24px 60px -24px rgba(88, 56, 120, .45);

  --radio: 22px;
  --radio-s: 14px;
  --fuente-titulos: "Fredoka", "Nunito", system-ui, sans-serif;
  --fuente-texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fuente-mano: "Caveat", "Comic Sans MS", cursive;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--fuente-titulos); line-height: 1.1; margin: 0; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

/* Sección de nombres: oculta salvo que el panel la active (body.con-nombres) */
body:not(.con-nombres) [data-solo-nombres],
body.con-nombres [data-sin-nombres] { display: none !important; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.saltar:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lila-400); outline-offset: 3px; border-radius: 10px; }

/* ───────── Botones ───────── */
.boton {
  --bg: var(--tinta);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 0; border-radius: 999px;
  background: var(--bg); color: #fff;
  font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sombra-s);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.boton:hover { transform: translateY(-2px); box-shadow: var(--sombra-m); }
.boton:active { transform: translateY(0) scale(.98); }
.boton[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.boton--rosa { --bg: linear-gradient(135deg, #e3609a, var(--rosa-700)); }
.boton--azul { --bg: linear-gradient(135deg, #4693e0, var(--azul-700)); }
.boton--lila { --bg: linear-gradient(135deg, #8f72dc, var(--lila-600)); }
.boton--blanco { --bg: #fff; color: var(--tinta); }
.boton--suave { --bg: var(--lila-50); color: var(--tinta); box-shadow: none; }

/* ───────── Barra superior ───────── */
.barra {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 246, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(240, 230, 240, .8);
}
.barra__interior {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px;
}
.marca {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.35rem; text-decoration: none;
}
.marca__a { color: var(--azul-600); }
.marca__l { color: var(--rosa-600); }
.marca__corazon {
  width: 16px; height: 16px; margin: 0 3px;
  background: linear-gradient(135deg, var(--azul-400), var(--rosa-400));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.4 8.5 2.3 4.5 6.1 4.5c2.2 0 3.9 1.3 5.9 3.6 2-2.3 3.7-3.6 5.9-3.6 3.8 0 5.7 4 4.1 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.4 8.5 2.3 4.5 6.1 4.5c2.2 0 3.9 1.3 5.9 3.6 2-2.3 3.7-3.6 5.9-3.6 3.8 0 5.7 4 4.1 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.barra__nav { display: none; gap: 4px; margin-left: 8px; }
.barra__nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--tinta-suave);
  transition: background .2s, color .2s;
}
.barra__nav a:hover { background: var(--lila-50); color: var(--tinta); }
.invitado {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; min-height: 42px;
  border: 1px solid var(--borde); border-radius: 999px; background: #fff; cursor: pointer;
  font-weight: 700; box-shadow: var(--sombra-s); max-width: 60vw;
}
.invitado__avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-family: var(--fuente-titulos); font-weight: 600;
  background: linear-gradient(135deg, var(--azul-400), var(--rosa-400));
}
.invitado__nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 720px) { .barra__nav { display: flex; } }

/* ───────── Portada ───────── */
.portada {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 16px 120px;
  background:
    radial-gradient(60% 70% at 8% 18%, var(--rosa-100) 0%, transparent 70%),
    radial-gradient(60% 70% at 92% 22%, var(--azul-100) 0%, transparent 70%),
    radial-gradient(50% 60% at 50% 100%, var(--lila-100) 0%, transparent 75%),
    linear-gradient(110deg, var(--rosa-50) 0%, #fff8fb 45%, #f6fbff 55%, var(--azul-50) 100%);
  transition: background 1s ease;
}
body[data-revelado="nina"] .portada {
  background:
    radial-gradient(70% 80% at 20% 20%, var(--rosa-200) 0%, transparent 70%),
    radial-gradient(70% 80% at 80% 30%, var(--rosa-100) 0%, transparent 70%),
    linear-gradient(110deg, var(--rosa-50), #fff6fa);
}
body[data-revelado="nino"] .portada {
  background:
    radial-gradient(70% 80% at 20% 20%, var(--azul-100) 0%, transparent 70%),
    radial-gradient(70% 80% at 80% 30%, var(--azul-200) 0%, transparent 70%),
    linear-gradient(110deg, #f6fbff, var(--azul-50));
}

.portada__contenido {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}

.pareja {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.75);
  font-family: var(--fuente-mano); font-weight: 700; font-size: 1.7rem; line-height: 1;
  box-shadow: var(--sombra-s);
}
.pareja span:first-child { color: var(--azul-700); }
.pareja span:last-child { color: var(--rosa-700); }
.pareja__corazon { width: 20px; height: 20px; color: var(--rosa-400); animation: latido 1.6s ease-in-out infinite; }

.titulo {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1em .28em;
  font-size: clamp(3.1rem, 13vw, 6.6rem); font-weight: 700; letter-spacing: -.01em;
}
.titulo__nino { color: var(--azul-600); text-shadow: 0 6px 0 var(--azul-100); }
.titulo__nina { color: var(--rosa-600); text-shadow: 0 6px 0 var(--rosa-100); }
.titulo__o { color: var(--lila-600); font-size: .62em; font-weight: 500; }

.portada__texto { max-width: 560px; font-size: 1.12rem; color: var(--tinta-suave); }

.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.cifras {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  color: var(--tinta-suave); font-weight: 600;
}
.cifras strong { font-family: var(--fuente-titulos); font-size: 1.25rem; color: var(--tinta); margin-right: 4px; }

/* Cuenta atrás */
.cuenta {
  width: 100%; max-width: 520px;
  padding: 18px 18px 16px; border-radius: var(--radio);
  background: rgba(255,255,255,.86); box-shadow: var(--sombra-m);
  border: 1px solid rgba(255,255,255,.9);
}
.cuenta__titulo { font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.1rem; }
.cuenta__cajas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cuenta__caja {
  padding: 10px 4px 8px; border-radius: var(--radio-s);
  background: linear-gradient(160deg, var(--rosa-50), var(--lila-50) 50%, var(--azul-50));
  display: flex; flex-direction: column; align-items: center;
}
.cuenta__caja span {
  font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1;
  background: linear-gradient(135deg, var(--azul-600), var(--lila-600), var(--rosa-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cuenta__caja small { margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: .06em; }
.cuenta__fecha { margin-top: 10px; font-size: .92rem; color: var(--tinta-suave); }
.cuenta__fecha:empty { display: none; }

.resultado-portada {
  width: 100%; max-width: 520px; padding: 22px; border-radius: var(--radio);
  color: #fff; box-shadow: var(--sombra-l);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: aparecer .6s ease both;
}
.resultado-portada--nina { background: linear-gradient(135deg, var(--rosa-400), var(--rosa-700)); }
.resultado-portada--nino { background: linear-gradient(135deg, var(--azul-400), var(--azul-700)); }
.resultado-portada__pre { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; opacity: .9; }
.resultado-portada__texto { font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1; }

/* Decoración: globos y chispas */
.portada__decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.globo { position: absolute; width: 64px; height: auto; filter: drop-shadow(0 10px 12px rgba(80,50,110,.12)); animation: flotar 7s ease-in-out infinite; }
.globo--r1 { color: var(--rosa-400); left: 4%; top: 14%; width: 70px; }
.globo--r2 { color: var(--rosa-200); left: 13%; top: 52%; width: 50px; animation-delay: -2s; animation-duration: 8s; }
.globo--r3 { color: #ff9fc5; left: 2%; top: 72%; width: 42px; animation-delay: -4s; }
.globo--a1 { color: var(--azul-400); right: 5%; top: 12%; width: 74px; animation-delay: -1s; }
.globo--a2 { color: var(--azul-200); right: 14%; top: 50%; width: 52px; animation-delay: -3s; animation-duration: 8.5s; }
.globo--a3 { color: #86c4ff; right: 3%; top: 70%; width: 44px; animation-delay: -5s; }
@media (max-width: 719px) {
  .globo--r2, .globo--a2 { display: none; }
  .globo--r1 { left: -10px; top: 3%; width: 54px; }
  .globo--a1 { right: -10px; top: 4%; width: 56px; }
  .globo--r3 { left: -12px; top: 60%; }
  .globo--a3 { right: -12px; top: 64%; }
}
.chispa {
  position: absolute; width: 14px; height: 14px; background: var(--amarillo);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: brillar 2.8s ease-in-out infinite;
}
.chispa--1 { left: 22%; top: 10%; }
.chispa--2 { right: 24%; top: 18%; animation-delay: -.8s; width: 10px; height: 10px; }
.chispa--3 { left: 9%; top: 40%; animation-delay: -1.6s; background: var(--lila-400); }
.chispa--4 { right: 9%; top: 38%; animation-delay: -2.2s; width: 11px; height: 11px; }
.chispa--5 { left: 30%; bottom: 22%; animation-delay: -1.2s; background: var(--rosa-200); }

.ola { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 2; fill: var(--crema); }

/* ───────── Secciones ───────── */
.seccion { max-width: 1120px; margin: 0 auto; padding: 56px 16px 40px; }
.seccion__cabecera { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.antetitulo {
  display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px;
  background: var(--amarillo-100); color: #8a5a00;
  font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.seccion h2 { font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 700; }
.seccion__desc { margin-top: 10px; color: var(--tinta-suave); font-size: 1.05rem; }

.tarjeta {
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra-m);
  border: 1px solid var(--borde);
}

.vacio { color: var(--tinta-suave); font-style: italic; font-size: .95rem; padding: 6px 2px; }
.vacio--grande { text-align: center; padding: 24px 12px; font-size: 1.05rem; }

/* ───────── Votación ───────── */
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; margin: 0 auto; }
.opcion {
  --c50: var(--rosa-50); --c100: var(--rosa-100); --c400: var(--rosa-400); --c600: var(--rosa-600); --c700: var(--rosa-700);
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 12px 18px; border-radius: 26px;
  border: 3px solid var(--c100);
  background: linear-gradient(170deg, #fff 0%, var(--c50) 60%, var(--c100) 100%);
  box-shadow: var(--sombra-m);
  transition: transform .2s ease, box-shadow .2s ease, background .3s ease, border-color .3s ease;
}
.opcion--nino { --c50: var(--azul-50); --c100: var(--azul-100); --c400: var(--azul-400); --c600: var(--azul-600); --c700: var(--azul-700); }
.opcion:hover:not([disabled]) { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--sombra-l); }
.opcion--nino:hover:not([disabled]) { transform: translateY(-4px) rotate(1deg); }
.opcion__icono { width: clamp(70px, 20vw, 110px); height: auto; color: var(--c400); transition: transform .3s ease, color .3s; }
.opcion:hover .opcion__icono { transform: scale(1.06); }
.opcion__nombre { font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.7rem, 6vw, 2.3rem); color: var(--c700); line-height: 1; }
.opcion__cuenta { font-weight: 700; color: var(--tinta-suave); font-size: .95rem; }
.opcion__cuenta strong { font-family: var(--fuente-titulos); font-size: 1.15rem; color: var(--tinta); }
.opcion__marca {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0;
  padding: 3px 12px; border-radius: 999px; background: var(--amarillo); color: #5c3b00;
  font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), opacity .2s;
}
.opcion[aria-pressed="true"] {
  border-color: var(--c600);
  background: linear-gradient(160deg, var(--c400), var(--c700));
}
.opcion[aria-pressed="true"] .opcion__icono { color: #fff; }
.opcion[aria-pressed="true"] .opcion__nombre,
.opcion[aria-pressed="true"] .opcion__cuenta,
.opcion[aria-pressed="true"] .opcion__cuenta strong { color: #fff; }
.opcion[aria-pressed="true"] .opcion__marca { opacity: 1; transform: translateX(-50%) scale(1); }
.opcion[disabled] { cursor: default; }
.opcion.ganadora { box-shadow: 0 0 0 6px var(--amarillo), var(--sombra-l); }

.marcador { max-width: 720px; margin: 22px auto 0; }
.marcador__barra {
  display: flex; height: 46px; border-radius: 999px; overflow: hidden;
  background: var(--lila-100); box-shadow: inset 0 2px 6px rgba(80,50,110,.12);
}
.marcador__nina, .marcador__nino {
  display: flex; align-items: center; min-width: 0;
  color: #fff; font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.05rem;
  transition: width .8s cubic-bezier(.2,.9,.2,1);
}
.marcador__nina { justify-content: flex-start; padding-left: 16px; background: linear-gradient(90deg, var(--rosa-700), var(--rosa-400)); }
.marcador__nino { justify-content: flex-end; padding-right: 16px; background: linear-gradient(90deg, var(--azul-400), var(--azul-700)); }
.marcador__nina span, .marcador__nino span { white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.18); }

.aciertos {
  max-width: 720px; margin: 16px auto 0; padding: 12px 16px; border-radius: var(--radio-s);
  background: var(--amarillo-100); text-align: center; font-weight: 700;
}

.equipos { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 720px) { .equipos { grid-template-columns: 1fr 1fr; } }
.equipo { padding: 18px; border-radius: var(--radio); border: 2px dashed var(--rosa-200); background: var(--rosa-50); }
.equipo--nino { border-color: var(--azul-200); background: var(--azul-50); }
.equipo h3 { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.equipo--nina h3 { color: var(--rosa-700); }
.equipo--nino h3 { color: var(--azul-700); }
.contador {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: #fff; font-size: .95rem; color: var(--tinta);
}

.fichas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ficha {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px; border-radius: 999px; background: #fff;
  box-shadow: var(--sombra-s); font-weight: 700; font-size: .95rem; max-width: 100%;
}
.ficha__avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-family: var(--fuente-titulos); font-weight: 600; font-size: .95rem;
}
.ficha--nina .ficha__avatar { background: linear-gradient(135deg, var(--rosa-400), var(--rosa-700)); }
.ficha--nino .ficha__avatar { background: linear-gradient(135deg, var(--azul-400), var(--azul-700)); }
.ficha__nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha--yo { outline: 2px solid var(--amarillo); }
.ficha__estrella { color: #e0a100; font-size: 1rem; }

/* ───────── Formularios ───────── */
.formulario { max-width: 640px; margin: 0 auto 34px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.etiqueta { font-weight: 800; font-size: .9rem; letter-spacing: .02em; color: var(--tinta); }
.formulario textarea,
.formulario input[type="text"],
.dialogo input[type="text"] {
  width: 100%; padding: 14px 16px; border-radius: var(--radio-s);
  border: 2px solid var(--borde); background: var(--crema); font-size: 1.05rem;
  transition: border-color .2s, background .2s;
}
.formulario textarea { resize: vertical; min-height: 96px; font-family: var(--fuente-mano); font-size: 1.45rem; line-height: 1.3; }
.formulario textarea:focus, .formulario input:focus, .dialogo input:focus { outline: none; border-color: var(--lila-400); background: #fff; }
.formulario__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contador-texto { color: var(--tinta-suave); font-size: .88rem; font-weight: 600; }
.trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.segmentos { border: 0; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmentos legend { margin-bottom: 8px; padding: 0; }
.segmento { position: relative; }
.segmento input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmento span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px;
  border-radius: var(--radio-s); border: 2px solid var(--borde); background: var(--crema);
  font-weight: 800; text-align: center; transition: all .2s;
}
.segmento--nina input:checked + span { background: var(--rosa-100); border-color: var(--rosa-400); color: var(--rosa-700); }
.segmento--nino input:checked + span { background: var(--azul-100); border-color: var(--azul-400); color: var(--azul-700); }
.segmento--ambos input:checked + span { background: var(--lila-100); border-color: var(--lila-400); color: var(--lila-600); }
.segmento input:focus-visible + span { outline: 3px solid var(--lila-400); outline-offset: 2px; }

/* ───────── Álbum de deseos ───────── */
.seccion--deseos { position: relative; }
.album { columns: 1; column-gap: 22px; padding: 10px 4px; }
@media (min-width: 600px) { .album { columns: 2; } }
@media (min-width: 960px) { .album { columns: 3; } }
.nota {
  --giro: 0deg; --fondo: var(--rosa-100); --cinta: rgba(255, 207, 92, .7);
  position: relative; break-inside: avoid; display: inline-block; width: 100%;
  margin: 18px 0 14px; padding: 26px 20px 16px;
  background: var(--fondo); border-radius: 6px 6px 18px 6px;
  box-shadow: 0 12px 22px -14px rgba(80,50,110,.45), 0 2px 0 rgba(255,255,255,.6) inset;
  transform: rotate(var(--giro));
  transition: transform .25s ease;
}
.nota:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.nota::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, var(--cinta) 0 8px, rgba(255,255,255,.45) 8px 14px);
  border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.nota--rosa { --fondo: var(--rosa-100); --cinta: rgba(94, 174, 242, .55); }
.nota--azul { --fondo: var(--azul-100); --cinta: rgba(244, 122, 169, .55); }
.nota--lila { --fondo: var(--lila-100); --cinta: rgba(255, 207, 92, .75); }
.nota--amarillo { --fondo: var(--amarillo-100); --cinta: rgba(165, 139, 232, .55); }
.nota--menta { --fondo: var(--menta-100); --cinta: rgba(244, 122, 169, .5); }
.nota__texto { font-family: var(--fuente-mano); font-size: 1.6rem; line-height: 1.22; white-space: pre-line; overflow-wrap: anywhere; color: #2f2342; }
.nota__autor { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nota__autor strong { font-weight: 800; font-size: .95rem; overflow-wrap: anywhere; }
.nota__autor time { font-size: .8rem; color: var(--tinta-suave); white-space: nowrap; }

/* ───────── Nombres ───────── */
.grupos-nombres { display: grid; gap: 16px; }
@media (min-width: 900px) { .grupos-nombres { grid-template-columns: repeat(3, 1fr); } }
.grupo-nombres { padding: 18px; border-radius: var(--radio); background: #fff; box-shadow: var(--sombra-m); border-top: 6px solid var(--rosa-400); }
.grupo-nombres--nino { border-top-color: var(--azul-400); }
.grupo-nombres--ambos { border-top-color: var(--lila-400); }
.grupo-nombres h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.grupo-nombres--nina h3 { color: var(--rosa-700); }
.grupo-nombres--nino h3 { color: var(--azul-700); }
.grupo-nombres--ambos h3 { color: var(--lila-600); }
.lista-nombres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.propuesta {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  padding: 12px 12px 12px 16px; border-radius: var(--radio-s); background: var(--rosa-50);
}
.grupo-nombres--nino .propuesta { background: var(--azul-50); }
.grupo-nombres--ambos .propuesta { background: var(--lila-50); }
.propuesta__nombre { font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.35rem; line-height: 1.15; overflow-wrap: anywhere; }
.propuesta__quien { grid-column: 1; font-size: .85rem; color: var(--tinta-suave); overflow-wrap: anywhere; }
.apoyo {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 6px 12px; border-radius: 999px; border: 2px solid transparent;
  background: #fff; cursor: pointer; font-weight: 800; box-shadow: var(--sombra-s);
  transition: transform .15s, border-color .2s;
}
.apoyo svg { width: 18px; height: 18px; color: var(--rosa-400); }
.apoyo:hover:not([disabled]) { transform: scale(1.06); border-color: var(--rosa-200); }
.apoyo[aria-pressed="true"] { background: var(--rosa-100); cursor: default; }
.apoyo[aria-pressed="true"] svg { color: var(--rosa-600); }
.propuesta--top .propuesta__nombre::after {
  content: "★"; margin-left: 6px; color: #e0a100; font-size: .9em;
}

/* ───────── Pie ───────── */
.pie {
  margin-top: 40px; padding: 48px 16px 64px; text-align: center;
  background: linear-gradient(110deg, var(--rosa-50), var(--lila-50) 50%, var(--azul-50));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pie__corazon { width: 34px; height: 34px; color: var(--rosa-400); animation: latido 1.6s ease-in-out infinite; }
.pie p { font-size: 1.1rem; }
.pie strong { font-family: var(--fuente-mano); font-size: 2rem; font-weight: 700; color: var(--lila-600); }
.pie__nota { max-width: 440px; color: var(--tinta-suave); font-size: .92rem !important; }

/* ───────── Diálogo ───────── */
.dialogo {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 28px;
  background: #fff; color: var(--tinta); box-shadow: var(--sombra-l); overflow: visible;
}
.dialogo::backdrop { background: linear-gradient(120deg, rgba(244,122,169,.35), rgba(94,174,242,.35)); backdrop-filter: blur(6px); }
.dialogo[open] { animation: aparecer .35s cubic-bezier(.2,1.2,.4,1) both; }
.dialogo__caja { position: relative; padding: 34px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.dialogo h2 { font-size: 1.7rem; font-weight: 700; padding-right: 30px; }
.dialogo p { color: var(--tinta-suave); }
.dialogo__globos { position: absolute; right: 18px; top: -34px; display: flex; }
.globo-mini { width: 40px; height: auto; animation: flotar 5s ease-in-out infinite; }
.globo-mini--r { color: var(--rosa-400); }
.globo-mini--a { color: var(--azul-400); margin-left: -10px; margin-top: 10px; animation-delay: -2s; }
.dialogo__error { min-height: 1.2em; color: var(--rosa-700) !important; font-weight: 700; font-size: .92rem; }
.dialogo__botones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ───────── Aviso ───────── */
.aviso {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 120;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--tinta); color: #fff; font-weight: 700; text-align: center;
  box-shadow: var(--sombra-l);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,1.2,.4,1), opacity .25s;
}
.aviso.visible { transform: translate(-50%, 0); opacity: 1; }
.aviso--error { background: var(--rosa-700); }

/* ───────── Revelación ───────── */
.revelacion { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; }
.revelacion__fondo {
  position: absolute; inset: -20%;
  background: linear-gradient(115deg, var(--rosa-400) 0 50%, var(--azul-400) 50% 100%);
  animation: vaiven 2.4s ease-in-out infinite alternate;
  transition: background .6s ease;
}
.revelacion[data-resultado="nina"] .revelacion__fondo {
  animation: none; background: radial-gradient(circle at 50% 45%, #ff9cc4 0%, var(--rosa-600) 70%, var(--rosa-700) 100%);
}
.revelacion[data-resultado="nino"] .revelacion__fondo {
  animation: none; background: radial-gradient(circle at 50% 45%, #8cc8ff 0%, var(--azul-600) 70%, var(--azul-700) 100%);
}
.revelacion__confeti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.revelacion__contenido { position: relative; z-index: 2; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.revelacion__pre { font-family: var(--fuente-titulos); font-weight: 600; font-size: clamp(1.3rem, 5vw, 2rem); text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.revelacion__numero {
  font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(7rem, 34vw, 15rem); line-height: 1;
  text-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.revelacion__numero:empty { display: none; }
.revelacion__numero.pulso { animation: pulso 1s ease-out both; }
.revelacion__texto {
  font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(3.4rem, 15vw, 8rem); line-height: .95;
  text-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.revelacion__texto:empty, .revelacion__sub:empty { display: none; }
.revelacion__texto.estallido { animation: estallido .9s cubic-bezier(.2,1.6,.4,1) both; }
.revelacion__sub { font-size: clamp(1.05rem, 4vw, 1.35rem); font-weight: 700; max-width: 560px; text-shadow: 0 2px 8px rgba(0,0,0,.15); white-space: pre-line; }
.revelacion__cerrar { margin-top: 10px; }
.redoble { display: inline-flex; gap: 10px; }
.redoble span { width: 18px; height: 18px; border-radius: 50%; background: #fff; animation: rebote 0.9s ease-in-out infinite; }
.redoble span:nth-child(2) { animation-delay: .15s; }
.redoble span:nth-child(3) { animation-delay: .3s; }

/* ───────── Animaciones ───────── */
.nuevo { animation: entrar .6s cubic-bezier(.2,1.3,.4,1) both; }

@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes brillar { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@keyframes latido { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes entrar { from { opacity: 0; transform: translateY(16px) scale(.85) rotate(var(--giro, 0deg)); } to { opacity: 1; transform: rotate(var(--giro, 0deg)); } }
@keyframes vaiven { from { transform: translateX(-6%) rotate(-2deg); } to { transform: translateX(6%) rotate(2deg); } }
@keyframes pulso { 0% { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(.9); opacity: .9; } }
@keyframes estallido { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rebote { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-14px); opacity: 1; } }

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