/* AlzaLaVoz — "El cielo de los que hablan"
   Un cielo nocturno cálido donde cada denuncia que envía un niño se convierte
   en un farolillo que sube. Hablar no es acusar: es soltar una luz.
   El azul profundo también es discreción: la pantalla no llama la atención de
   quien está al lado. */

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

:root {
  /* Cielo */
  --noche-honda: #080C20;
  --noche: #141E4A;
  --noche-clara: #23306B;
  --bruma: #2E3C7E;
  /* Luz */
  --luz: #FFD98E;          /* farolillo */
  --calor: #FF8A5C;        /* brasa */
  --agua: #6FD8E8;         /* el brillo de Lumi */
  --lila: #9B8CF5;
  --crema: #FFF6E8;
  --susurro: #A9B6E8;

  /* Nombres heredados: el panel de adultos los usa. No renombrar sin tocar adulto.css */
  --fondo: var(--noche-honda);
  --tarjeta: var(--noche);
  --texto: var(--crema);
  --suave: var(--susurro);
  --acento: var(--agua);
  --ok: #6FE0A8;
  --alerta: var(--luz);
  --critico: #FF7A7A;

  --radio: 22px;
  --radio-chico: 14px;
  /* Tipografía redonda: en iPhone y Mac sale la SF Rounded del sistema, que es
     exactamente el registro de un niño. Sin descargar ni un byte de fuente
     (la CSP no permite orígenes externos). */
  --display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Varela Round", system-ui, sans-serif;
  --cuerpo: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--cuerpo);
  color: var(--texto);
  background: var(--noche-honda);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- El cielo ---------- */
/* Tres capas: degradado de horizonte, estrellas y una bruma que respira. */
body::before, body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -2;
}
body::before {
  background:
    radial-gradient(120% 80% at 50% 108%, rgba(255,138,92,.28), transparent 62%),
    radial-gradient(90% 60% at 12% 0%, rgba(155,140,245,.20), transparent 60%),
    linear-gradient(178deg, var(--noche-honda) 0%, var(--noche) 55%, #1B2A5E 100%);
}
body::after {
  /* Estrellas: puntos de distintos tamaños, sin una sola imagen. */
  background-image:
    radial-gradient(1.6px 1.6px at 18% 12%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.2px 1.2px at 72% 8%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.8px 1.8px at 88% 26%, rgba(255,217,142,.75), transparent),
    radial-gradient(1.1px 1.1px at 34% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 8% 40%, rgba(111,216,232,.7), transparent),
    radial-gradient(1.4px 1.4px at 92% 52%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 46% 6%, rgba(255,255,255,.6), transparent);
  animation: titilar 6s ease-in-out infinite alternate;
}
@keyframes titilar { from { opacity: .55; } to { opacity: 1; } }

/* Farolillos lejanos subiendo despacio: el niño no es el primero ni el único
   que habló. El cielo ya tiene luces de otros. */
.cielo-fondo { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.lejano {
  position: absolute; height: auto; opacity: 0;
  animation: ascender linear infinite;
}
.l1 { width: 40px; left: 6%;  animation-duration: 34s; animation-delay: -4s; }
.l2 { width: 27px; left: 76%; animation-duration: 44s; animation-delay: -18s; }
.l3 { width: 48px; left: 89%; animation-duration: 39s; animation-delay: -29s; }
.l4 { width: 22px; left: 28%; animation-duration: 52s; animation-delay: -11s; }
@keyframes ascender {
  0%   { transform: translateY(105vh) translateX(0) rotate(-4deg); opacity: 0; }
  14%  { opacity: .5; }
  80%  { opacity: .3; }
  100% { transform: translateY(-22vh) translateX(26px) rotate(4deg); opacity: 0; }
}

main {
  width: 100%; max-width: 460px;
  padding: 22px 20px 80px;
  position: relative; z-index: 1;
}

/* ---------- Tipografía ---------- */
h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1;
  text-align: center; margin: 8px 0 10px;
  color: var(--crema);
  text-shadow: 0 0 34px rgba(255,217,142,.35);
}
h1 span { color: var(--luz); }
h2 {
  font-family: var(--display); font-weight: 800;
  font-size: 1.6rem; letter-spacing: -.01em; margin: 14px 0 6px;
}
h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.sub { color: var(--susurro); text-align: center; margin-bottom: 20px; line-height: 1.55; font-size: 1rem; }

/* ---------- Pantallas ---------- */
.pantalla { display: none; }
.pantalla.activa { display: block; animation: entrar .4s cubic-bezier(.22,1,.36,1); }
@keyframes entrar {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: linear-gradient(165deg, rgba(46,60,126,.72), rgba(20,30,74,.86));
  border: 1px solid rgba(169,182,232,.16);
  border-radius: var(--radio);
  padding: 20px; margin: 16px 0;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 12px 34px rgba(4,8,26,.5), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---------- Campos ---------- */
input, textarea, select {
  font-family: var(--cuerpo);
  background: rgba(8,12,32,.6);
  color: var(--texto);
  border: 2px solid rgba(169,182,232,.2);
  border-radius: var(--radio-chico);
  padding: 15px 16px; font-size: 1.05rem; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: rgba(169,182,232,.55); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--agua);
  box-shadow: 0 0 0 4px rgba(111,216,232,.18);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
label { color: var(--susurro); font-size: .92rem; font-weight: 600; }

/* El selector de archivos del navegador rompe el tono: se viste igual que el
   resto para que un niño no sienta que cambió de aplicación a mitad. */
input[type="file"] { padding: 10px; font-size: .95rem; color: var(--susurro); }
input[type="file"]::file-selector-button {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  background: rgba(169,182,232,.14); color: var(--crema);
  border: 2px solid rgba(169,182,232,.24); border-radius: 999px;
  padding: 10px 18px; margin-right: 12px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: rgba(169,182,232,.24); }
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--susurro) 50%),
                    linear-gradient(135deg, var(--susurro) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

/* ---------- Botones ---------- */
/* Squash and stretch: el principio de animación de Disney. Un botón que se
   aplasta al tocarlo se siente vivo, y a un niño le da ganas de tocarlo. */
button {
  cursor: pointer; border: none; font-family: var(--display); font-weight: 700;
  border-radius: 999px; font-size: 1.05rem; padding: 15px 20px;
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, filter .18s;
}
button:active { transform: scale(.94) translateY(1px); }
button:focus-visible { outline: 3px solid var(--agua); outline-offset: 3px; }

.principal {
  background: linear-gradient(135deg, var(--luz), var(--calor));
  color: #3A1D08; width: 100%;
  box-shadow: 0 8px 22px rgba(255,138,92,.34);
}
.principal:hover { filter: brightness(1.06); box-shadow: 0 10px 28px rgba(255,138,92,.44); }
.principal.grande {
  padding: 20px; font-size: 1.2rem; margin: 18px 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.secundario {
  background: rgba(169,182,232,.1); color: var(--crema);
  border: 2px solid rgba(169,182,232,.24); width: 100%;
}
.secundario:hover { background: rgba(169,182,232,.18); }
button:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- Ayudas y avisos ---------- */
.ayuda {
  font-size: .92rem; color: var(--susurro); line-height: 1.55;
  background: rgba(8,12,32,.45); padding: 13px 15px; border-radius: var(--radio-chico);
}
.ayuda.destacada {
  color: var(--crema); background: rgba(255,217,142,.1);
  border: 1px solid rgba(255,217,142,.28);
}
.aviso { text-align: center; color: var(--susurro); font-size: .9rem; margin-top: 20px; }
.aviso strong { color: var(--luz); }
.fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fila button { width: auto; }

/* ---------- ¿Cómo estás hoy? ---------- */
/* Anticipación: la carita se agranda antes de asentarse. */
.animo { display: flex; justify-content: space-between; gap: 7px; }
.animo button {
  background: none; border: none; padding: 2px; flex: 1;
  border-radius: 50%; line-height: 0;
  filter: brightness(.92);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), filter .2s;
}
.animo button svg { width: 100%; height: auto; display: block; }
.animo button:hover { transform: translateY(-5px) scale(1.09); filter: none; }
/* La elegida se enciende y las demás se apagan: la decisión del niño manda. */
.animo button.elegido {
  filter: none;
  transform: scale(1.14);
  animation: saltito .55s cubic-bezier(.34,1.56,.64,1);
}
/* Las no elegidas se retiran un paso, pero siguen vivas: apagarlas del todo
   hacía que la fila pareciera rota. */
.animo:has(.elegido) button:not(.elegido) { filter: brightness(.78); transform: scale(.94); }
.etiqueta-animo { color: var(--susurro); font-size: .84rem; text-align: center; margin-top: -2px; }
@keyframes saltito {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.28) translateY(-7px); }
  70%  { transform: scale(.95) translateY(0); }
  100% { transform: scale(1.1) translateY(-2px); }
}

/* ---------- El cielo de farolillos (mis denuncias) ---------- */
/* Cada denuncia enviada es un farolillo. Cuanto más avanza su caso, más
   alto y más brillante flota. */
.cielo {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; padding: 10px 0 4px; min-height: 96px;
  align-items: flex-end;
}
.cielo .vacio {
  width: 100%; text-align: center; color: var(--susurro);
  font-size: .95rem; line-height: 1.5; padding: 14px 0;
}
.farolillo {
  width: 96px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; text-align: center;
  animation: flotar 5s ease-in-out infinite;
  transition: margin-bottom .6s cubic-bezier(.22,1,.36,1);
}
.farolillo:nth-child(2n) { animation-duration: 6.4s; animation-delay: -1.6s; }
.farolillo:nth-child(3n) { animation-duration: 7.1s; animation-delay: -3.2s; }
@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-9px) rotate(1.5deg); }
}
.farolillo svg { width: 46px; height: auto; display: block; }
.farolillo .etiqueta { font-size: .72rem; color: var(--susurro); line-height: 1.3; }
.farolillo .estado { font-family: var(--display); font-weight: 700; font-size: .78rem; color: var(--luz); }
/* Cuanto más avanza el caso, más alto flota el farolillo y más brilla: el niño
   ve el progreso sin leer una palabra. */
.farolillo.nueva        { opacity: .66; margin-bottom: 0; }
.farolillo.en-revision  { opacity: .88; margin-bottom: 20px; filter: drop-shadow(0 0 12px rgba(255,217,142,.55)); }
.farolillo.atendida     { margin-bottom: 42px; filter: drop-shadow(0 0 20px rgba(255,217,142,.9)); }
.farolillo.atendida .estado { color: var(--ok); }
.farolillo.cerrada      { opacity: .45; margin-bottom: 6px; filter: grayscale(.45); }

/* ---------- Compañeros ----------
   Cada chico elige quién le acompaña. Es una PREFERENCIA, no su género:
   preguntar "¿niño o niña?" guardaría un dato identificativo de un menor que
   no necesitamos, y dejaría fuera a quien no se reconozca en la casilla. */
.compa { display: none; }
body[data-compa="lumi"]   #compa-lumi,
body[data-compa="michi"]  #compa-michi,
body[data-compa="uma"]    #compa-uma,
body[data-compa="chispa"] #compa-chispa,
body[data-compa="senal"]  #compa-senal,
body[data-compa="pulso"]  #compa-pulso,
body[data-compa="orbita"] #compa-orbita { display: block; }

/* Animaciones compartidas: todos los personajes traen los mismos tres ids. */
[id$="-halo"] { animation: latir 2.6s ease-in-out infinite; transform-origin: center; }
[id$="-ojos"] { animation: parpadear 5.5s infinite; transform-origin: center; }
[id$="-extra"] { transform-origin: center; animation: aletear .4s ease-in-out infinite alternate; }

/* Elegir compañero en el registro */
.compas { display: flex; gap: 8px; justify-content: space-between; }
.compas button {
  flex: 1; padding: 8px 4px; background: rgba(8,12,32,.5);
  border: 2px solid rgba(169,182,232,.18); border-radius: 16px; line-height: 0;
  filter: brightness(.85);
}
.compas button svg { width: 100%; height: auto; display: block; }
.compas button .nombre {
  display: block; font-family: var(--display); font-size: .74rem;
  color: var(--susurro); line-height: 1.4; margin-top: 2px;
}
.compas button.elegida {
  border-color: var(--luz); background: rgba(255,217,142,.14); filter: none;
  transform: scale(1.05);
}
.compas button.elegida .nombre { color: var(--crema); }

/* ---------- Lumi, la luciérnaga que acompaña ---------- */
.compa {
  width: 118px; height: 118px; margin: 4px auto -6px;
  animation: revolotear 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 22px rgba(255,217,142,.35));
}
@keyframes revolotear {
  0%, 100% { transform: translate(0,0) rotate(-3deg); }
  30%      { transform: translate(7px,-11px) rotate(3deg); }
  65%      { transform: translate(-6px,-5px) rotate(-2deg); }
}
@keyframes aletear { from { transform: scaleX(1); } to { transform: scaleX(.82); } }
@keyframes latir { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes parpadear { 0%,94%,100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* Lumi responde al ánimo del niño: si está mal, se acerca y calienta la luz. */
.compa.cerca {
  transform: scale(1.16);
  filter: drop-shadow(0 0 26px rgba(255,217,142,.75));
  animation-duration: 4s;
}
.compa.cerca [id$="-halo"] { animation-duration: 1.5s; }
.compa.contenta { animation-duration: 3.4s; }
.compa.contenta [id$="-extra"] { animation-duration: .2s; }

/* Farolillo dentro del botón grande y en la pantalla de envío */
.icono-farol { width: 26px; height: 38px; flex: none; }
.farol-suelto {
  display: flex; justify-content: center; margin: 8px 0 4px;
  animation: soltar 1.4s cubic-bezier(.22,1,.36,1);
}
.farol-suelto svg {
  width: 92px; height: 138px;
  filter: drop-shadow(0 0 26px rgba(255,217,142,.7));
  animation: flotar 5s ease-in-out 1.4s infinite;
}
/* El farolillo sube: es lo que acaba de hacer el niño. */
@keyframes soltar {
  0%   { opacity: 0; transform: translateY(70px) scale(.7); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.centrado { text-align: center; }
.saludo { font-size: 1.7rem; text-align: center; margin-bottom: 4px; }
.pie { color: var(--susurro); font-size: .86rem; line-height: 1.5; margin-top: -4px; }

/* ---------- Contar rápido: mantener apretado y hablar ---------- */
/* Es el camino más corto entre un niño y pedir ayuda: por eso va primero y es
   el elemento más grande de la pantalla. */
.urgente { background: linear-gradient(135deg, var(--calor), #E85A30); }
.mic-icono { font-size: 1.3rem; }

.grabador {
  width: 100%; padding: 30px 20px; border-radius: 24px;
  background: rgba(8,12,32,.55);
  border: 2px dashed rgba(255,217,142,.4);
  color: var(--crema); font-size: 1.05rem;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: none;
}
.grabador-punto {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--luz), var(--calor));
  box-shadow: 0 0 0 0 rgba(255,138,92,.55);
}
.grabador.grabando {
  border-style: solid; border-color: var(--calor);
  background: rgba(255,138,92,.14);
}
.grabador.grabando .grabador-punto { animation: latido 1.1s ease-out infinite; }
@keyframes latido {
  0%   { box-shadow: 0 0 0 0 rgba(255,138,92,.55); transform: scale(1); }
  70%  { box-shadow: 0 0 0 26px rgba(255,138,92,0); transform: scale(1.09); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,92,0); transform: scale(1); }
}
.checklinea {
  display: flex; align-items: center; gap: 10px;
  color: var(--susurro); font-size: .95rem; cursor: pointer;
}
.checklinea input { width: 22px; height: 22px; accent-color: var(--luz); flex: none; }

/* ---------- Sugerencias de alias ---------- */
#sugerencias { flex-wrap: wrap; gap: 8px; }
#sugerencias button { width: auto; font-size: .95rem; padding: 10px 16px; }

/* ---------- Avisos flotantes ---------- */
#aviso {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 110; max-width: 92vw;
  background: linear-gradient(150deg, var(--noche-clara), var(--noche));
  color: var(--crema); border: 1px solid rgba(255,217,142,.34);
  border-radius: 18px; padding: 14px 18px;
  font-size: .96rem; line-height: 1.45;
  box-shadow: 0 12px 34px rgba(4,8,26,.6);
  animation: subir .34s cubic-bezier(.22,1,.36,1);
}
@keyframes subir { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

.oculto { display: none !important; }
.mayus { text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Salida rápida ---------- */
/* Es el botón más importante para un niño asustado: nunca baja de 44×44 y no
   se pega a la esquina, donde pelearía con la barra de estado. */
#btn-escape {
  position: fixed; top: 16px; right: 16px; z-index: 120;
  background: rgba(35,48,107,.9); color: var(--crema);
  border: 1px solid rgba(169,182,232,.3);
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.15rem; padding: 0;
  backdrop-filter: blur(6px);
}

/* ---------- Camuflaje: una calculadora del montón ---------- */
/* Aquí se acaba la magia a propósito. Cuanto más anodina, más protege. */
#camuflaje {
  position: fixed; inset: 0; background: #f2f2f7; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.calc { width: 300px; }
#calc-pantalla {
  background: #fff; color: #111; font-size: 2.2rem; text-align: right;
  padding: 18px; border-radius: 12px 12px 0 0; border: 1px solid #ddd;
  overflow: hidden;
  font-family: var(--cuerpo);
  /* El gesto de salida es mantener pulsado: sin esto el móvil selecciona
     texto o abre la lupa y el niño no logra salir. */
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
.calc-teclas { display: grid; grid-template-columns: repeat(4, 1fr); }
.calc-teclas button {
  background: #fff; color: #111; border: 1px solid #ddd; border-radius: 0;
  padding: 18px; font-size: 1.2rem; font-family: var(--cuerpo); font-weight: 400;
  transition: none;
}
.calc-teclas button:active { transform: none; background: #eee; }
.calc-teclas .calc-c { grid-column: span 4; background: #ffe5e5; }

/* ================================================================
   TRES REGISTROS SEGÚN LA EDAD
   Un chico de 16 que abre una app con una luciérnaga tierna la cierra y no
   vuelve — y aquí no volver significa no contar lo que le está pasando. El
   producto es el mismo; lo que cambia es con quién parece que está hablando.
   ================================================================ */

/* Ojo con la especificidad: `.animo button svg` (0,1,2) pisaba a `.ico-teen`
   (0,1,0) y se veían las DOS filas de caritas a la vez. */
.animo button svg.ico-teen { display: none; }

/* --- 8 a 11: todo lo cálido y lo animado, sin recortes --- */
body[data-franja="peques"] .compa { width: 138px; height: 138px; }
body[data-franja="peques"] h1 { font-size: clamp(2.8rem, 13vw, 3.6rem); }
body[data-franja="peques"] .animo button svg { width: 100%; }
body[data-franja="peques"] .tarjeta { border-radius: 26px; }

/* --- 12 a 14: el punto medio. Lumi sigue, pero acompaña sin ocupar. --- */
body[data-franja="medianos"] .compa { width: 112px; height: 112px; }

/* --- 15 a 18: sin mascota. Una baliza, tipografía seria y luz fría. --- */
body[data-franja="grandes"] {
  --luz: #6FD8E8;
  --calor: #4A7BF7;
  --crema: #E4EAFB;
  --susurro: #8B9AC8;
  --noche-honda: #060913;
  --noche: #0F1730;
  --noche-clara: #18224A;
  --radio: 16px;
  --radio-chico: 10px;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body[data-franja="grandes"] .compa { width: 88px; height: 88px; filter: none; margin: 8px auto 2px; }
body[data-franja="grandes"] .animo button svg.ico-nino { display: none; }
body[data-franja="grandes"] .animo button svg.ico-teen { display: block; }
body[data-franja="grandes"] h1 {
  font-size: clamp(2rem, 9vw, 2.5rem); font-weight: 700; letter-spacing: -.03em;
  text-shadow: 0 0 30px rgba(111,216,232,.28);
}
body[data-franja="grandes"] h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
body[data-franja="grandes"] h3 { font-size: 1rem; letter-spacing: .01em; }
body[data-franja="grandes"] button { border-radius: 12px; font-weight: 600; font-size: 1rem; }
body[data-franja="grandes"] .principal {
  background: linear-gradient(135deg, #4A7BF7, #6FD8E8);
  color: #04121C; box-shadow: 0 6px 18px rgba(74,123,247,.32);
}
body[data-franja="grandes"] .principal.grande { font-size: 1.05rem; padding: 17px; }
body[data-franja="grandes"] .icono-farol { display: none; }
body[data-franja="grandes"] .tarjeta {
  background: linear-gradient(165deg, rgba(24,34,74,.62), rgba(15,23,48,.86));
  box-shadow: 0 8px 24px rgba(2,5,15,.5);
}
/* El cielo de farolillos se vuelve una lista de señales enviadas. */
body[data-franja="grandes"] .farolillo svg { display: none; }
body[data-franja="grandes"] .cielo { gap: 8px; flex-direction: column; align-items: stretch; }
body[data-franja="grandes"] .farolillo {
  width: 100%; flex-direction: row; justify-content: space-between; align-items: center;
  margin-bottom: 0 !important; animation: none; opacity: 1 !important; filter: none !important;
  background: rgba(6,9,19,.5); border-left: 3px solid var(--susurro);
  border-radius: 10px; padding: 12px 14px; text-align: left;
}
body[data-franja="grandes"] .farolillo.en-revision { border-left-color: var(--luz); }
body[data-franja="grandes"] .farolillo.atendida    { border-left-color: var(--ok); }
body[data-franja="grandes"] .farolillo .estado { font-size: .92rem; }
body[data-franja="grandes"] .farolillo .etiqueta { font-size: .8rem; }
/* Menos ambiente, y en frío: los farolillos ámbar chocaban con esta paleta.
   A esta edad la atmósfera de cuento estorba, pero el cielo sigue habitado. */
body[data-franja="grandes"] .cielo-fondo { opacity: .3; filter: hue-rotate(165deg) saturate(.8); }
body[data-franja="grandes"] .farol-suelto svg { width: 0; height: 0; }
body[data-franja="grandes"] .farol-suelto::before {
  content: ''; width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid var(--luz); box-shadow: 0 0 34px rgba(111,216,232,.6);
  animation: emitir 1.6s ease-out;
}
@keyframes emitir {
  from { transform: scale(.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
[id$="-aura"] circle, [id$="-aura"] ellipse { transform-origin: 60px 60px; animation: emision 3s ease-out infinite; }
#senal-ondas .o2 { animation-delay: .5s; }
#senal-ondas .o3 { animation-delay: 1s; }
@keyframes emision {
  0%   { transform: scale(.5); opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Selector de edad en el registro */
.franjas { display: flex; gap: 8px; }
.franjas button {
  flex: 1; font-size: .98rem; padding: 13px 6px;
  background: rgba(8,12,32,.55); color: var(--susurro);
  border: 2px solid rgba(169,182,232,.2); border-radius: var(--radio-chico);
}
.franjas button.elegida {
  border-color: var(--luz); color: var(--crema);
  background: rgba(255,217,142,.14);
}

/* ---------- Quien prefiera quietud ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Un recurso cerrado ahora mismo se ve apagado, pero no se esconde: puede
   servirle mañana. Lo que está abierto va arriba y con luz. */
.recurso.cerrado { opacity: .55; }
.recurso.cerrado strong { font-weight: 600; }

/* Lista del consentimiento: se lee, no se decora */
.lista-clara { margin: 6px 0 10px 18px; line-height: 1.6; }
.lista-clara li { margin-bottom: 5px; }
