@charset "UTF-8";
/* Noche Fresca · estilos de la app (paleta de noche de la marca v2, marca/tokens.css)
   Móvil primero. Siempre oscura, con poco brillo. El texto nunca es blanco. */

:root {
  --fondo: #0F1712; --superficie: #17221B; --borde: #26342B;
  --texto: #DCD4BF; --suave: #9C9A86; --salvia: #5F7A55; --salvia-clara: #8FA883;
  --luna: #E3CD98; --terracota-clara: #C9805A; --aviso: #C9805A;
  --titulos: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --cuerpo: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --radio: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--fondo); color: var(--texto); margin: 0; }
body { font: 400 1.0625rem/1.55 var(--cuerpo); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
#app {
  max-width: 30rem; margin: 0 auto; min-height: 100dvh; outline: none;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: max(1rem, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
h1, h2 { font-family: var(--titulos); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: 2rem; line-height: 1.1; }
h2 { font-size: 1.45rem; line-height: 1.15; }
p { margin: 0; }
a { color: var(--salvia-clara); }
ul, ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.centrado { text-align: center; }
.nota { color: var(--suave); font-size: .92rem; }
.antetitulo { font: 600 .72rem/1.2 var(--cuerpo); letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }
:focus-visible { outline: 2px solid var(--luna); outline-offset: 3px; }

/* Barra y cabecera */
.barra { display: flex; align-items: center; gap: .6rem; }
.barra .simbolo { width: 34px; height: 34px; }
.barra .marca { font: 600 1.35rem/1 var(--titulos); flex: 1; }
.cabecera { display: flex; align-items: flex-start; gap: .6rem; }
.cabecera-textos { display: flex; flex-direction: column; gap: .2rem; padding-top: .3rem; }
.volver, .boton-icono, .volver-hueco {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--texto); background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.volver:hover, .boton-icono:hover { background: var(--superficie); }
.icono { display: inline-grid; place-items: center; }

/* Tarjetas */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
a.tarjeta { color: inherit; text-decoration: none; }
.tarjeta-accion { border-color: var(--salvia); }
.tarjeta-accion h2::after { content: " →"; color: var(--salvia-clara); }
.tarjeta.elegida { border-color: var(--luna); }
.pregunta { font-weight: 600; margin-top: .2rem; }
details summary { cursor: pointer; color: var(--salvia-clara); font-weight: 600; padding: .2rem 0; }
details ol { margin-top: .5rem; }
.lista-suave { padding-left: 1.1rem; }

/* Botones */
.boton-principal, .boton-secundario {
  display: flex; align-items: center; justify-content: center; text-align: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.3rem; border-radius: 999px; font: 600 1.02rem/1.2 var(--cuerpo);
  text-decoration: none; cursor: pointer; width: 100%;
}
.boton-principal { background: var(--salvia-clara); color: #142019; border: 0; }
.boton-principal:disabled { opacity: .45; cursor: default; }
.boton-secundario { background: transparent; color: var(--texto); border: 1px solid var(--borde); }
.enlace { background: none; border: 0; padding: .3rem 0; color: var(--salvia-clara); font: inherit; text-decoration: underline; cursor: pointer; align-self: center; }
.enlace.peligro { color: var(--terracota-clara); }
.acciones { display: flex; gap: .7rem; margin-top: .3rem; }
.acciones-fila { display: flex; gap: .6rem; flex-wrap: wrap; }
.acciones-fila > * { flex: 1 1 10rem; width: auto; }

/* Opciones (una sola elección) */
.opciones { display: flex; gap: .5rem; flex-wrap: wrap; }
.opcion {
  flex: 1 1 0; min-width: 5.5rem; min-height: 48px; padding: .6rem .8rem; border-radius: 14px;
  background: transparent; color: var(--texto); border: 1px solid var(--borde); font: 600 .98rem/1.2 var(--cuerpo); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
}
.opcion[aria-pressed="true"] { border-color: var(--luna); color: var(--luna); background: rgba(227, 205, 152, .07); }
.opciones.numeros .opcion { font-size: 1.25rem; min-width: 3.5rem; }
.opciones.caritas .opcion { padding: .8rem .4rem; }
.opciones.vertical { flex-direction: column; }
.opciones.vertical .opcion { align-items: flex-start; text-align: left; }
.opcion-icono { display: grid; }

/* Casillas */
.lista-casillas { display: flex; flex-direction: column; gap: .5rem; }
.casilla { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--borde); border-radius: 14px; cursor: pointer; }
.casilla input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--salvia-clara); }
.aviso { border-left: 3px solid var(--salvia-clara); padding: .6rem .9rem; background: rgba(143, 168, 131, .07); border-radius: 0 12px 12px 0; font-size: .95rem; }
.aviso.importante { border-left-color: var(--aviso); background: rgba(201, 128, 90, .09); }
.aviso.salud { color: var(--suave); }
.avisos { display: flex; flex-direction: column; gap: .6rem; }

/* Bienvenida */
.portada { display: flex; justify-content: center; padding: 1rem 0 .3rem; }
.portada .logo { width: min(62vw, 220px); height: auto; }
.progreso-pasos { display: flex; gap: .4rem; }
.progreso-pasos i { flex: 1; height: 3px; border-radius: 3px; background: var(--borde); }
.progreso-pasos i.hecho { background: var(--salvia-clara); }

/* Inicio */
.luna-inicio { display: flex; justify-content: center; }
.luna-inicio .nf-luna-caja, .luna-inicio > * { width: 100%; max-width: 22rem; }
.ritual { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.ritual .antetitulo, .ritual .nota { text-align: center; }
.boton-calor {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center;
  min-height: 150px; padding: 1.4rem; border-radius: 28px; text-decoration: none;
  background: #1C2B22; border: 1.5px solid var(--salvia); color: var(--texto);
}
.boton-calor-titulo { font: 600 1.9rem/1.1 var(--titulos); color: var(--luna); }
.boton-calor-sub { color: var(--suave); font-size: .95rem; }
.boton-calor.discreto { min-height: 64px; padding: .9rem; border-radius: 999px; border-color: var(--borde); background: transparent; }
.boton-calor.discreto .boton-calor-titulo { font: 600 1.05rem/1.2 var(--cuerpo); color: var(--texto); }
.enlaces-pie { display: flex; justify-content: space-around; gap: .5rem; flex-wrap: wrap; padding-top: .4rem; }
.enlaces-pie a { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--suave); text-decoration: none; font-size: .85rem; padding: .4rem; }
.pie-legal { text-align: center; color: var(--suave); font-size: .78rem; display: flex; flex-direction: column; gap: .2rem; padding-top: .6rem; }
.pie-legal a { color: var(--suave); }
.lista-enlaces { display: flex; flex-direction: column; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.lista-enlaces a { padding: .95rem 1.1rem; color: var(--texto); text-decoration: none; border-bottom: 1px solid var(--borde); }
.lista-enlaces a:last-child { border-bottom: 0; }
.lista-enlaces a::after { content: "›"; float: right; color: var(--suave); }

/* Ritual */
.pantalla-ritual { display: flex; flex-direction: column; gap: 1rem; min-height: calc(100dvh - 3rem); transition: opacity 1.5s; }
.ritual-arriba { display: flex; align-items: center; gap: .4rem; }
.pasos-ritual { list-style: none; padding: 0; display: flex; flex-direction: row; gap: .3rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.pasos-ritual li { font-size: .74rem; color: var(--suave); padding: .3rem .55rem; border-radius: 999px; border: 1px solid var(--borde); white-space: nowrap; }
.pasos-ritual li.hecho { color: var(--salvia-clara); border-color: transparent; }
.pasos-ritual li.actual { color: var(--fondo); background: var(--luna); border-color: var(--luna); }
.escena { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 18rem; }
.escena > * { width: 100%; }
.escena-calma .simbolo-calma { width: 120px; height: 120px; opacity: .8; animation: respirar 8s ease-in-out infinite; }
.escena-vacia { min-height: 14rem; }
@keyframes respirar { 50% { transform: scale(1.08); opacity: .55; } }
.titulo-pieza { font: 600 1.6rem/1.15 var(--titulos); text-align: center; }
.controles { display: flex; justify-content: center; align-items: center; gap: 1.4rem; padding-bottom: .5rem; }
.boton-redondo { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--borde); background: transparent; color: var(--texto); display: grid; place-items: center; cursor: pointer; }
.boton-redondo.grande { width: 76px; height: 76px; background: var(--salvia-clara); color: #142019; border: 0; }
.casi-negro .escena, .casi-negro .pasos-ritual { opacity: .35; }
.casi-negro .titulo-pieza { color: var(--suave); font-size: 1.25rem; }
.casi-negro .boton-redondo.grande { background: transparent; color: var(--suave); border: 1px solid var(--borde); }
.buenas-noches { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; }
@media (prefers-reduced-motion: reduce) { .escena-calma .simbolo-calma { animation: none; } }

/* Madrugada: casi negro, sin hora */
body[data-pantalla="madrugada"] { background: #070B09; }
.pantalla-noche { min-height: calc(100dvh - 3rem); display: flex; flex-direction: column; }
.boton-icono.tenue { color: #4A5249; align-self: flex-end; }
.centro-noche { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; text-align: center; }
.frase-noche { color: #6E7064; font: 500 1.35rem/1.3 var(--titulos); min-height: 2em; }
.zona-boton-noche { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-height: 120px; }
.boton-noche {
  width: 100%; min-height: 120px; border-radius: 28px; border: 1px solid #2A3A30; background: #111A15; color: #B9B19B;
  font: 600 1.6rem/1.15 var(--titulos); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
}
.boton-noche span { font: 400 .9rem/1.2 var(--cuerpo); color: #6E7064; }
.grabando { display: flex; align-items: center; gap: .6rem; color: #8C8A78; }
.grabando .punto { width: 12px; height: 12px; border-radius: 50%; background: var(--terracota-clara); animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .3; } }

/* Mañana, hallazgo y mapa */
.hallazgo { font: 600 1.45rem/1.25 var(--titulos); color: var(--luna); }
.lista-mapa { list-style: none; padding: 0; gap: .8rem; }
.lista-mapa .fecha { display: block; color: var(--suave); font-size: .82rem; }
.tabla-mapa { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla-mapa th, .tabla-mapa td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla-mapa th { color: var(--suave); font-weight: 600; font-size: .8rem; }
.tabla-mapa td:not(:first-child), .tabla-mapa th:not(:first-child) { text-align: center; width: 5.5rem; }

/* Entrar */
.formulario { display: flex; flex-direction: column; gap: .7rem; }
.formulario input { min-height: 52px; padding: .7rem 1rem; border-radius: 14px; border: 1px solid var(--borde); background: var(--superficie); color: var(--texto); font: inherit; }

/* Textos legales y ventana */
.legal { display: flex; flex-direction: column; gap: .7rem; }
.legal h2 { font-size: 1.8rem; } .legal h3 { font: 600 1.3rem/1.2 var(--titulos); margin: .6rem 0 0; }
.legal blockquote { margin: 0; padding: .6rem .9rem; border-left: 3px solid var(--borde); color: var(--suave); }
dialog.ventana { background: var(--fondo); color: var(--texto); border: 1px solid var(--borde); border-radius: var(--radio); width: min(30rem, calc(100vw - 24px)); max-height: 85dvh; padding: 1rem 1.1rem; }
dialog.ventana::backdrop { background: rgba(0, 0, 0, .6); }

@media print {
  body, #app { background: #fff; color: #1F2B17; }
  .tarjeta { background: #fff; border-color: #ccc; }
  .volver, .acciones, .boton-icono { display: none; }
}

/* ── Juego de día ──
   De día, la paleta clara de la marca (crema y verde bosque); si el teléfono está en modo oscuro, la de noche.
   Así el juego (de día) y el ritual (de noche) se distinguen a simple vista. */
:root { --luna-j: #A9C3DA; --sol-j: #D9936B; --dorado: #E3CD98; --bien-j: #1E2B20; --mal-j: #2E211A; }
@media (prefers-color-scheme: light) {
  body[data-pantalla="juegoDia"] {
    --fondo: #FBF7EE; --superficie: #FFFFFF; --borde: #E6DECB; --texto: #1F2B17; --suave: #5E6656;
    --salvia-clara: #2F4127; --luna: #2F4127; --luna-j: #4F6E8C; --sol-j: #9A4A1C; --dorado: #C18A3F;
    --bien-j: #E3EEDD; --mal-j: #F6E6DA; color-scheme: light;
  }
  body[data-pantalla="juegoDia"] .boton-principal { color: #FBF7EE; }
}
body[data-pantalla="juegoDia"] { background: var(--fondo); color: var(--texto); }
.juego-arriba { display: flex; align-items: center; gap: .6rem; }
.juego-barra { flex: 1; height: 6px; background: var(--borde); border-radius: 999px; overflow: hidden; }
.juego-barra i { display: block; height: 100%; width: 0; background: var(--salvia-clara); border-radius: inherit; transition: width .4s ease; }
.juego-paso { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.juego-paso.entra { animation: entra-juego .35s ease both; }
@keyframes entra-juego { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.juego-paso h1 { font-size: 2.2rem; }
.juego-paso h2 { font-size: 1.7rem; }
.empuje { flex: 1; }
.fuente { font-size: .8rem; color: var(--suave); }
.cuidado { color: var(--sol-j); font-size: .95rem; }
.lista-hoy { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.lista-hoy li { display: flex; gap: .7rem; align-items: baseline; }
.lista-hoy b { font: 600 1.3rem/1 var(--titulos); color: var(--dorado); width: 1rem; flex: none; }
.cartas { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; }
.cartas.dos { grid-template-columns: 1fr 1fr; }
.carta { border-radius: var(--radio); border: 2px solid var(--borde); background: var(--superficie); color: var(--texto); padding: .85rem .8rem; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: .25rem; min-height: 7.5rem; min-width: 0; }
.carta .nombre { font: 600 1.4rem/1 var(--titulos); }
.carta .sub { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
.carta .toca { margin-top: auto; font-size: .85rem; color: var(--suave); }
.carta ul { margin: .2rem 0 0; padding-left: 1rem; font-size: .92rem; gap: .15rem; }
.carta.abierta { border-color: var(--salvia-clara); }
.carta.luna .nombre { color: var(--luna-j); } .carta.sol .nombre { color: var(--sol-j); }
.carta.luna.abierta { border-color: var(--luna-j); } .carta.sol.abierta { border-color: var(--sol-j); }
.opcion.correcta { border-color: var(--salvia-clara); background: var(--bien-j); color: var(--texto); }
.opcion.fallo { border-color: var(--sol-j); background: var(--mal-j); color: var(--texto); }
.opcion:disabled { cursor: default; opacity: 1; }
.respuesta { border-radius: 16px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; background: var(--bien-j); }
.respuesta.mal { background: var(--mal-j); }
.pasos-cuerpo { padding-left: 1.3rem; }
.clasificar { display: flex; flex-direction: column; gap: .55rem; }
.fila-clasificar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: .6rem .7rem; }
.fila-clasificar .item { font-weight: 600; min-width: 0; }
.grupos { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { min-height: 40px; border-radius: 999px; border: 2px solid var(--borde); background: transparent; color: var(--texto); font: 600 .9rem/1 var(--cuerpo); padding: .5rem .8rem; cursor: pointer; }
.chip.correcta { border-color: var(--salvia-clara); background: var(--bien-j); }
.chip.fallo { border-color: var(--sol-j); background: var(--mal-j); }
.chip:disabled { cursor: default; }
textarea.intencion { width: 100%; border-radius: 14px; border: 2px solid var(--borde); background: var(--superficie); color: var(--texto); font: inherit; padding: .8rem; resize: vertical; }
.canales svg { width: 100%; max-width: 15rem; margin: 0 auto; display: block; font-family: var(--cuerpo); }
.flujo { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 6 10; opacity: .35; transition: opacity .3s; }
.flujo.vivo { opacity: 1; animation: corre 1.4s linear infinite; }
@keyframes corre { to { stroke-dashoffset: -32; } }
.juego-paso.premio { text-align: center; align-items: center; }
.luna-juego svg { width: 9rem; height: 9rem; }
.pieza { border: 2px solid var(--dorado); border-radius: var(--radio); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; text-align: left; width: 100%; background: var(--superficie); animation: brilla 1.2s ease .3s both; }
@keyframes brilla { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.pieza .etiqueta { font: 700 .7rem/1 var(--cuerpo); letter-spacing: .14em; text-transform: uppercase; color: var(--dorado); }
.pieza .nombre { font: 600 1.5rem/1.1 var(--titulos); }
.tarjeta.nivel { width: 100%; text-align: left; }
.puntos { display: flex; gap: .4rem; }
.puntos span { flex: 1; height: 8px; border-radius: 999px; background: var(--borde); }
.puntos span.hecho { background: var(--salvia-clara); }
.puntos span.reto { background: transparent; border: 2px dashed var(--dorado); }
.marcador { font-variant-numeric: tabular-nums; }
/* Tarjeta del juego en el inicio */
.tarjeta-juego { border-color: var(--dorado); }
.tarjeta-juego .boton-principal { margin-top: .3rem; }
.mini-luna svg { width: 3.2rem; height: 3.2rem; }
.juego-cabeza { display: flex; gap: .8rem; align-items: center; }
/* Termómetro de calor */
.termometro { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; width: 100%; }
.termometro button { min-height: 64px; border-radius: 16px; border: 2px solid var(--borde); background: transparent; color: var(--texto); font: 600 1.4rem/1 var(--cuerpo); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; }
.termometro button span { font-size: .62rem; font-weight: 600; letter-spacing: .04em; color: var(--suave); }
.termometro button[aria-pressed="true"] { border-color: var(--luna); color: var(--luna); }
@media (prefers-reduced-motion: reduce) { .juego-paso.entra, .flujo.vivo, .pieza { animation: none; } }

/* Inicio guiado: dos pasos en orden + botón de calor fijo */
.hoy-titulo { margin-top: .4rem; }
.guia { border-color: var(--salvia); }
.guia p { margin: 0 0 .4rem; }
.paso-hoy { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; padding: 1.1rem; border: 1px solid var(--borde); border-radius: var(--radio); background: transparent; }
.paso-hoy.actual { background: var(--superficie); border-color: var(--salvia); }
.paso-hoy.listo { opacity: .75; }
.paso-num { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 1.5px solid var(--borde); color: var(--suave); }
.paso-hoy.actual .paso-num { border-color: var(--salvia-clara); color: var(--luna); }
.paso-hoy.listo .paso-num { background: var(--salvia); border-color: var(--salvia); color: #F4EEDD; }
.paso-cuerpo { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.paso-cuerpo h2 { font-size: 1.45rem; }
.paso-cuerpo p { margin: 0; color: var(--suave); }
.paso-cuerpo .mini-luna { display: none; }
.paso-hoy.actual .paso-cuerpo .boton-principal, .paso-cuerpo .boton-secundario { margin-top: .3rem; }
body.con-calor #app { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
.boton-calor-fijo {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(.8rem, env(safe-area-inset-bottom)); z-index: 20;
  width: min(30rem - 32px, calc(100% - 32px)); min-height: 60px; padding: .7rem 1rem; border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  background: #1C2B22; border: 1.5px solid #5F7A55; box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.boton-calor-fijo .boton-calor-titulo { font: 600 1.35rem/1.15 var(--titulos); color: #E3CD98; }
.boton-calor-fijo .boton-calor-sub { font-size: .8rem; color: #9C9A86; }
.boton-calor-fijo.noche { min-height: 76px; }
.resumen-ritual h2 { font-size: 1.4rem; }
.aviso-juego { border-color: var(--salvia); }
.aviso-juego p { margin: 0 0 .6rem; }

/* Juego: recompensa al responder */
.opcion { position: relative; }
.opcion.acierto { background: #3E9B57 !important; border-color: #57C273 !important; color: #F6FFF4 !important; animation: latido .5s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 0 0 0 rgba(87,194,115,.55); animation: latido .5s cubic-bezier(.3,1.6,.5,1), halo 1s ease-out; }
.opcion.correcta:not(.acierto) { animation: halo 1s ease-out .35s; }
.opcion.error { border-color: #D9784E !important; background: rgba(217,120,78,.16) !important; animation: tiembla .45s ease; }
.sello-resp { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%) scale(0); font-weight: 800; font-size: 1.2rem; animation: aparece .35s cubic-bezier(.3,1.8,.5,1) .1s forwards; }
.opcion.error .sello-resp { color: #D9784E; }
.chispas { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.chispas i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #8FE3A2; opacity: 0;
  animation: chispa .9s ease-out forwards; }
.chispas i:nth-child(3n) { background: #E3CD98; width: 6px; height: 6px; }
.respuesta.entra { animation: sube .35s ease-out; }
.respuesta:not(.mal) strong { color: #57C273; font-size: 1.1rem; }
@keyframes latido { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes halo { from { box-shadow: 0 0 0 0 rgba(87,194,115,.55); } to { box-shadow: 0 0 0 16px rgba(87,194,115,0); } }
@keyframes tiembla { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes aparece { to { transform: translateY(-50%) scale(1); } }
@keyframes chispa { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.4); } }
@keyframes sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .opcion.acierto, .opcion.error, .opcion.correcta, .respuesta.entra { animation: none !important; } .chispas { display: none; } }

/* Barra de progreso del audio */
.barra-audio { display: flex; flex-direction: column; gap: .3rem; width: 100%; }
.barra-audio input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.barra-audio input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--salvia-clara) var(--p, 0%), var(--borde) var(--p, 0%)); }
.barra-audio input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--salvia-clara) var(--p, 0%), var(--borde) var(--p, 0%)); }
.barra-audio input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--luna); margin-top: -7px; border: 0; }
.barra-audio input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--luna); border: 0; }
.barra-tiempos { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--suave); font-variant-numeric: tabular-nums; }
.atras-10 { background: transparent; border: 1px solid var(--borde); color: var(--texto); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; min-height: 36px; }
.barra-audio.tenue { opacity: .55; margin-top: auto; padding: 0 .5rem 1rem; }
.casi-negro .barra-audio { opacity: .6; }

/* Tu progreso */
.enlace-progreso { display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--salvia-clara); text-decoration: none; font-weight: 600; padding: .4rem; }
.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.cifra { border: 1px solid var(--borde); border-radius: var(--radio); padding: .85rem .9rem; display: flex; flex-direction: column; gap: .15rem; background: var(--superficie); }
.cifra strong { font: 600 2rem/1 var(--titulos); color: var(--luna); }
.cifra span { color: var(--suave); font-size: .85rem; line-height: 1.3; }
.grafica svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-rejilla { stroke: var(--borde); stroke-width: 1; }
.g-eje { fill: var(--suave); font: 400 10px var(--cuerpo); }
.g-union { stroke: var(--salvia-clara); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.g-antes { fill: var(--terracota-clara); }
.g-despues { fill: var(--salvia-clara); stroke: var(--fondo); stroke-width: 2; }
.g-barra { fill: var(--terracota-clara); opacity: .85; }
.g-barra.sin-ritual { fill: transparent; stroke: var(--terracota-clara); stroke-width: 1.5; }
.g-cero { fill: var(--salvia-clara); }
.leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: .82rem; color: var(--suave); margin: .2rem 0 0; }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: .3rem; }
.punto.antes { background: var(--terracota-clara); }
.punto.despues, .punto.cero { background: var(--salvia-clara); }
.punto.sin-ritual { border: 1.5px solid var(--terracota-clara); border-radius: 3px; }
@media print { .boton-calor-fijo, .cabecera .volver, .acciones { display: none !important; } }

/* Recordatorios */
.tarjeta-avisos { display: flex; flex-direction: column; gap: .6rem; border-color: var(--salvia); }
.tarjeta-avisos p { margin: 0; }
.hora-aviso { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid var(--borde); }
.hora-aviso span { color: var(--texto); }
.hora-aviso input { font: inherit; color: var(--texto); background: var(--fondo); border: 1px solid var(--borde); border-radius: 12px; padding: .45rem .6rem; min-height: 44px; }
.estado-avisos { color: var(--salvia-clara); font-weight: 600; }
.estado-avisos:empty, .tarjeta-avisos .nota:empty { display: none; }
