/* Estilos públicos del plugin Temporadas. Los colores vienen de la temporada activa. */

.temporada-franja {
	position: relative;
	z-index: 9999;
	background: var(--temporada-primario, #333);
	color: var(--temporada-texto, #fff);
	text-align: center;
	font-size: 15px;
	line-height: 1.4;
	padding: 8px 16px;
}
.temporada-franja a {
	color: inherit;
	text-decoration: none;
}
.temporada-franja a:hover,
.temporada-franja a:focus { text-decoration: underline; }

.temporada-franja__linea {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 18px;
}
.temporada-franja .temporada-franja__texto { display: inline; }

/* Cuenta regresiva dentro de la franja */
.temporada-cuenta--linea {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.temporada-cuenta--linea b { font-weight: 700; }
.temporada-cuenta.es-final { display: none; }

/* Luces navideñas colgando bajo la franja */
.temporada-franja--luces { padding-bottom: 14px; }
.temporada-luces {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -12px;
	height: 22px;
	display: flex;
	justify-content: space-between;
	padding: 0 6px;
	overflow: hidden;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent 3px, #2b2b2b 3px, #2b2b2b 5px, transparent 5px);
}
.temporada-luces i {
	flex: none;
	width: 9px;
	height: 14px;
	margin-top: 5px;
	border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: #ffd54f;
	box-shadow: 0 2px 10px 2px #ffd54f;
	animation: temporada-brillo 1.4s ease-in-out infinite alternate;
}
.temporada-luces i:nth-child(4n+1) { background: #ff3b3b; box-shadow: 0 2px 10px 2px #ff3b3b; animation-delay: 0s; }
.temporada-luces i:nth-child(4n+2) { background: #3bff6f; box-shadow: 0 2px 10px 2px #3bff6f; animation-delay: .35s; }
.temporada-luces i:nth-child(4n+3) { background: #4fc3f7; box-shadow: 0 2px 10px 2px #4fc3f7; animation-delay: .7s; }
.temporada-luces i:nth-child(4n+4) { animation-delay: 1.05s; }
@media (max-width: 767px) {
	.temporada-luces i:nth-child(n+25) { display: none; }
}
@keyframes temporada-brillo {
	from { opacity: 1; filter: brightness(1.15); }
	to   { opacity: .35; box-shadow: none; }
}

/* Lienzo de la animación (nieve, confeti...) */
.temporada-efecto {
	position: fixed;
	inset: 0;
	z-index: 99990;
	pointer-events: none;
}

/* Botón para apagar/encender la animación */
.temporada-interruptor {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99992;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 18px;
	line-height: 40px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.temporada-interruptor:hover,
.temporada-interruptor:focus-visible { background: rgba(0, 0, 0, .75); }

/* Regalo flotante con el saludo */
.temporada-regalo {
	position: fixed;
	left: 16px;
	bottom: 68px;
	z-index: 99991;
}
.temporada-regalo__abrir {
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: var(--temporada-primario, #b3001b);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
	font-size: 30px;
	line-height: 60px;
	cursor: pointer;
	animation: temporada-saltito 2.6s ease-in-out infinite;
}
.temporada-regalo.esta-abierto .temporada-regalo__abrir { animation: none; }
.temporada-regalo__abrir:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes temporada-saltito {
	0%, 70%, 100% { transform: translateY(0) rotate(0); }
	76% { transform: translateY(-10px) rotate(-8deg); }
	82% { transform: translateY(0) rotate(6deg); }
	88% { transform: translateY(-5px) rotate(-3deg); }
}
.temporada-regalo__tarjeta {
	position: absolute;
	left: 0;
	bottom: 72px;
	width: min(320px, calc(100vw - 32px));
	padding: 24px 20px 20px;
	border-radius: 16px;
	background: #fff;
	color: #222;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	border-top: 6px solid var(--temporada-primario, #b3001b);
	animation: temporada-aparecer .25s ease-out;
}
.temporada-regalo__tarjeta[hidden] { display: none; }
@keyframes temporada-aparecer {
	from { opacity: 0; transform: translateY(12px) scale(.96); }
	to   { opacity: 1; transform: none; }
}
.temporada-regalo__cerrar {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.temporada-regalo__icono { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.temporada-regalo__titulo { margin: 0 0 8px; font-size: 22px; line-height: 1.2; color: var(--temporada-primario, #b3001b); }
.temporada-regalo__texto { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.temporada-regalo__boton,
.temporada-regalo__boton:visited {
	display: inline-block;
	margin-top: 6px;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--temporada-secundario, #1e6b3a);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.temporada-regalo__boton:hover { filter: brightness(1.15); color: #fff; }
.temporada-regalo .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Cuenta regresiva grande: [temporada_cuenta_regresiva] y dentro del saludo */
.temporada-cuenta--cajas { margin: 0 0 12px; text-align: center; }
.temporada-cuenta__fila { display: flex; justify-content: center; gap: 8px; }
.temporada-cuenta__caja {
	min-width: 58px;
	padding: 8px 4px;
	border-radius: 10px;
	background: var(--temporada-primario, #b3001b);
	color: var(--temporada-texto, #fff);
}
.temporada-cuenta__num {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.temporada-cuenta__etq { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.temporada-cuenta__texto { margin: 8px 0 0; font-size: 14px; }

/* ------------------------------------------------------------------ */
/* Guirnalda bajo la franja                                            */
/* ------------------------------------------------------------------ */
.temporada-franja--guirnalda { padding-bottom: 20px; }
.temporada-guirnalda {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -26px;
	height: 40px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M-2 8 Q30 34 60 8 Q90 34 122 8' fill='none' stroke='%230b4d22' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M-2 8 Q30 34 60 8 Q90 34 122 8' fill='none' stroke='%232a8c45' stroke-width='7' stroke-dasharray='1 4' stroke-linecap='round'/%3E%3Cpath d='M-2 5 Q30 30 60 5 Q90 30 122 5' fill='none' stroke='%23175f2f' stroke-width='3' stroke-dasharray='2 5'/%3E%3Ccircle cx='30' cy='29' r='5.5' fill='%23d4001f'/%3E%3Ccircle cx='28.5' cy='27.5' r='1.6' fill='%23ffffff' fill-opacity='.7'/%3E%3Ccircle cx='90' cy='29' r='5.5' fill='%23f2c230'/%3E%3Ccircle cx='88.5' cy='27.5' r='1.6' fill='%23ffffff' fill-opacity='.7'/%3E%3Cpath d='M56 4 l4 -3 l4 3 l-4 3z' fill='%23d4001f'/%3E%3C/svg%3E") repeat-x left top / 120px 40px;
	filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3));
}
.temporada-franja--guirnalda .temporada-luces {
	bottom: -14px;
	background: none;
	z-index: 1;
}

/* ------------------------------------------------------------------ */
/* Adornos colgantes en las esquinas                                   */
/* ------------------------------------------------------------------ */
.temporada-adornos {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 0;
	pointer-events: none;
	z-index: 2;
}
.temporada-adorno {
	position: absolute;
	top: 0;
	width: 2px;
	height: var(--largo, 80px);
	background: linear-gradient(#c9a227, #e8cf6a);
	transform-origin: 50% 0;
	animation: temporada-balanceo 3.2s ease-in-out infinite alternate;
}
.temporada-adorno::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: var(--tam, 30px);
	height: var(--tam, 30px);
	margin-left: calc(var(--tam, 30px) / -2);
	border-radius: 50%;
	background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, 0) 28%), var(--color, #d4001f);
	box-shadow: inset -4px -6px 10px rgba(0, 0, 0, .3), 0 4px 10px rgba(0, 0, 0, .3);
}
.temporada-adorno--esfera::before {
	content: "";
	position: absolute;
	top: calc(100% - 4px);
	left: -4px;
	width: 10px;
	height: 7px;
	border-radius: 2px;
	background: #c9a227;
	z-index: 1;
}
.temporada-adorno--estrella::after {
	border-radius: 0;
	background: linear-gradient(135deg, #fff3b0, var(--color, #f2c230) 55%, #c99a12);
	box-shadow: none;
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	filter: drop-shadow(0 0 6px rgba(255, 215, 80, .9));
}
@keyframes temporada-balanceo {
	from { transform: rotate(6deg); }
	to   { transform: rotate(-6deg); }
}
/* En celular tapan el logo y el menú: se dejan solo guirnalda, luces y gorro. */
@media (max-width: 767px) {
	.temporada-adornos { display: none; }
}

/* ------------------------------------------------------------------ */
/* Gorro de Papá Noel                                                  */
/* ------------------------------------------------------------------ */
.temporada-gorro {
	position: absolute;
	z-index: 5;
	line-height: 0;
	pointer-events: none;
	transform: rotate(-20deg);
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.temporada-gorro svg { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ */
/* Galería [temporada_galeria]                                         */
/* ------------------------------------------------------------------ */
.temporada-galeria { max-width: 1100px; margin: 40px auto; padding: 0 16px; }
.temporada-galeria__titulo {
	margin: 0 0 18px;
	text-align: center;
	color: var(--temporada-primario, #b3001b);
	font-size: clamp(26px, 4vw, 40px);
}
.temporada-galeria__marco {
	position: relative;
	padding: 12px;
	border-radius: 22px;
	background: repeating-linear-gradient(45deg, var(--temporada-primario, #d4001f) 0 16px, #ffffff 16px 32px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.temporada-galeria__pista {
	position: relative;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: 12px;
	background: #0f3d2e;
	scrollbar-width: none;
}
.temporada-galeria__pista::-webkit-scrollbar { display: none; }
.temporada-galeria__pista:focus-visible { outline: 3px solid #f2c230; outline-offset: 2px; }
.temporada-galeria__diapo {
	position: relative;
	flex: 0 0 100%;
	height: var(--alto, 420px);
	margin: 0;
	scroll-snap-align: start;
}
.temporada-galeria__diapo a { display: block; width: 100%; height: 100%; }
.temporada-galeria__diapo img,
.temporada-galeria__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}
.temporada-galeria__diapo figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 18px 14px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	color: #fff;
	font-size: 16px;
}
.temporada-galeria__flecha {
	position: absolute;
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--temporada-primario, #b3001b);
	font-size: 32px;
	line-height: 42px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.temporada-galeria__flecha--ant { left: 22px; }
.temporada-galeria__flecha--sig { right: 22px; }
.temporada-galeria__puntos { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.temporada-galeria__puntos button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c8c8c8;
	cursor: pointer;
}
.temporada-galeria__puntos button[aria-selected="true"] { background: var(--temporada-primario, #b3001b); transform: scale(1.25); }
@media (max-width: 767px) {
	.temporada-galeria__diapo { height: min(var(--alto, 420px), 70vw); }
	.temporada-galeria__flecha { width: 36px; height: 36px; margin-top: -18px; font-size: 24px; line-height: 34px; }
}

/* ------------------------------------------------------------------ */
/* Actividades [actividades]                                           */
/* ------------------------------------------------------------------ */
.temporada-actividades { max-width: 1200px; margin: 40px auto; padding: 0 16px; }
.temporada-actividades__titulo {
	margin: 0 0 24px;
	text-align: center;
	font-size: clamp(26px, 4vw, 40px);
	color: var(--temporada-primario, #14433f);
}
.temporada-actividades__vacio { text-align: center; font-size: 17px; opacity: .8; }
.temporada-actividades__rejilla {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}
.temporada-act {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
	transition: transform .2s ease, box-shadow .2s ease;
}
.temporada-act:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.temporada-act__media { position: relative; aspect-ratio: 4 / 3; background: #14433f; }
.temporada-act__foto {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}
.temporada-act__foto--vacia {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 64px;
	background: linear-gradient(135deg, #14433f, #1e6b3a);
}
.temporada-act__dia {
	position: absolute;
	top: 12px;
	left: 12px;
	min-width: 56px;
	padding: 6px 8px;
	border-radius: 12px;
	background: #fff;
	color: var(--temporada-primario, #b3001b);
	text-align: center;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.temporada-act__dia b { display: block; font-size: 24px; }
.temporada-act__tipo {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #14433f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.temporada-act--promocion .temporada-act__tipo { background: var(--temporada-primario, #b3001b); }
.temporada-act__precio {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 8px 14px;
	border-radius: 12px;
	background: #f2c230;
	color: #1a1a1a;
	font-size: 18px;
	font-weight: 800;
	transform: rotate(-4deg);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.temporada-act__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.temporada-act__titulo { margin: 0 0 10px; font-size: 20px; line-height: 1.25; color: #14433f; }
.temporada-act__meta { margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: #444; }
.temporada-act__meta li { margin: 0 0 4px; }
.temporada-act__resumen { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #333; }
.temporada-act__boton,
.temporada-act__boton:visited {
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--temporada-secundario, #14433f);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.temporada-act__boton:hover { filter: brightness(1.15); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.temporada-act { transition: none; }
	.temporada-adorno,
	.temporada-luces i,
	.temporada-regalo__abrir,
	.temporada-regalo__tarjeta { animation: none; }
}

.temporada-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 48px 16px;
	overflow: hidden;
	text-align: center;
	color: var(--temporada-texto, #fff);
	background-color: var(--temporada-primario, #333);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.temporada-banner--imagen { color: #fff; }
.temporada-banner--imagen::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .35);
}
.temporada-banner__contenido { position: relative; max-width: 760px; }
.temporada-banner__titulo {
	margin: 0 0 12px;
	font-size: clamp(28px, 5vw, 52px);
	line-height: 1.15;
	color: inherit;
}
.temporada-banner__subtitulo {
	margin: 0 0 24px;
	font-size: clamp(16px, 2.2vw, 20px);
	color: inherit;
}
.temporada-banner__boton,
.temporada-banner__boton:visited {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--temporada-secundario, #000);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: filter .15s ease;
}
.temporada-banner__boton:hover,
.temporada-banner__boton:focus { filter: brightness(1.15); color: #fff; }
