/* ==========================================================
   Fuego Dulce · Banner "Lluvia de dulces" (widget fd-lluvia)
   Titular en Anton · detalles en Cookies
   ========================================================== */
@font-face {
	font-family: 'FD Cookies';
	src: url('fonts/Cookies.ttf') format('truetype');
	font-display: swap;
}

.fdl {
	--fdl-bg: #c60342;
	--fdl-bg2: #e0175a;
	--fdl-yellow: #ffd84a;
	--fdl-ink: #26101b;
	--fdl-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--fdl-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--fdl-bagw: clamp(200px, 25vw, 400px);
	position: relative; display: grid; justify-items: center; align-content: start;
	min-height: clamp(760px, 100vh, 1000px); padding: clamp(40px, 5.5vw, 72px) clamp(20px, 4vw, 60px) 0;
	border-radius: clamp(28px, 4vw, 56px); overflow: hidden; isolation: isolate; text-align: center; box-sizing: border-box;
	background: radial-gradient(70% 60% at 50% 30%, var(--fdl-bg2) 0%, transparent 70%), var(--fdl-bg);
	font-family: 'DM Sans', system-ui, sans-serif; color: #fff; touch-action: pan-y;
}
.fdl *, .fdl *::before, .fdl *::after { box-sizing: border-box; }
/* Trama de puntitos muy suave */
.fdl::before {
	content: ''; position: absolute; inset: 0; z-index: -2; opacity: 0.18;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.3px, transparent 1.6px) 0 0 / 22px 22px;
	-webkit-mask: linear-gradient(180deg, #000 0%, transparent 75%); mask: linear-gradient(180deg, #000 0%, transparent 75%);
}
.fdl-fun { font-family: 'FD Cookies', 'Bricolage Grotesque', sans-serif !important; font-weight: 400 !important; letter-spacing: 0.01em; }
.fdl .fdb-acc { position: relative; display: inline-block; }
.fdl .fdb-acc::after { content: ''; position: absolute; left: 50%; top: -0.08em; width: 0.16em; height: 0.3em; border-radius: 0.1em; background: currentColor; transform: translateX(-30%) rotate(28deg); }
.fdl .fdb-acc--i::after { top: -0.2em; height: 0.26em; }
.fdl .fdb-acc--n::after { content: '~'; width: auto; height: auto; top: -0.42em; background: none; transform: translateX(-50%) scaleX(1.3); font: 700 0.75em/1 'DM Sans', sans-serif; }

/* Texto (encima de las gomitas) */
.fdl__copy { position: relative; z-index: 3; display: grid; justify-items: center; max-width: 980px; pointer-events: none; }
.fdl__copy a { pointer-events: auto; }
.fdl-sticker {
	display: inline-block; padding: 10px 18px 8px; border-radius: 999px; background: var(--fdl-yellow); color: var(--fdl-ink);
	font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1; transform: rotate(-4deg); box-shadow: 0 4px 0 rgba(38, 16, 27, 0.25);
	animation: fdl-in 0.7s var(--fdl-spring) 0.1s both;
}
.fdl .fdl__title {
	margin: 18px 0 16px; padding: 0; font-family: 'Anton', 'Arial Narrow', sans-serif !important; font-weight: 400 !important;
	font-size: clamp(3.4rem, 1.2rem + 7.4vw, 8.6rem); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; color: #fff;
	-webkit-text-stroke: 1.5px rgba(38, 16, 27, 0.35); paint-order: stroke fill; text-shadow: 0 7px 0 rgba(38, 16, 27, 0.28);
}
.fdl__title .l1, .fdl__title .l2 { display: block; }
.fdl__title .l1 { animation: fdl-slam 0.7s var(--fdl-spring) 0.15s both; }
.fdl__title .l2 { color: var(--fdl-yellow); animation: fdl-slam 0.7s var(--fdl-spring) 0.4s both; }
.fdl .fdl__lead { max-width: 40ch; margin: 0 0 26px; color: rgba(255, 255, 255, 0.95); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; animation: fdl-up 0.7s var(--fdl-ease) 0.6s both; }
.fdl__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; animation: fdl-up 0.7s var(--fdl-ease) 0.75s both; }
.fdl .fdl-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 30px; border-radius: 999px; border: 0;
	font: 700 17px/1 'DM Sans', sans-serif; text-decoration: none; transition: transform 0.35s var(--fdl-spring), box-shadow 0.3s;
}
.fdl .fdl-btn svg { width: 20px; height: 20px; transition: transform 0.3s var(--fdl-ease); }
.fdl .fdl-btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.fdl .fdl-btn:hover svg { transform: translateX(4px); }
.fdl .fdl-btn--yellow, .fdl .fdl-btn--yellow:hover { background: var(--fdl-yellow); color: var(--fdl-ink); box-shadow: 0 6px 0 rgba(38, 16, 27, 0.35); }
.fdl .fdl-btn--white, .fdl .fdl-btn--white:hover { background: #fff; color: var(--fdl-ink); box-shadow: 0 6px 0 rgba(38, 16, 27, 0.25); }
.fdl .fdl__proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 22px 0 0; padding: 0; list-style: none; animation: fdl-up 0.7s var(--fdl-ease) 0.9s both; }
.fdl__proof li { margin: 0; padding: 7px 14px 5px; border-radius: 999px; background: rgba(38, 16, 27, 0.22); font-size: 1rem; line-height: 1.1; }

/* Campo de juego: las gomitas caen sobre todo el banner */
.fdl__field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fdl__g {
	position: absolute; left: 0; top: 0; display: block; max-width: none; object-fit: contain; will-change: transform;
	filter: drop-shadow(0 8px 7px rgba(38, 16, 27, 0.35)); transform: translate3d(-200px, -200px, 0);
}
.fdl__bag {
	position: absolute; left: 80%; bottom: -3%; z-index: 1; width: var(--fdl-bagw); height: auto; max-width: none; transform-origin: 50% 100%;
	translate: -50% 0; filter: drop-shadow(0 20px 22px rgba(38, 16, 27, 0.4)); animation: fdl-bag 1s var(--fdl-spring) 0.3s both;
}
.fdl__tag {
	position: absolute; left: 80%; bottom: calc(var(--fdl-bagw) * 1.47 - 2%); z-index: 4; translate: -50% 0;
	padding: 9px 16px 7px; border-radius: 999px; background: #fff; color: var(--fdl-bg); white-space: nowrap;
	font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem); line-height: 1; transform: rotate(-6deg); box-shadow: 0 5px 0 rgba(38, 16, 27, 0.22);
	animation: fdl-tag 2.6s ease-in-out 1.4s infinite both;
}
/* Invitación a jugar: se queda hasta que la persona juega con los dulces */
.fdl__hint { position: absolute; left: 50%; bottom: clamp(150px, 20vh, 230px); z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 10px; border-radius: 999px; background: #fff; color: var(--fdl-bg); font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.45rem); line-height: 1; white-space: nowrap; box-shadow: 0 8px 0 rgba(38, 16, 27, 0.2); translate: -50% 0; opacity: 0; animation: fdl-hint-in 0.6s var(--fdl-spring) 2.2s forwards, fdl-hint-bob 2.4s ease-in-out 2.8s infinite; pointer-events: none; transition: opacity 0.4s, scale 0.4s; }
.fdl__hint-hand { display: inline-block; font-size: 1.4em; animation: fdl-hand 1.2s ease-in-out infinite; }
.fdl__hint .m { display: none; }
.fdl.is-played .fdl__hint { opacity: 0 !important; scale: 0.8; animation: none; }
@keyframes fdl-hint-in { from { opacity: 0; transform: translateY(14px) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes fdl-hint-bob { 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes fdl-hand { 0%, 100% { transform: translateX(0) rotate(-10deg); } 50% { transform: translateX(10px) rotate(10deg); } }

/* Jueguito: canasta en la bolsa */
.fdl__bag.is-gulp { animation: fdl-gulp 0.45s var(--fdl-spring); }
@keyframes fdl-gulp { 35% { scale: 1.06 0.94; } 70% { scale: 0.98 1.03; } }
.fdl__plus { position: absolute; z-index: 5; translate: -50% -100%; color: var(--fdl-yellow); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); line-height: 1; text-shadow: 0 3px 0 rgba(38, 16, 27, 0.35); pointer-events: none; animation: fdl-plus 1.1s ease-out forwards; }
@keyframes fdl-plus { from { opacity: 0; transform: translateY(10px) scale(0.6); } 25% { opacity: 1; transform: translateY(-10px) scale(1.15); } to { opacity: 0; transform: translateY(-70px) scale(1); } }
.fdl__score { position: absolute; z-index: 5; left: 80%; bottom: calc(var(--fdl-bagw) * 1.47 + 54px); translate: -50% 0; padding: 9px 16px 7px; border-radius: 999px; background: var(--fdl-yellow); color: var(--fdl-ink); font-size: clamp(1rem, 0.85rem + 0.5vw, 1.3rem); line-height: 1; white-space: nowrap; box-shadow: 0 5px 0 rgba(38, 16, 27, 0.22); pointer-events: none; }
.fdl__score.is-pop { animation: fdl-score 0.45s var(--fdl-spring); }
@keyframes fdl-score { 40% { transform: scale(1.18) rotate(-4deg); } }
.fdl.has-score .fdl__tag { opacity: 0; }

@keyframes fdl-slam { from { opacity: 0; transform: scale(1.7) translateY(-10px); } 60% { opacity: 1; } }
@keyframes fdl-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes fdl-in { from { opacity: 0; transform: translateY(14px) rotate(-12deg) scale(0.8); } }
@keyframes fdl-bag { from { opacity: 0; transform: translateY(120%) rotate(8deg); } }
@keyframes fdl-tag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(3deg) scale(1.05); } }
@keyframes fdl-hint { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* Sticker de temporada (Halloween, Navidad…) */
@keyframes fdl-season { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
.fdl__season { position: absolute; z-index: 6; left: clamp(16px, 3vw, 48px); top: clamp(16px, 3vw, 40px); width: clamp(120px, 12vw, 190px); height: auto; filter: drop-shadow(0 14px 18px rgba(38, 16, 27, 0.35)); animation: fdl-season 5s ease-in-out infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
	.fdl *, .fdl *::before, .fdl *::after { animation: none !important; transition-duration: 0.01ms !important; }
	.fdl__hint { opacity: 1; transform: rotate(-3deg); }
}
@media (max-width: 760px) {
	.fdl { min-height: 700px; }
	.fdl__season { width: 76px; top: 8px; left: 8px; }
	.fdl { --fdl-bagw: 150px; }
	.fdl__bag { left: 78%; }
	.fdl__score { left: auto; right: 12px; translate: none; bottom: calc(var(--fdl-bagw) * 1.47 + 16px); }
	/* En celular el espacio es poco: sin etiqueta ni datos (ya están en la barra de arriba). */
	.fdl__tag, .fdl .fdl__proof { display: none; }
	.fdl .fdl-btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
}
@media (hover: none) { .fdl__hint .d { display: none; } .fdl__hint .m { display: inline; } .fdl__hint { bottom: 140px; } }
