/* ==========================================================
   Fuego Dulce · Cierre "Tu caja te espera" (widget fd-cierre-caja)
   Fondo blanco a todo lo ancho con el confeti y las estrellas de la caja.
   ========================================================== */
@font-face {
	font-family: 'FD Cookies';
	src: url('fonts/Cookies.ttf') format('truetype');
	font-display: swap;
}

.fdcc {
	--cc-brand: #c60342; --cc-ink: #26101b; --cc-yellow: #ffd84a;
	--cc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative; box-sizing: border-box; padding: clamp(30px, 4vw, 50px) max(20px, calc((100% - 1240px) / 2)) clamp(70px, 8vw, 110px);
	background: #fff; color: var(--cc-ink); font-family: 'DM Sans', system-ui, sans-serif; overflow: hidden; isolation: isolate;
}
/* Fondo: confeti y estrellas de la caja sobre blanco */
.fdcc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url("confeti.webp") center / min(1300px, 140%) auto repeat; opacity: 0.85; pointer-events: none;
	/* Las estrellas se desvanecen detrás del texto para que destaque el contenido */
	-webkit-mask-image: radial-gradient(ellipse 34% 58% at 30% 52%, transparent 0%, rgba(0, 0, 0, 0.15) 45%, #000 100%);
	mask-image: radial-gradient(ellipse 34% 58% at 30% 52%, transparent 0%, rgba(0, 0, 0, 0.15) 45%, #000 100%); }
.fdcc *, .fdcc *::before, .fdcc *::after { box-sizing: border-box; }
.fdcc img { max-width: none; }
.fdcc-fun { font-family: 'FD Cookies', 'Bricolage Grotesque', sans-serif !important; font-weight: 400 !important; letter-spacing: 0.01em; }
.fdcc .fdb-acc { position: relative; display: inline-block; }
.fdcc .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); }
.fdcc .fdb-acc--i::after { top: -0.2em; height: 0.26em; }
.fdcc .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; }

.fdcc__in { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(20px, 4vw, 60px); padding-top: clamp(40px, 5vw, 70px); }
.fdcc-sticker { display: inline-block; padding: 9px 16px 7px; border-radius: 999px; background: var(--cc-yellow); color: var(--cc-ink); font-size: 1.15rem; line-height: 1; transform: rotate(-4deg); }
.fdcc .fdcc-h2 { margin: 14px 0 0; padding: 0; color: var(--cc-ink); font: 400 clamp(3rem, 2rem + 4.4vw, 6.4rem)/0.92 'Anton', sans-serif; text-transform: uppercase; }
.fdcc-h2 span { display: block; }
.fdcc-h2 .y { color: var(--cc-brand); }
.fdcc-p { max-width: 34ch; margin: 16px 0 26px; color: #6b5560; font-size: 18px; line-height: 1.5; }
.fdcc .fdcc-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 32px; border-radius: 999px; background: var(--cc-yellow); color: var(--cc-ink);
	font: 800 18px/1 'DM Sans', sans-serif; text-decoration: none; box-shadow: 0 7px 0 #b8941a; transition: transform 0.25s var(--cc-spring), box-shadow 0.25s;
}
.fdcc .fdcc-btn:hover { color: var(--cc-ink); transform: translateY(-3px); box-shadow: 0 10px 0 #b8941a; }
.fdcc .fdcc-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 #b8941a; }
.fdcc .fdcc-btn:focus-visible { outline: 3px solid var(--cc-ink); outline-offset: 4px; }
.fdcc-btn svg { width: 20px; height: 20px; }
.fdcc .fdcc-link { display: block; width: fit-content; margin-top: 18px; color: var(--cc-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.fdcc .fdcc-link:hover { color: var(--cc-brand); }

/* La caja real con bolsitas que saltan adentro */
.fdcc-box { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1000 / 693; justify-self: center; }
.fdcc-box__back, .fdcc-box__front { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fdcc-box__back { z-index: 0; }
.fdcc-box__front { z-index: 3; }
.fdcc-box::after { content: ''; position: absolute; z-index: -1; left: 12%; right: 10%; bottom: -3%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(38, 16, 27, 0.22), transparent); }
.fdcc-box__bag { position: absolute; z-index: 1; width: 13%; height: auto; bottom: 52%; transform: translateY(70%) rotate(var(--r)); transition: transform 0.8s var(--cc-spring); transition-delay: var(--d); }
.fdcc.is-in .fdcc-box__bag { transform: translateY(0) rotate(var(--r)); }
.fdcc.is-in .fdcc-box:hover .fdcc-box__bag { transform: translateY(-14%) rotate(calc(var(--r) * -1)); transition-delay: 0s; }

.fdcc-g { position: absolute; z-index: 0; width: clamp(60px, 7vw, 100px); height: auto; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.3)); animation: fdcc-float 6s ease-in-out infinite; pointer-events: none; }
.fdcc-g--0 { left: 2%; bottom: 10%; }
.fdcc-g--1 { right: 3%; top: 14%; animation-delay: -2s; }
@keyframes fdcc-float { 50% { transform: translateY(-14px) rotate(8deg); } }

@media (max-width: 860px) {
	.fdcc__in { grid-template-columns: 1fr; text-align: center; }
	.fdcc-p { margin-left: auto; margin-right: auto; }
	.fdcc .fdcc-link { margin-left: auto; margin-right: auto; }
	.fdcc-box { order: -1; max-width: 420px; }
	.fdcc::before { -webkit-mask-image: radial-gradient(ellipse 70% 30% at 50% 72%, transparent 0%, rgba(0, 0, 0, 0.15) 45%, #000 100%); mask-image: radial-gradient(ellipse 70% 30% at 50% 72%, transparent 0%, rgba(0, 0, 0, 0.15) 45%, #000 100%); }
	.fdcc-g { width: 54px; }
}
@media (prefers-reduced-motion: reduce) {
	.fdcc *, .fdcc *::before, .fdcc *::after { animation: none !important; transition-duration: 0.01ms !important; }
	.fdcc-box__bag { transform: rotate(var(--r)); }
}
