/* ==========================================================
   Fuego Dulce · "Llena tu caja" (widget fd-caja)
   ========================================================== */
@font-face {
	font-family: 'FD Cookies';
	src: url('fonts/Cookies.ttf') format('truetype');
	font-display: swap;
}

.fdcj {
	--cj-brand: #c60342; --cj-brand-d: #8a022e; --cj-ink: #26101b; --cj-ink-2: #6b5560; --cj-yellow: #ffd84a; --cj-bg: #fffaf8; --cj-line: #f3e3e8;
	--cj-ease: cubic-bezier(0.22, 1, 0.36, 1); --cj-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--cj-pad: max(20px, calc((100% - 1280px) / 2));
	position: relative; box-sizing: border-box; display: grid; grid-template-columns: 0.85fr 1.15fr; grid-template-areas: 'copy play' 'order play';
	column-gap: clamp(24px, 4vw, 64px); align-items: center;
	padding: clamp(8px, 1vw, 16px) var(--cj-pad) clamp(64px, 8vw, 120px); margin-top: 0; background: var(--cj-bg); color: var(--cj-ink); font-family: 'DM Sans', system-ui, sans-serif; isolation: isolate;
}
.fdcj *, .fdcj *::before, .fdcj *::after { box-sizing: border-box; }
/* Fondo: confeti y estrellas del diseño de la caja, suaves sobre crema */
.fdcj::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("confeti.webp") center top / min(1300px, 140%) auto repeat; opacity: 0.5; pointer-events: none; }
.fdcj img { max-width: none; height: auto; }
.fdcj-fun { font-family: 'FD Cookies', 'Bricolage Grotesque', sans-serif !important; font-weight: 400 !important; letter-spacing: 0.01em; }
.fdcj .fdb-acc { position: relative; display: inline-block; }
.fdcj .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); }
.fdcj .fdb-acc--i::after { top: -0.2em; height: 0.26em; }

.fdcj__copy { grid-area: copy; align-self: end; }
.fdcj__order { grid-area: order; align-self: start; }
.fdcj__play { grid-area: play; display: grid; gap: 14px; }
.fdcj-sticker { display: inline-block; margin-bottom: 16px; padding: 10px 18px 8px; border-radius: 999px; background: var(--cj-ink); color: var(--cj-yellow); font-size: 1.2rem; line-height: 1; transform: rotate(-4deg); }
.fdcj .fdcj-h2 { margin: 0; padding: 0; color: var(--cj-ink); font-family: 'Anton', 'Arial Narrow', sans-serif !important; font-weight: 400 !important; font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em; }
.fdcj .fdcj-p { max-width: 36ch; margin: 16px 0 22px; padding: 0; color: var(--cj-ink); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; }

/* Botones */
.fdcj .fdcj-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin: 0; padding: 0 28px; border: 0; border-radius: 999px;
	font: 800 16px/1 'DM Sans', sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer;
	transition: transform 0.35s var(--cj-spring), box-shadow 0.3s, opacity 0.2s;
}
.fdcj .fdcj-btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--cj-ease); }
.fdcj .fdcj-btn:hover:not(:disabled) { transform: translateY(-3px) rotate(-1.5deg); }
.fdcj .fdcj-btn:hover:not(:disabled) svg { transform: translateX(4px); }
.fdcj .fdcj-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.fdcj .fdcj-btn--red, .fdcj .fdcj-btn--red:hover, .fdcj .fdcj-btn--red:focus { background: var(--cj-brand); color: #fff; box-shadow: 0 5px 0 var(--cj-brand-d); }
.fdcj .fdcj-btn--ghost, .fdcj .fdcj-btn--ghost:hover, .fdcj .fdcj-btn--ghost:focus { background: transparent; color: var(--cj-ink); box-shadow: inset 0 0 0 2px var(--cj-ink); }
.fdcj .fdcj-btn.is-loading { opacity: 0.7; cursor: progress; }
.fdcj__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ticket */
.fdcj-ticket { width: min(390px, 100%); margin-bottom: 22px; padding: 18px 22px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1.5px var(--cj-line), 0 18px 36px -20px rgba(38, 16, 27, 0.4); transform: rotate(-1.5deg); }
.fdcj-ticket__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fdcj-ticket__top .fdcj-fun { color: var(--cj-brand); font-size: 1.5rem; }
.fdcj-ticket__n { font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #fff3d1; }
.fdcj .fdcj-ticket ul { list-style: none; margin: 0; padding: 0; font-size: 15px; max-height: 230px; overflow: auto; }
.fdcj .fdcj-ticket li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1.5px dashed #ecdcd3; animation: fdcj-line 0.4s var(--cj-spring) both; }
.fdcj-ticket li em { font-style: normal; color: var(--cj-brand); font-weight: 800; }
.fdcj .fdcj-ticket__empty { justify-content: center !important; color: var(--cj-ink-2); border: 0 !important; }
.fdcj-tl__name { flex: 1; }
.fdcj .fdcj-tl__rm {
	flex: none; display: grid; place-items: center; width: 26px; height: 26px; min-height: 0; margin: 0 0 0 8px; padding: 0; border: 0; border-radius: 50%;
	background: #fde6ed; color: var(--cj-brand); font: 800 18px/1 'DM Sans', sans-serif; cursor: pointer; box-shadow: none;
	transition: background 0.2s, color 0.2s, transform 0.3s var(--cj-spring);
}
.fdcj .fdcj-tl__rm:hover { background: var(--cj-brand); color: #fff; transform: scale(1.1); }
.fdcj-ticket__total { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 800; }
.fdcj-ticket__total strong { color: var(--cj-brand); font-size: 22px; }
.fdcj .fdcj-ticket__msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: #fde6ed; color: var(--cj-brand); font-size: 14px; font-weight: 700; }

/* Escenario y caja */
.fdcj__stage { position: relative; padding-top: 48px; }
.fdcj__hint { position: absolute; left: 50%; top: 0; z-index: 6; translate: -50% 0; padding: 9px 16px 7px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--cj-line), 0 8px 18px -10px rgba(38, 16, 27, 0.3); color: var(--cj-brand); font-size: 1.15rem; white-space: nowrap; transform: rotate(-4deg); animation: fdcj-wiggle 1.8s ease-in-out infinite; transition: opacity 0.3s; }
.fdcj__hint.is-gone { opacity: 0; }
.fdcj__full { position: absolute; right: 0; top: 0; z-index: 6; padding: 9px 16px 7px; border-radius: 999px; background: var(--cj-brand); color: #fff; font-size: 1.2rem; transform: rotate(8deg); }
.fdcj__full[hidden], .fdcj-ticket__msg[hidden] { display: none !important; }
.fdcj-box { position: relative; margin: 0 auto; width: 100%; max-width: 560px; aspect-ratio: 1000 / 672; }
/* Sombra en el piso */
.fdcj-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.28), transparent); }
.fdcj-box__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.fdcj-box__svg--back { z-index: 0; }
.fdcj-box__slots { position: absolute; inset: 0; z-index: 1; }
.fdcj-box__svg--front { z-index: 3; pointer-events: none; }
.fdcj-box.is-bump { animation: fdcj-bump 0.45s var(--cj-spring); transform-origin: 50% 100%; }

/* Bolsitas */
.fdcj-mini { position: absolute; display: block; transform-origin: 50% 100%; transition: left 0.45s var(--cj-ease), top 0.45s var(--cj-ease); animation: fdcj-mini-in 0.5s var(--cj-spring) 0.32s both; }
.fdcj-mini__bag { display: block; width: 100%; filter: drop-shadow(0 6px 6px rgba(38, 16, 27, 0.3)); }
.fdcj-mini__bag--plain { aspect-ratio: 1 / 1.47; border-radius: 6px; background: linear-gradient(#1e88e5, #e91e63); }
.fdcj-mini__gum { position: absolute; left: 50%; top: 8%; width: 74%; aspect-ratio: 1; translate: -50% 0; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 rgba(38, 16, 27, 0.2); overflow: hidden; }
.fdcj-mini__gum img { width: 86%; height: 86%; object-fit: contain; }
.fdcj-mini__gum.is-round img { width: 100%; height: 100%; object-fit: cover; }
.fdcj-mini.is-out { animation: fdcj-mini-out 0.35s var(--cj-ease) both; }
.fdcj-fall { position: absolute; z-index: 5; top: -30%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(38, 16, 27, 0.35)); animation: fdcj-fall 0.42s cubic-bezier(0.55, 0, 1, 0.45) both; }
.fdcj-fall.is-round { border-radius: 50%; }

/* Botones de sabores */
.fdcj__shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fdcj .fdcj-pick {
	display: grid; justify-items: center; gap: 2px; min-height: 0; margin: 0; padding: 8px 4px 10px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1.5px var(--cj-line), 0 10px 22px -14px rgba(38, 16, 27, 0.35);
	color: var(--cj-ink); box-shadow: none; text-transform: none; letter-spacing: 0; cursor: pointer; transition: transform 0.35s var(--cj-spring), background 0.2s;
}
.fdcj .fdcj-pick:hover:not(:disabled) { background: #fff; box-shadow: 0 0 0 2px var(--cj-brand), 0 14px 26px -14px rgba(38, 16, 27, 0.4); color: var(--cj-ink); transform: translateY(-4px) rotate(-2deg); }
.fdcj .fdcj-pick:disabled { opacity: 0.4; cursor: not-allowed; }
.fdcj-pick__img { display: grid; place-items: center; width: 100%; aspect-ratio: 1.3; }
.fdcj-pick__img img { width: 74%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(38, 16, 27, 0.25)); transition: transform 0.4s var(--cj-spring); }
.fdcj-pick__img img.is-round { border-radius: 50%; object-fit: cover; }
.fdcj-pick:hover:not(:disabled) .fdcj-pick__img img { transform: rotate(-12deg) scale(1.1); }
.fdcj-pick.is-pop .fdcj-pick__img img { animation: fdcj-pop 0.45s var(--cj-spring); }
.fdcj-pick__name { font: 800 13px/1.15 'DM Sans', sans-serif; text-align: center; }
.fdcj-pick__price { font-size: 12px; color: var(--cj-brand); font-weight: 700; }

@keyframes fdcj-fall { from { top: -30%; transform: rotate(-30deg); } to { top: var(--to); transform: rotate(160deg) scale(0.7); opacity: 0.2; } }
@keyframes fdcj-mini-in { from { opacity: 0; transform: translateY(18%) scale(0.6); } 60% { transform: translateY(-6%) scale(1.05); } }
@keyframes fdcj-mini-out { to { opacity: 0; transform: translateY(-40%) scale(0.6) rotate(-12deg); } }
@keyframes fdcj-bump { 30% { transform: scale(1.04, 0.96); } 60% { transform: scale(0.98, 1.02); } }
@keyframes fdcj-pop { 40% { transform: scale(1.35) rotate(-18deg); } }
@keyframes fdcj-line { from { opacity: 0; transform: translateY(8px) scale(0.95); } }
@keyframes fdcj-wiggle { 0%, 100% { rotate: -4deg; } 50% { rotate: 3deg; } }

/* Promo: 3 + 1 de regalo */
.fdcj-promo { display: inline-block; margin: 14px 0 0; padding: 10px 18px 8px; border-radius: 999px; background: #47d253; color: #14361a; font-size: 1.25rem; line-height: 1; transform: rotate(-3deg); box-shadow: 0 5px 0 rgba(38, 16, 27, 0.15); }
.fdcj-pick__price small { font-weight: 600; color: var(--cj-ink-2); }
.fdcj-gift { margin: 14px 0 4px; padding: 14px; border-radius: 18px; background: #eafbe9; box-shadow: inset 0 0 0 2px #b9ecbf; animation: fdcj-line 0.4s var(--cj-spring); }
.fdcj-gift[hidden] { display: none !important; }
.fdcj-gift__t { margin: 0 0 10px; color: #14361a; font-size: 1.15rem; line-height: 1; }
.fdcj-gift__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fdcj .fdcj-gift__opt { display: grid; justify-items: center; gap: 2px; margin: 0; padding: 8px 4px; border: 0; border-radius: 14px; background: #fff; color: var(--cj-ink); font: 700 12.5px/1.15 'DM Sans', sans-serif; text-transform: none; letter-spacing: 0; box-shadow: 0 0 0 1.5px #cfeed3; cursor: pointer; transition: transform 0.25s var(--cj-spring), box-shadow 0.2s, background 0.2s; }
.fdcj-gift__opt img { width: 48px; height: 48px; object-fit: contain; }
.fdcj-gift__opt small { color: var(--cj-ink-2); font-weight: 600; }
.fdcj .fdcj-gift__opt:hover { background: #fff; color: var(--cj-ink); transform: translateY(-2px); box-shadow: 0 0 0 2px #47d253; }
.fdcj .fdcj-gift__opt.is-on { background: #47d253; color: #14361a; box-shadow: 0 0 0 2px #2fa83b; }
.fdcj .fdcj-gift__opt.is-on small { color: #14361a; }
.fdcj-tl__gift { color: #1d7a2b; font-weight: 800; }
.fdcj-tl__gift em { font-style: normal; padding: 2px 7px; border-radius: 999px; background: #47d253; color: #14361a; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.fdcj-mini.is-gift::after { content: '🎁'; position: absolute; left: 50%; top: -18%; translate: -50% 0; font-size: clamp(16px, 2.2vw, 26px); filter: drop-shadow(0 3px 3px rgba(38, 16, 27, 0.3)); }

@media (max-width: 1000px) {
	.fdcj { grid-template-columns: 1fr; grid-template-areas: 'copy' 'play' 'order'; row-gap: 20px; }
}
@media (max-width: 700px) {
	.fdcj__stage { padding-top: 44px; }
	.fdcj__shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.fdcj-pick__name { font-size: 11px; }
	.fdcj-pick__price { display: none; }
	.fdcj__hint { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.fdcj *, .fdcj *::before, .fdcj *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
