/* ==========================================================================
   draws.css — Botes en vivo (datos de loteriamanises.com, inc/draws.php)
     1. Tarjeta «Próximo sorteo» dentro de las noticias (.lmb-live)
     2. Cuenta atrás de Navidad / Niño en la portada (.lmb-xmas)
   Colores por juego: --lmb-gc-from / --lmb-gc-to (clases .lmb-sheet__game--{juego},
   editorial.css). Foto del juego: --lmb-draw-photo. Botón y contador: pwa.css.
   ========================================================================== */

/* 1. Próximo sorteo en la noticia ------------------------------------------ */
.lmb-prose > .lmb-live,
.lmb-live {
	position: relative;
	clear: both; /* nunca al lado de una imagen flotante de las entradas antiguas */
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"head  head"
		"prize play"
		"when  play";
	align-items: center;
	gap: 6px 18px;
	box-sizing: border-box;
	margin-block: 1.8em;
	padding: 18px 20px;
	overflow: hidden;
	border-radius: 20px;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--lmb-gc-to, #0a2142) 96%, transparent) 0%, color-mix(in srgb, var(--lmb-gc-to, #0a2142) 90%, transparent) 55%, color-mix(in srgb, var(--lmb-gc-from, #0a4792) 62%, transparent) 100%),
		var(--lmb-draw-photo, none) var(--lmb-draw-pos, right center) / cover no-repeat,
		var(--lmb-gc-from, #0a4792);
	color: #fff;
	box-shadow: 0 14px 30px -18px var(--lmb-gc-to, #0a2142);
	font-size: 15px;
	line-height: 1.3;
}

.lmb-live__head {
	grid-area: head;
	display: flex;
	align-items: center;
	gap: 12px;
}

.lmb-live__icon {
	box-sizing: border-box;
	inline-size: 34px;
	block-size: 34px;
	margin: 0 !important;
	padding: 5px;
	border: 1px solid rgb(255 255 255 / .3);
	border-radius: 10px;
	background: rgb(255 255 255 / .1);
	object-fit: contain;
}

.lmb-live__kicker {
	color: var(--lmb-gold, #f5c518);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.lmb-live__titles {
	display: grid;
	gap: 2px;
}

.lmb-live__name {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.lmb-live__prize {
	grid-area: prize;
	text-shadow: 0 1px 6px rgb(0 0 0 / .35);
}

.lmb-live__prize strong {
	color: #ffd84d;
	font-size: clamp(28px, 6vw, 36px);
	font-weight: 900;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.lmb-live__prize span {
	font-size: 14px;
	font-weight: 600;
	opacity: .9;
}

.lmb-live__when {
	grid-area: when;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	font-size: 13.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.lmb-live .lmb-draw__count:not(:empty),
.lmb-xmas .lmb-draw__count:not(:empty) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgb(255 255 255 / .16);
	color: #fff;
}

.lmb-live__price {
	opacity: .85;
}

.lmb-live .lmb-live__play {
	grid-area: play;
	min-block-size: 46px;
	padding: 0 22px;
	font-size: 15px;
	text-decoration: none;
}

.lmb-live a:focus-visible,
.lmb-xmas a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 599px) {
	.lmb-prose > .lmb-live,
	.lmb-live {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "prize" "when" "play";
		padding: 16px;
	}

	.lmb-live .lmb-live__play {
		justify-self: stretch;
		margin-block-start: 6px;
	}
}

/* 2. Cuenta atrás de Navidad en la portada --------------------------------- */
.lmb-xmas {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	box-sizing: border-box;
	padding: clamp(22px, 3vw, 40px) clamp(20px, 4vw, 48px);
	overflow: hidden;
	border-radius: 28px;
	background:
		linear-gradient(100deg, var(--lmb-gc-to, #7f1d1d) 0%, color-mix(in srgb, var(--lmb-gc-to, #7f1d1d) 88%, transparent) 45%, color-mix(in srgb, var(--lmb-gc-from, #991b1b) 30%, transparent) 100%),
		var(--lmb-draw-photo, none) center 30% / cover no-repeat,
		var(--lmb-gc-from, #991b1b);
	color: #fff;
	box-shadow: 0 24px 50px -28px var(--lmb-gc-to, #7f1d1d);
	isolation: isolate;
}

/* Destellos dorados suaves (decorativos). */
.lmb-xmas::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(2px 2px at 12% 20%, rgb(255 230 140 / .9), transparent 60%),
		radial-gradient(2px 2px at 38% 78%, rgb(255 230 140 / .7), transparent 60%),
		radial-gradient(3px 3px at 64% 14%, rgb(255 230 140 / .8), transparent 60%),
		radial-gradient(2px 2px at 82% 64%, rgb(255 230 140 / .7), transparent 60%),
		radial-gradient(600px 300px at 90% 0%, rgb(245 197 24 / .18), transparent 70%);
	pointer-events: none;
}

.lmb-xmas__body {
	display: grid;
	justify-items: start;
	gap: 8px;
	min-inline-size: 0;
}

.lmb-xmas__kicker {
	margin: 0; /* es un h2 (SEO): mismo aspecto que el antiguo rótulo */
	font-family: inherit;
	line-height: 1.65;
	color: var(--lmb-gold, #f5c518);
	font-size: min(.75rem, 12px);
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.lmb-xmas .lmb-xmas__title {
	margin: 0;
	color: #fff;
	font-size: min(1.25rem, 20px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
}

.lmb-xmas__clock {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lmb-xmas__clock span {
	display: grid;
	justify-items: center;
	min-inline-size: 76px;
	padding: 10px 8px 8px;
	border: 1px solid rgb(255 255 255 / .22);
	border-radius: 16px;
	background: rgb(255 255 255 / .1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .2);
}

.lmb-xmas__clock b {
	font-size: min(2.75rem, 44px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.lmb-xmas__clock span:first-child b {
	color: #ffd84d;
}

.lmb-xmas__clock i {
	margin-block-start: 4px;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .8;
}

.lmb-xmas__prize {
	font-size: min(1rem, 16px);
	font-weight: 600;
	opacity: .95;
}

.lmb-xmas__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-block-start: 6px;
}

.lmb-xmas .lmb-xmas__play {
	min-block-size: 50px;
	padding: 0 26px;
	font-size: 16px;
	text-decoration: none;
}

.lmb-xmas__news {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgb(255 255 255 / .45);
	text-underline-offset: 3px;
}

/* Bola dorada con la fecha (como NumberBall de la app). */
.lmb-xmas__ball {
	display: grid;
	place-content: center;
	inline-size: clamp(120px, 14vw, 170px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--lmb-ball-gold, #f5c518);
	box-shadow: var(--lmb-ball-shadow-gold, 0 4px 20px rgb(245 197 24 / .35)), 0 0 0 1px rgb(255 236 150 / .7), 0 30px 60px -20px rgb(0 0 0 / .5);
	color: var(--lmb-blue-night, #06142a);
	font-size: clamp(14px, 1.6vw, 18px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: .1em;
	text-align: center;
}

.lmb-xmas__ball b {
	font-size: clamp(48px, 6vw, 72px);
	letter-spacing: -.03em;
}

@media (prefers-reduced-motion: no-preference) {
	.lmb-xmas__ball {
		animation: lmb-draw-float 6s ease-in-out infinite;
	}
}

@media (max-width: 781px) {
	.lmb-xmas {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 22px;
	}

	.lmb-xmas__ball {
		position: absolute;
		inset-block-start: 16px;
		inset-inline-end: 16px;
		inline-size: 78px;
		font-size: 10px;
	}

	.lmb-xmas__ball b {
		font-size: 30px;
	}

	.lmb-xmas__title {
		margin-block-start: 6px !important;
	}

	.lmb-xmas__clock {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
		inline-size: 100%;
	}

	.lmb-xmas__clock span {
		min-inline-size: 0;
		padding: 8px 4px 6px;
		border-radius: 12px;
	}

	.lmb-xmas__clock b {
		font-size: 28px;
	}

	.lmb-xmas__clock i {
		font-size: 10px;
	}

	.lmb-xmas__actions {
		inline-size: 100%;
	}

	.lmb-xmas .lmb-xmas__play {
		flex: 1 1 100%;
	}
}

@keyframes lmb-draw-float {
	50% { translate: 0 -4px; }
}

/* La negrita de la prosa lleva subrayado de rotulador: aquí no. */
.lmb-prose .lmb-live strong,
.lmb-live strong {
	padding: 0;
	background: none;
	box-shadow: none;
}

@media (max-width: 781px) {
	/* Hueco para la bola de la fecha. */
	.lmb-xmas__kicker,
	.lmb-xmas .lmb-xmas__title {
		padding-inline-end: 92px;
	}
}

/* 3. Zona destacada de la portada: temporada + bote (como las tarjetas resaltadas de la app) ---- */
.lmb-features {
	display: grid;
	gap: 18px;
}

@media (min-width: 1100px) {
	.lmb-features.has-two {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	}
}

/* Móvil: las dos tarjetas en carrusel deslizable (como la app). */
@media (max-width: 781px) {
	.lmb-features.has-two {
		grid-auto-flow: column;
		grid-auto-columns: 88%;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 16px));
		padding-inline: var(--wp--style--root--padding-left, 16px);
		scroll-padding-inline: var(--wp--style--root--padding-left, 16px);
	}

	.lmb-features.has-two::-webkit-scrollbar {
		display: none;
	}

	.lmb-features.has-two > .lmb-xmas {
		scroll-snap-align: start;
	}
}

/* Tarjeta del bote. */
.lmb-xmas.is-bote {
	align-items: start;
}

.lmb-xmas .lmb-xmas__amount {
	margin: 0;
	color: #ffd84d;
	font-size: min(3.5rem, 56px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.035em;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 12px rgb(0 0 0 / .35);
}

.lmb-features.has-two .lmb-xmas.is-bote .lmb-xmas__clock span {
	min-inline-size: 60px;
}

.lmb-features.has-two .lmb-xmas.is-bote .lmb-xmas__clock b {
	font-size: min(2rem, 32px);
}

/* Si el sorteo es hoy, la caja de días sobra. */
.lmb-xmas__clock.is-today span:first-child {
	display: none;
}

.lmb-xmas__balls {
	position: relative;
	inline-size: 100px;
	block-size: 96px;
	pointer-events: none;
}

.lmb-xmas__balls i {
	position: absolute;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-style: normal;
	font-weight: 800;
	box-shadow: inset 0 -4px 8px rgb(0 0 0 / .18), inset 0 3px 6px rgb(255 255 255 / .6), 0 8px 18px -8px rgb(0 0 0 / .55);
}

.lmb-xmas__balls i:nth-child(1) {
	inset: 0 0 auto auto;
	inline-size: 54px;
	block-size: 54px;
	background: radial-gradient(circle at 34% 28%, #dbeafe 0 10%, #60a5fa 40%, #1d4ed8 100%);
	color: #fff;
	font-size: 18px;
}

.lmb-xmas__balls i:nth-child(2) {
	inset: auto auto 0 0;
	inline-size: 46px;
	block-size: 46px;
	background: var(--lmb-ball-white, radial-gradient(circle at 34% 28%, #fff 0 32%, #e2e8f0 100%));
	color: var(--lmb-blue-night, #06142a);
	font-size: 16px;
}

.lmb-xmas__balls i:nth-child(3) {
	inset: auto 0 2px auto;
	inline-size: 40px;
	block-size: 40px;
	background: var(--lmb-ball-gold, #f5c518);
	color: var(--lmb-blue-night, #06142a);
	font-size: 16px;
}

@media (prefers-reduced-motion: no-preference) {
	.lmb-xmas__balls i {
		animation: lmb-draw-float 6s ease-in-out infinite;
	}

	.lmb-xmas__balls i:nth-child(2) { animation-delay: -2s; }
	.lmb-xmas__balls i:nth-child(3) { animation-delay: -4s; }
}

@media (max-width: 781px) {
	.lmb-xmas__balls {
		position: absolute;
		inset-block-start: 14px;
		inset-inline-end: 14px;
		transform: scale(.72);
		transform-origin: top right;
	}

	.lmb-xmas.is-bote .lmb-xmas__kicker {
		padding-inline-end: 80px;
	}

	.lmb-xmas .lmb-xmas__amount {
		font-size: 44px;
	}
}

/* 4. Bola de madera del bombo de Navidad (boj torneado y barnizado, número grabado) ---------- */
.lmb-wood-ball,
.lmb-xmas .lmb-xmas__ball.lmb-wood-ball,
.lmb-draw-hero.is-season .lmb-draw-hero__date {
	background:
		/* brillo del barniz */
		radial-gradient(circle at 33% 27%, rgb(255 250 235 / .9) 0 4%, rgb(255 246 222 / .4) 11%, transparent 24%),
		/* vetas suaves de la madera, curvadas como en una pieza torneada */
		repeating-radial-gradient(ellipse 120% 80% at 30% 130%, rgb(150 95 40 / .045) 0 4px, transparent 4px 13px, rgb(150 95 40 / .03) 13px 15px, transparent 15px 24px),
		/* volumen: boj claro que se oscurece hacia el borde */
		radial-gradient(circle at 40% 36%, #f3dcac 0%, #e6c58a 38%, #d2a764 66%, #ad7c41 88%, #84592b 100%);
	box-shadow:
		inset 0 -12px 22px rgb(90 52 16 / .32),
		inset 0 8px 14px rgb(255 246 225 / .35),
		0 0 0 1px rgb(120 78 32 / .3),
		0 26px 50px -20px rgb(0 0 0 / .55);
	color: #2f1a07;
	font-family: "Times New Roman", Times, serif;
}

/* Número grabado: hundido en la madera (luz abajo, sombra arriba). */
.lmb-wood-ball b,
.lmb-wood-ball small,
.lmb-draw-hero.is-season .lmb-draw-hero__date b {
	color: #2f1a07;
	text-shadow: 0 1px 0 rgb(255 240 210 / .75), 0 -1px 0 rgb(50 25 5 / .55);
}

.lmb-wood-ball b {
	font-weight: 700;
	letter-spacing: -.02em;
}

.lmb-wood-ball small {
	display: block;
	margin-block-start: 4px;
	font-family: var(--wp--preset--font-family--geist, sans-serif);
	font-size: .8em;
	font-weight: 800;
	letter-spacing: .18em;
}

/* Reloj sin la caja de días (sorteo hoy): tres columnas. */
@media (max-width: 781px) {
	.lmb-xmas__clock.is-today {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lmb-features.has-two .lmb-xmas.is-bote .lmb-xmas__clock span {
		min-inline-size: 0;
	}

	.lmb-features.has-two .lmb-xmas.is-bote .lmb-xmas__clock b {
		font-size: 28px;
	}
}

/* Móvil: la zona destacada de la portada no se repite; los botes y cuentas atrás
   están en el botón «Juegos» de la barra inferior. */
@media (max-width: 781px) {
	.lmb-features {
		display: none;
	}
}

/* Pulido escritorio (nov. 2026) ------------------------------------------------- */

/* Aire entre el desvanecido de la foto de portada y las tarjetas destacadas. */
@media (min-width: 782px) {
	.lmb-home > .lmb-features {
		margin-block-start: clamp(1.25rem, .5rem + 1.5vw, 2.25rem) !important;
	}
}

/* El reloj nunca se parte en dos filas: cajas flexibles en una sola línea. */
.lmb-xmas__clock {
	flex-wrap: nowrap;
}

.lmb-xmas__clock span {
	flex: 1 1 0;
	min-inline-size: 0;
	max-inline-size: 84px;
}

.lmb-features.has-two .lmb-xmas__clock b {
	font-size: clamp(1.5rem, .6rem + 1.6vw, 2.5rem);
}

/* Tarjeta del bote: las bolas flotan en la esquina y no roban ancho al texto. */
.lmb-xmas.is-bote {
	grid-template-columns: minmax(0, 1fr);
}

.lmb-xmas.is-bote .lmb-xmas__balls {
	position: absolute;
	inset-block-start: 18px;
	inset-inline-end: 18px;
	transform: scale(.82);
	transform-origin: top right;
}

.lmb-xmas.is-bote .lmb-xmas__kicker,
.lmb-xmas.is-bote .lmb-xmas__amount {
	padding-inline-end: 96px;
}

/* Tarjeta de Navidad: velo más denso bajo el texto (la cifra no cae sobre caras). */
.lmb-xmas.is-season {
	background:
		linear-gradient(100deg, var(--lmb-gc-to, #7f1d1d) 0%, color-mix(in srgb, var(--lmb-gc-to, #7f1d1d) 94%, transparent) 40%, color-mix(in srgb, var(--lmb-gc-to, #7f1d1d) 70%, transparent) 62%, color-mix(in srgb, var(--lmb-gc-from, #991b1b) 25%, transparent) 100%),
		var(--lmb-draw-photo, none) center 30% / cover no-repeat,
		var(--lmb-gc-from, #991b1b);
}

.lmb-xmas__prize {
	text-wrap: balance;
}
