/* ============================================================
   styles.css — "Sherlock se reúne con Animal Crossing"
   Pastel, elegante, con humor. Móvil primero.
   ============================================================ */

:root {
  /* Paleta MODO DÍA (pastel cálido) */
  --bg:        #f7f0e4;
  --bg-2:      #f3ead9;
  --tarjeta:   #fffaf2;
  --texto:     #4a4036;
  --tenue:     #8a7d6d;
  --acento:    #c98a6b;   /* terracota suave */
  --acento-2:  #8fa98a;   /* salvia */
  --melocoton: #f0c9a8;
  --borde:     #e7dac3;
  --sombra:    rgba(120, 95, 60, 0.12);
  --glass:     rgba(255, 251, 244, 0.66);
  --glass-bd:  rgba(255, 255, 255, 0.7);
  --glass-nav: rgba(247, 240, 228, 0.72);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 20px;
  --transicion: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-tema="noche"] {
  --bg:        #1e1b27;
  --bg-2:      #2a2636;
  --tarjeta:   #393345;
  --texto:     #efe7db;
  --tenue:     #bcb1a1;
  --acento:    #e6a888;
  --acento-2:  #acc6a6;
  --melocoton: #6f5343;
  --borde:     #4a4358;
  --sombra:    rgba(0, 0, 0, 0.5);
  --glass:     rgba(48, 43, 62, 0.52);
  --glass-bd:  rgba(255, 255, 255, 0.1);
  --glass-nav: rgba(26, 23, 35, 0.62);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--sans);
  background: linear-gradient(160deg, var(--bg), var(--bg-2), var(--bg));
  background-size: 100% 200%;
  animation: fondo 26s ease-in-out infinite;
  color: var(--texto);
  line-height: 1.55;
  min-height: 100vh;
  transition: color var(--transicion);
  -webkit-font-smoothing: antialiased;
}
@keyframes fondo { 0%, 100% { background-position: 0 0; } 50% { background-position: 0 100%; } }

main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.1rem 4rem;
}

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

/* --- Botones flotantes --- */
.flotante {
  position: fixed;
  top: 0.9rem; right: 0.9rem;
  display: flex; gap: 0.5rem;
  z-index: 50;
}
.icono {
  width: 44px; height: 44px;
  border: 1px solid var(--borde);
  background: var(--tarjeta);
  color: var(--texto);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--sombra);
  transition: transform var(--transicion), background var(--transicion);
}
.icono:hover { transform: scale(1.08) rotate(-6deg); }
.icono:active { transform: scale(0.94); }
.icono.activo { background: var(--melocoton); }

/* --- HERO --- */
.hero { text-align: center; padding: 1.5rem 0 2.5rem; animation: aparece 0.8s ease both; }
.kicker {
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--acento); font-weight: 700; margin-bottom: 0.8rem;
}
.hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); margin-bottom: 0.6rem; }
.resaltado {
  font-style: italic; color: var(--acento);
  background: linear-gradient(transparent 62%, var(--melocoton) 62%);
  padding: 0 0.1em;
}
.subtitulo { color: var(--tenue); font-size: 1.05rem; max-width: 28ch; margin: 0 auto 1.8rem; }

/* --- Cuenta atrás --- */
.countdown { display: flex; justify-content: center; gap: 0.6rem; }
.bloque {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 0.8rem 0.5rem;
  min-width: 64px;
  box-shadow: 0 6px 18px var(--sombra);
}
.num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--acento); }
.lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tenue); }
.countdown-pie { margin-top: 0.9rem; color: var(--tenue); font-size: 0.9rem; }
.countdown.fin .num { color: var(--acento-2); }

/* --- Tarjetas --- */
.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.6rem 1.4rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 8px 24px var(--sombra);
  animation: aparece 0.7s ease both;
}
.tarjeta h2 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.ayuda-sub { color: var(--tenue); font-size: 0.92rem; margin-bottom: 1rem; }

/* --- Frase del día --- */
.frase-dia { text-align: center; background: linear-gradient(135deg, var(--tarjeta), var(--bg-2)); }
.frase-texto { font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.4; }

/* --- Bloqueada --- */
.bloqueada { text-align: center; }
.boton-grande {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  background: var(--acento); color: #fff;
  border: none; border-radius: 999px;
  padding: 0.85rem 1.8rem; cursor: pointer;
  box-shadow: 0 6px 18px var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.boton-grande:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--sombra); }
.boton-grande:active { transform: translateY(0) scale(0.97); }
.mensaje-bloqueada {
  margin-top: 1.1rem; font-size: 1.1rem; min-height: 1.2em;
  color: var(--texto); font-family: var(--serif); font-style: italic;
}
.mensaje-bloqueada.visible { animation: aparece 0.5s ease both; }

/* --- Crack list --- */
.crack ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.crack li {
  position: relative; padding-left: 1.8rem; font-size: 1rem;
}
.crack li::before { content: "✦"; position: absolute; left: 0; color: var(--acento-2); font-size: 1.1rem; }

/* --- Calendario --- */
.calendario-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.dia-celda {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: 0.75rem 0.9rem; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--borde);
  font-family: var(--sans); color: var(--texto);
  transition: transform var(--transicion), background var(--transicion);
}
.dia-celda:hover { transform: translateX(3px); }
.dia-celda .dia-num {
  font-family: var(--serif); font-weight: 600; font-size: 0.85rem;
  color: var(--tenue); min-width: 72px; letter-spacing: 0.03em;
}
.dia-celda .dia-txt { font-size: 0.95rem; }
.dia-celda.hoy { border-color: var(--acento); }
.dia-celda.hoy .dia-num { color: var(--acento); }
.dia-celda.activo {
  background: var(--melocoton); border-color: var(--acento);
  transform: scale(1.02);
}
.dia-celda.activo .dia-num { color: var(--acento); }

/* --- Galería --- */
.galeria-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.foto-card {
  background: var(--bg-2); border: 1px solid var(--borde);
  border-radius: 16px; overflow: hidden;
  transition: transform var(--transicion);
}
.foto-card:hover { transform: translateY(-4px) rotate(-1deg); }
.foto-card .marco {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, var(--melocoton), var(--bg-2));
  font-size: 2.8rem;
}
.foto-card img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1/1; }
.foto-card .pie { padding: 0.6rem 0.7rem; font-size: 0.82rem; color: var(--tenue); }

/* --- Descanso / respira --- */
.descanso { text-align: center; }
.respira-zona { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.bola-respira {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--acento-2), var(--acento));
  box-shadow: 0 0 40px var(--sombra);
  transition: transform 4s ease-in-out;
}
.bola-respira.inspira { transform: scale(2.1); }
.bola-respira.espira  { transform: scale(1); }
.respira-texto { font-family: var(--serif); font-style: italic; font-size: 1.15rem; min-height: 1.3em; }

/* --- Footer --- */
footer { text-align: center; margin-top: 2.5rem; color: var(--tenue); }
footer .micro { font-size: 0.8rem; margin-top: 0.6rem; opacity: 0.8; }

/* --- Toast easter eggs --- */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(140%);
  background: var(--texto); color: var(--bg);
  padding: 0.8rem 1.3rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  box-shadow: 0 8px 24px var(--sombra);
  z-index: 80; max-width: 90vw; text-align: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* --- Sección HOY --- */
.seccion-tag {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--acento); font-weight: 700; margin-bottom: 0.9rem;
}
.frase-bloque { text-align: center; margin-bottom: 1.6rem; }
.juego-bloque { border-top: 1px dashed var(--borde); padding-top: 1.3rem; }
.juego-bloque h2 { font-size: 1.25rem; }
.juego-host { margin-top: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }

/* resultado / texto de juegos */
.juego-resultado {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  text-align: center; min-height: 1.3em; line-height: 1.4; color: var(--texto);
}
.juego-resultado.parpadeo { opacity: 0.55; }
.juego-resultado.destacado { opacity: 1; color: var(--acento); font-size: 1.15rem; }

/* botones mini */
.botonera { display: flex; gap: 0.6rem; }
.boton-mini {
  font-family: var(--sans); font-weight: 700; font-size: 0.92rem;
  background: var(--acento); color: #fff; border: none; border-radius: 999px;
  padding: 0.6rem 1.2rem; cursor: pointer; transition: transform var(--transicion);
}
.boton-mini.secundario { background: var(--acento-2); }
.boton-mini:active { transform: scale(0.96); }

/* atrapa a dharma */
.atrapa-area {
  position: relative; width: 100%; height: 220px;
  background: var(--bg-2); border: 1px solid var(--borde); border-radius: 16px;
  overflow: hidden;
}
.huella {
  position: absolute; font-size: 2rem; background: none; border: none; cursor: pointer;
  padding: 0.2rem; line-height: 1; transition: transform 0.1s;
}
.huella:active { transform: scale(0.8); }

/* memoria */
.memoria-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
  width: 100%; max-width: 320px;
}
.carta {
  aspect-ratio: 1 / 1; font-size: 1.6rem; cursor: pointer;
  background: var(--acento-2); color: transparent; border: none; border-radius: 12px;
  transition: transform var(--transicion), background var(--transicion);
}
.carta.vista { background: var(--tarjeta); color: var(--texto); }
.carta.ok { background: var(--melocoton); color: var(--texto); cursor: default; }
.carta:active { transform: scale(0.94); }

/* reflejos */
.reaccion-zona {
  width: 100%; max-width: 320px; height: 130px; border-radius: 16px; border: none;
  font-family: var(--serif); font-size: 1.2rem; cursor: pointer; color: #fff;
  transition: background 0.15s;
}
.reaccion-zona.esperando { background: var(--acento-2); }
.reaccion-zona.roja { background: #c8736b; }
.reaccion-zona.verde { background: #6fae74; }

/* scramble */
.scramble-letras {
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.15em;
  font-weight: 600; color: var(--acento); text-align: center;
}
.scramble-input {
  font-family: var(--sans); font-size: 1.05rem; text-align: center;
  padding: 0.6rem 1rem; border: 1px solid var(--borde); border-radius: 999px;
  background: var(--tarjeta); color: var(--texto); width: 100%; max-width: 260px;
}
.scramble-input:focus { outline: 2px solid var(--acento-2); }

/* respira */
.bola-respira {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--acento-2), var(--acento));
  box-shadow: 0 0 40px var(--sombra);
  transition: transform 4s ease-in-out;
}
.bola-respira.inspira { transform: scale(2.1); }
.bola-respira.espira  { transform: scale(1); }
.respira-texto { font-family: var(--serif); font-style: italic; font-size: 1.15rem; min-height: 1.3em; }

/* confeti */
.confeti {
  position: fixed; top: -30px; z-index: 90; pointer-events: none;
  animation: cae linear forwards;
}
@keyframes cae { to { transform: translateY(105vh) rotate(360deg); opacity: 0.9; } }

/* frase con fade al cambiar de día */
.frase-texto.visible { animation: aparece 0.5s ease both; }

/* --- MARQUESINA --- */
.marquesina {
  overflow: hidden; white-space: nowrap;
  background: var(--acento); color: #fff;
  font-family: var(--serif); font-style: italic; font-size: 0.9rem;
  padding: 0.4rem 0; letter-spacing: 0.02em;
}
.marquesina-track { display: inline-block; animation: desliza 32s linear infinite; }
.marquesina:hover .marquesina-track { animation-play-state: paused; }
@keyframes desliza { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- BARRA DE NAVEGACIÓN (estilos en bloque ELITE más abajo) --- */
.nav-btn {
  font-family: var(--sans); font-weight: 700; cursor: pointer;
  border-radius: 999px; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* --- VISTAS (pestañas) --- */
.view { display: none; }
.view.activa { display: block; animation: aparece 0.4s ease; }
.verdades-titulo { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.15; }

/* --- REVEAL al hacer scroll --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visto { opacity: 1; transform: none; }

/* --- ESPACIO CHILL --- */
.chill-juego { margin-top: 1.4rem; }
.chill-juego h3 { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.dino-canvas {
  display: block; margin: 0 auto; touch-action: manipulation; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--borde); border-radius: 14px;
}
.gato-area {
  position: relative; width: 100%; height: 240px; overflow: hidden;
  background: linear-gradient(180deg, #dde8d6, #cde0c4);
  border: 1px solid var(--borde); border-radius: 14px;
}
html[data-tema="noche"] .gato-area { background: linear-gradient(180deg, #3a4a3a, #2c382c); }
.gato-mascota { position: absolute; left: 10px; bottom: 6px; font-size: 2rem; }
.bicho {
  position: absolute; font-size: 1.6rem; background: none; border: none;
  cursor: pointer; padding: 0.25rem; line-height: 1;
  transition: left 0.9s linear, top 0.9s linear;
}
.bicho:active { transform: scale(0.8); }

/* --- ENLACE GRANDE a la página larga --- */
.enlace-grande {
  display: flex; flex-direction: column; gap: 0.25rem;
  text-decoration: none; color: var(--texto);
}
.enlace-grande:hover { transform: translateY(-3px); }
.enlace-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--acento); font-weight: 700; }
.enlace-titulo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }

/* --- PÁGINA RAZONES --- */
.razones-lista { display: flex; flex-direction: column; gap: 0.7rem; max-width: 640px; margin: 0 auto; padding: 0 1.1rem; }
.razon {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--tarjeta); border: 1px solid var(--borde);
  border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 6px 18px var(--sombra);
}
.razon-num { font-family: var(--serif); font-weight: 600; color: var(--acento); font-size: 1.1rem; min-width: 1.8em; }
.razon-texto { font-size: 1.02rem; line-height: 1.5; }
.razones-cierre {
  text-align: center; max-width: 640px; margin: 2.2rem auto;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--texto);
}
.razones-cierre .boton-grande { text-decoration: none; display: inline-block; }

/* --- PUERTA / CONTRASEÑA --- */
html.bloqueado main, html.bloqueado .marquesina, html.bloqueado .flotante { display: none; }
.gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  transition: opacity 0.4s ease;
}
.gate.fuera { opacity: 0; pointer-events: none; }
.gate-card {
  background: var(--tarjeta); border: 1px solid var(--borde);
  border-radius: 20px; padding: 2rem 1.6rem; max-width: 340px; width: 100%;
  text-align: center; box-shadow: 0 12px 32px var(--sombra);
}
.gate-emoji { font-size: 2.4rem; }
.gate-card h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0.4rem 0; }
.gate-sub { color: var(--tenue); margin-bottom: 1.1rem; font-size: 0.95rem; }
.gate-input {
  font-family: var(--sans); font-size: 1.05rem; text-align: center; width: 100%;
  padding: 0.7rem 1rem; border: 1px solid var(--borde); border-radius: 999px;
  background: var(--bg-2); color: var(--texto); margin-bottom: 0.9rem;
}
.gate-input:focus { outline: 2px solid var(--acento-2); }
.gate .boton-grande { width: 100%; }
.gate-msg { color: var(--acento); min-height: 1.2em; margin-top: 0.7rem; font-size: 0.9rem; }
.gate-card.tiembla { animation: tiembla 0.4s; }
@keyframes tiembla { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* --- RACHA SEMANAL (se tacha en rojo) --- */
.racha { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.racha-cel {
  width: 38px; height: 42px; border-radius: 10px; position: relative;
  border: 1px solid var(--borde); background: var(--bg-2); color: var(--tenue);
  font-family: var(--serif); font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform 0.2s;
}
.racha-cel:hover { transform: translateY(-2px); }
.racha-cel.hoy { border-color: var(--acento); }
.racha-cel.hecho { background: #c8584f; border-color: #c8584f; color: #fff; }
.racha-cel.hecho span { opacity: 0.25; }
.racha-cel.hecho::after { content: "✗"; position: absolute; font-size: 1.4rem; color: #fff; }

/* --- CANDADO (juego bloqueado) --- */
.candado { text-align: center; padding: 1.4rem 0; color: var(--tenue); }
.candado-emoji { font-size: 2rem; margin-bottom: 0.4rem; }
.candado-txt { font-family: var(--serif); font-style: italic; font-size: 1rem; }

/* --- PREMIO DE HOY + REJILLA DE PREMIOS --- */
.premio-hoy { margin-top: 1rem; text-align: center; font-family: var(--serif); font-style: italic; color: var(--tenue); min-height: 1.2em; }
.premio-hoy.abierto { color: var(--acento); font-weight: 600; font-style: normal; }
.premios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.premio-card {
  display: flex; flex-direction: column; gap: 0.3rem; min-height: 74px;
  padding: 0.9rem; border-radius: 14px; border: 1px dashed var(--borde); background: var(--bg-2);
}
.premio-card .premio-dia { font-family: var(--serif); font-weight: 600; font-size: 0.8rem; color: var(--tenue); }
.premio-card .premio-txt { font-size: 0.92rem; }
.premio-card.cerrado { opacity: 0.7; }
.premio-card.disponible { border-style: solid; border-color: var(--acento-2); }
.premio-card.hecho { border-style: solid; border-color: #c8584f; background: linear-gradient(160deg, var(--melocoton), var(--bg-2)); }
.premio-card.hecho .premio-txt { color: var(--texto); }
@media (min-width: 560px) { .premios-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- QUIZ --- */
.quiz-opciones { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 320px; }
.quiz-op { width: 100%; }
.quiz-op.acierto { background: #6fae74 !important; color: #fff; }
.quiz-op.fallo { background: #c8736b !important; color: #fff; }

/* --- SIMÓN --- */
.simon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; width: 100%; max-width: 240px; }
.simon-pad { aspect-ratio: 1 / 1; border: none; border-radius: 14px; cursor: pointer; opacity: 0.5; transition: opacity 0.15s, transform 0.15s; }
.simon-pad.on { opacity: 1; transform: scale(1.05); }
.simon-pad.pad0 { background: var(--acento-2); }
.simon-pad.pad1 { background: var(--acento); }
.simon-pad.pad2 { background: var(--melocoton); }
.simon-pad.pad3 { background: #9bb3c9; }

/* ============================================================
   CIELO: luna + estrellas + pulido estético
   ============================================================ */
.cielo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.luna {
  position: absolute; top: 6%; right: -34px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffdf6, #f3ead4 58%, #ece0c4);
  box-shadow: 0 0 64px 20px rgba(233, 226, 245, 0.5), inset -8px -8px 18px rgba(120, 95, 60, 0.06);
  opacity: 0.55; transition: opacity 0.5s, box-shadow 0.5s;
}
.luna .crater { position: absolute; border-radius: 50%; background: rgba(120, 95, 60, 0.07); }
.luna .c1 { width: 26px; height: 26px; top: 28px; left: 30px; }
.luna .c2 { width: 16px; height: 16px; top: 62px; left: 70px; }
.luna .c3 { width: 12px; height: 12px; top: 86px; left: 36px; }
.estrella { position: absolute; border-radius: 50%; background: #d8c7a8; opacity: 0.4; animation: titila 3s ease-in-out infinite; }
@keyframes titila { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.85; transform: scale(1.15); } }

html[data-tema="noche"] .luna {
  background: radial-gradient(circle at 36% 34%, #fcf8ee, #ddd5ee 62%, #cbc1e4);
  box-shadow: 0 0 80px 26px rgba(196, 184, 235, 0.5), inset -8px -8px 20px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
}
html[data-tema="noche"] .luna .crater { background: rgba(80, 70, 110, 0.12); }
html[data-tema="noche"] .estrella { background: #fffaf0; opacity: 0.6; }

/* pulido de tarjetas */
.tarjeta {
  border-radius: 24px;
  background: linear-gradient(165deg, var(--tarjeta), var(--bg-2));
  box-shadow: 0 16px 38px var(--sombra);
}
.hero h1 { letter-spacing: -0.01em; }
.resaltado { border-radius: 2px; }

/* pulido de botones */
.boton-grande {
  background: linear-gradient(135deg, var(--acento), #dba081);
  box-shadow: 0 8px 22px rgba(201, 138, 107, 0.32);
}
.boton-grande:hover { box-shadow: 0 12px 28px rgba(201, 138, 107, 0.42); }

/* pulido cuenta atrás */
.bloque { background: linear-gradient(160deg, var(--tarjeta), var(--bg-2)); }
.num { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }

/* marquesina y barra un poco más sutiles sobre el cielo */
.topbar { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

/* ============================================================
   DISTRIBUCIÓN v2 — títulos, posición y ritmo
   ============================================================ */
main { max-width: 600px; padding: 1.4rem 1.1rem 4rem; }
.hero { padding: 1.6rem 0 2rem; }
.hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.7rem); }
.subtitulo { max-width: 32ch; }

.tarjeta { padding: 1.5rem 1.4rem; margin-bottom: 1.1rem; }
.tarjeta > h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.tarjeta > h2:first-child { margin-top: 0; }

.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acento); font-weight: 700; margin-bottom: 0.5rem;
}
.micro-label {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tenue); margin-bottom: 0.6rem;
}
.racha-wrap { text-align: center; margin-bottom: 1.2rem; }
.h3-nota { font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 0.82rem; color: var(--tenue); }

/* frase del día = cita destacada */
.frase-card { text-align: center; padding: 1.9rem 1.4rem; }
.frase-card .eyebrow { text-align: center; }
.frase-card .frase-texto { font-family: var(--serif); font-style: italic; font-size: 1.32rem; line-height: 1.5; margin-top: 0.1rem; }
.frase-card::before {
  content: "\201C"; display: block; font-family: var(--serif);
  font-size: 3.2rem; line-height: 0.4; color: var(--acento); opacity: 0.35; margin-bottom: 0.5rem;
}

/* juego de hoy = centrado y aireado */
.juego-card { text-align: center; }
.juego-card .ayuda-sub { margin-bottom: 1rem; }
.bloqueada { text-align: center; }
.bloqueada .eyebrow { text-align: center; }

/* cabecera de verdades */
.verdades-head { text-align: center; padding: 0.4rem 0 1.4rem; }
.verdades-head .ayuda-sub { max-width: 34ch; margin: 0.4rem auto 0; }

/* --- JUEGO: une las parejas --- */
.parejas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; width: 100%; }
.par-card {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; min-height: 60px;
  padding: 0.5rem 0.4rem; border-radius: 12px; border: 1px solid var(--borde);
  background: var(--bg-2); color: var(--texto); cursor: pointer; line-height: 1.2;
  transition: transform 0.15s, background 0.15s;
}
.par-card.sel { background: var(--acento-2); color: #fff; border-color: var(--acento-2); }
.par-card.ok { background: var(--melocoton); color: var(--texto); cursor: default; opacity: 0.85; }
.par-card.mal { background: #c8736b; color: #fff; }

/* --- JUEGO: ¿verdad o trola? --- */
.vt-frase { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.45; text-align: center; }

/* ============================================================
   ELITE v3 — glassmorphism, nav centrada, pantalla de inicio
   ============================================================ */

/* tarjetas de cristal flotando sobre el cielo */
.tarjeta {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid var(--glass-bd);
  border-radius: 26px;
  box-shadow: 0 18px 48px var(--sombra);
}

/* barra de navegación: centrada y de cristal */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: block;
  background: var(--glass-nav);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--glass-bd);
  box-shadow: 0 6px 22px var(--sombra);
  padding: 0.6rem 0.8rem;
}
.nav {
  flex: none; width: 100%; max-width: 560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.45rem; overflow: visible; padding: 0;
}
.nav-btn { flex: 0 0 auto; }
.nav-btn {
  font-size: 0.86rem; padding: 0.5rem 1rem; letter-spacing: 0.01em;
  border: 1px solid var(--glass-bd); background: transparent; color: var(--tenue);
}
.nav-btn:hover { color: var(--texto); border-color: var(--acento); }
.nav-btn.activa {
  background: linear-gradient(135deg, var(--acento), #dba081);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(201, 138, 107, 0.35);
}

/* hero = pantalla de inicio */
.hero { position: relative; padding: 2.6rem 0 2.6rem; }
.hero-icons { position: absolute; top: 0; right: 0; display: flex; gap: 0.4rem; }
.hero-icons .icono {
  width: 40px; height: 40px; font-size: 1.05rem; box-shadow: none;
  background: var(--glass); border: 1px solid var(--glass-bd);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.1rem); line-height: 1.08; margin-bottom: 0.7rem; }
.kicker { letter-spacing: 0.16em; }
.subtitulo { font-size: 1.06rem; max-width: 30ch; margin: 0 auto 2rem; }

/* cuenta atrás de cristal */
.countdown { gap: 0.55rem; }
.bloque {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-bd); border-radius: 18px;
  min-width: 66px; padding: 0.85rem 0.5rem; box-shadow: 0 10px 26px var(--sombra);
}
.num { font-size: 2.1rem; }

/* transición elegante al cambiar de sección */
.view.activa { animation: viewIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* días bloqueados (futuros, no clicables) */
.racha-cel.bloq, .dia-celda.bloq { opacity: 0.42; cursor: not-allowed; }
.racha-cel:disabled, .dia-celda:disabled { cursor: not-allowed; }
.dia-celda.bloq:hover { transform: none; }
.dia-celda.hecho .dia-num::after { content: " ✓"; color: #7cb87f; }

/* vales / cupones */
.premio-card.hecho { border: 1.5px dashed var(--acento); }
.premio-hoy.abierto {
  display: inline-block; margin-top: 1rem; padding: 0.55rem 1rem;
  border: 1.5px dashed var(--acento); border-radius: 14px;
  background: var(--glass); color: var(--acento); font-style: normal; font-weight: 700;
}

/* --- JUEGO: tres en raya --- */
.tres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; width: 100%; max-width: 240px; margin: 0 auto; }
.tres-cel {
  aspect-ratio: 1 / 1; font-size: 1.7rem; cursor: pointer;
  border: 1px solid var(--glass-bd); background: var(--bg-2); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.tres-cel:active { transform: scale(0.95); }

/* --- JUEGO: conecta 4 --- */
.c4-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  width: 100%; max-width: 300px; margin: 0 auto;
  background: var(--acento-2); padding: 5px; border-radius: 14px;
}
.c4-cel {
  aspect-ratio: 1 / 1; font-size: 0.95rem; border: none; cursor: pointer;
  background: var(--bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* nota del botón avisar */
.aviso-nota { margin-top: 0.7rem; color: var(--tenue); font-size: 0.88rem; min-height: 1.1em; }

/* elegir lado en "jugar juntos" */
.lado-sel { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.lado-label { font-size: 0.85rem; color: var(--tenue); }
.lado-btn.activa-lado { background: var(--acento); color: #fff; border-color: transparent; }

/* --- Animaciones --- */
@keyframes aparece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, .bola-respira, body { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Pantallas un poco más grandes --- */
@media (min-width: 560px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
}
