/* =========================================================
   Packs de temporada (aula/carnaval, paz, primavera, libro, constitucion, region-murcia · js/temporada.js)
   Usa también css/navidad.css (tarjetas, imprimibles, familias) y css/juegos.css.
   ========================================================= */

/* Dibujos de las tarjetas de arriba */
.tp-tarjeta { width: 100%; height: 100%; display: grid; place-items: center; }
.tp-tarjeta svg { width: 58%; height: 78%; }

/* Fondos de las escenas (cuento y tarjetas) */
[data-fondo="dia"] { background: linear-gradient(180deg, #DCEEFA, #FFF6E2); }
[data-fondo="prado"] { background: linear-gradient(180deg, #DCEEFA 0 62%, #CFE9C2 62%); }
[data-fondo="nublado"] { background: linear-gradient(180deg, #D5DCE6, #EEF1F5 62%, #D7E6CF 62%); }
[data-fondo="noche"] { background: linear-gradient(180deg, #4A3F6B, #7A6A9C); }
[data-fondo="nieve"] { background: linear-gradient(180deg, #E6EEF6 0 62%, #FFFFFF 62%); }
[data-fondo="mar"] { background: linear-gradient(180deg, #DCEEFA 0 52%, #9DCBEA 52%); }
[data-fondo="fiesta"] { background: radial-gradient(circle at 20% 20%, #FFE7A3, transparent 40%), radial-gradient(circle at 80% 30%, #F3E3FF, transparent 40%), linear-gradient(180deg, #FFF6E2, #FFE9D6); }
[data-fondo="papel"] { background: #FFFFFF; }
[data-fondo="clase"] { background: linear-gradient(180deg, #FFF1D6 0 64%, #E9C9A0 64% 66%, #F3DDB9 66%); }
[data-fondo="huerta"] { background: repeating-linear-gradient(176deg, transparent 0 14px, rgba(62, 156, 104, .2) 14px 20px) 0 100% / 100% 40% no-repeat, linear-gradient(180deg, #DCEEFA 0 60%, #CFE9C2 60%); }
[data-fondo="playa"] { background: linear-gradient(180deg, #DCEEFA 0 40%, #9DCBEA 40% 68%, #F6E2B8 68%); }

/* Minicuento */
.tp-cuento { gap: 14px; }
.tp-cuento__escena {
  position: relative; width: min(100%, 860px); aspect-ratio: 16 / 9; border-radius: var(--r-l, 24px);
  overflow: hidden; box-shadow: var(--sombra);
}
.escenario:fullscreen .tp-cuento__escena { width: min(100%, 140vh); }
.tp-cosa { position: absolute; }
.tp-cosa svg { display: block; width: 100%; height: auto; }
.tp-cosa--nina { bottom: 4%; }
@media (prefers-reduced-motion: no-preference) {
  .tp-cosa:not(.tp-cosa--nina) { animation: tp-flota 5s ease-in-out infinite; }
  .tp-cosa:nth-child(2n):not(.tp-cosa--nina) { animation-delay: -2s; animation-duration: 6s; }
}
@keyframes tp-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
.tp-cuento__texto {
  margin: 0; max-width: 46ch; min-height: 3.2em; text-align: center;
  font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.3;
}
.escenario:fullscreen .tp-cuento__texto { font-size: clamp(1.6rem, 4.4vh, 3rem); max-width: 52ch; }
.tp-cuento__mandos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tp-cuento__cuenta { margin: 0; }

/* Juegos */
.tp-panel { display: grid; place-items: center; width: 100%; }
.tp-panel:empty { display: none; }
.tp-serie { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(6px, 1.4vw, 14px); }
.tp-serie__pieza {
  width: clamp(64px, 10vw, 110px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 18px; background: var(--papel); box-shadow: inset 0 0 0 2px var(--borde);
}
.tp-serie__pieza svg { width: 88%; height: 88%; }
.tp-serie__hueco { font: 800 clamp(2rem, 5vw, 3.4rem)/1 var(--f-titulo); color: var(--tinta-2); border: 3px dashed var(--tinta-2); box-shadow: none; background: transparent; }
.juego:fullscreen .tp-serie__pieza { width: 14vh; }
.tp-paz__dibujo svg, .tp-libro__cosa svg { width: clamp(90px, 14vw, 150px); height: auto; }
.tp-libro__cosa { padding: 12px; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 2px var(--borde); }
.tp-maceta svg { width: clamp(200px, 28vw, 300px); height: auto; overflow: visible; }
.juego:fullscreen .tp-maceta svg { width: 30vh; }
@media (prefers-reduced-motion: no-preference) {
  .tp-petalo { animation: tp-abre .6s ease-out both; transform-box: fill-box; transform-origin: 50% 50%; }
  .tp-gotas { animation: tp-llueve 1s linear infinite; }
}
@keyframes tp-abre { from { transform: scale(0); } }
@keyframes tp-llueve { from { transform: translateY(-6px); opacity: .3; } to { transform: translateY(8px); opacity: 1; } }
.tp-numero { min-width: clamp(80px, 12vw, 130px); min-height: clamp(80px, 12vw, 130px); font: 800 clamp(2rem, 5vw, 3.4rem)/1 var(--f-titulo); }
.tp-portada img { display: block; width: clamp(130px, 18vw, 220px); height: auto; border-radius: 12px; }
.juego:fullscreen .tp-portada img { width: 26vh; }
.tp-juego .juego-opcion__palabra { max-width: 22ch; text-align: center; line-height: 1.2; }

/* Votamos en clase (Día de la Constitución) */
.tp-votar { gap: 14px; }
.tp-votar__columnas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 40px); width: min(100%, 760px); margin: 0 auto; }
.tp-votar__col { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; transition: background .3s; }
.tp-votar__col--gana { background: #E4F6EA; box-shadow: inset 0 0 0 4px #3E9C68; }
.tp-votar__boton { width: 100%; }
.tp-votar__monton { display: flex; flex-wrap: wrap-reverse; justify-content: center; align-content: flex-start; gap: 6px; min-height: 40px; width: 100%; }
.tp-votar__ficha { width: clamp(18px, 2.6vw, 28px); aspect-ratio: 1; border-radius: 50%; background: #FFD86B; box-shadow: inset 0 0 0 2px var(--tinta); animation: tp-ficha .3s ease-out; }
.tp-votar__num { margin: 0; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 var(--f-titulo); }
@keyframes tp-ficha { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tp-votar__ficha { animation: none; } }

/* Día de la Región de Murcia: ¡a los bolos! */
.tp-bolos { gap: 14px; }
.tp-bolos__pista {
  position: relative; width: min(100%, 620px); margin: 0 auto; padding: 18px 12px 70px;
  border-radius: 22px; background: linear-gradient(180deg, #F3DDB9, #E9C9A0); box-shadow: inset 0 0 0 3px rgba(29, 42, 77, .12);
}
.tp-bolos__bolos { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tp-bolos__fila { display: flex; justify-content: center; gap: clamp(4px, 1.6vw, 14px); margin-top: -2%; }
.tp-bolo { width: clamp(56px, 12vw, 100px); transition: transform .5s cubic-bezier(.5, -0.4, .6, 1.3), opacity .5s; transform-origin: 50% 95%; }
.tp-bolo svg { display: block; width: 100%; height: auto; }
.tp-bolo--caido { transform: rotate(78deg) translateY(10%); }
.tp-bolos__bola { position: absolute; left: 50%; bottom: 6px; width: clamp(44px, 8vw, 64px); transform: translateX(-50%); }
.tp-bolos__bola svg { display: block; width: 100%; height: auto; }
.tp-bolos__bola--va { transition: transform .7s ease-in, opacity .25s .55s; transform: translate(-50%, -160%) scale(.6); opacity: 0; }
.tp-bolos__numeros { justify-content: center; }
.tp-bolos__num { min-width: clamp(70px, 12vw, 110px); font: 800 clamp(2rem, 5vw, 3rem)/1 var(--f-titulo); }
.escenario:fullscreen .tp-bolo { width: 9vh; }
@media (prefers-reduced-motion: reduce) { .tp-bolo, .tp-bolos__bola--va { transition: none; } }
