/* ==========================================================
   Fuego Dulce · "¿Cómo lo quieres?" (widget fd-entrega)
   ========================================================== */
@font-face {
	font-family: 'FD Cookies';
	src: url('fonts/Cookies.ttf') format('truetype');
	font-display: swap;
}

.fden {
	--en-brand: #c60342; --en-brand-d: #8a022e; --en-ink: #26101b; --en-yellow: #ffd84a;
	--en-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --en-ease: cubic-bezier(0.22, 1, 0.36, 1);
	position: relative; box-sizing: border-box; padding: clamp(60px, 7vw, 100px) max(20px, calc((100% - 1400px) / 2));
	background: var(--en-brand); color: #fff; font-family: 'DM Sans', system-ui, sans-serif; overflow: hidden; isolation: isolate;
}
/* Puntitos suaves de fondo, como el banner */
.fden::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.6px) 0 0 / 22px 22px; pointer-events: none; }
.fden *, .fden *::before, .fden *::after { box-sizing: border-box; }
.fden img { max-width: none; }
.fden-fun { font-family: 'FD Cookies', 'Bricolage Grotesque', sans-serif !important; font-weight: 400 !important; letter-spacing: 0.01em; }
.fden .fdb-acc { position: relative; display: inline-block; }
.fden .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); }
.fden .fdb-acc--i::after { top: -0.2em; height: 0.26em; }
.fden .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; }

.fden__head { text-align: center; }
.fden-sticker { display: inline-block; padding: 9px 16px 7px; border-radius: 999px; background: var(--en-yellow); color: var(--en-ink); font-size: 1.15rem; line-height: 1; transform: rotate(-4deg); }
.fden .fden-h2 { margin: 14px 0 0; padding: 0; color: #fff; font: 400 clamp(2.8rem, 2rem + 3.6vw, 5.4rem)/0.94 'Anton', sans-serif; text-transform: uppercase; text-shadow: 0 6px 0 rgba(0, 0, 0, 0.18); }
.fden-h2 span { display: block; }
.fden-h2 .y { color: var(--en-yellow); }
.fden-p { max-width: 46ch; margin: 14px auto 0; color: rgba(255, 255, 255, 0.9); font-size: 18px; line-height: 1.5; }

/* Interruptor */
.fden__tabs { display: flex; width: fit-content; max-width: 100%; margin: 36px auto 0; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.16); }
.fden .fden__tabs button { min-height: 50px; margin: 0; padding: 0 26px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 800 16px/1 'DM Sans', sans-serif; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; transition: background 0.25s, color 0.25s; }
.fden .fden__tabs button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.fden .fden__tabs button.is-on { background: var(--en-yellow); color: var(--en-ink); }
.fden .fden__tabs button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Paneles */
.fden__panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: 40px; animation: fden-in 0.5s var(--en-ease); }
.fden__panel[hidden] { display: none; }
@keyframes fden-in { from { opacity: 0; transform: translateY(12px); } }
.fden-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fden-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; margin: 0; padding: 16px 18px; border-radius: 22px; background: rgba(0, 0, 0, 0.14); }
.fden-step__i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--en-yellow); font-size: 1.6rem; line-height: 1; }
.fden-steps b { display: block; font: 400 1.4rem/1.05 'Anton', sans-serif; text-transform: uppercase; }
.fden-steps small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.85); font-size: 14.5px; line-height: 1.4; }
.fden-pend { display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: var(--en-yellow); color: var(--en-ink); font: 800 10px/1 'DM Sans', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
.fden__visual { display: grid; place-items: center; }
.fden-bag { width: min(300px, 80%); height: auto; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.4)); animation: fden-float 5s ease-in-out infinite; }
.fden-map { width: min(340px, 90%); height: auto; border-radius: 28px; rotate: 3deg; box-shadow: 0 26px 40px -16px rgba(0, 0, 0, 0.5); transition: rotate 0.5s var(--en-spring); }
.fden-map:hover { rotate: 0deg; }
@keyframes fden-float { 50% { transform: translateY(-14px) rotate(3deg); } }

.fden .fden-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin-top: 22px; padding: 0 26px; border-radius: 999px; font: 800 16px/1 'DM Sans', sans-serif; text-decoration: none; transition: transform 0.3s var(--en-spring), background 0.2s; }
.fden .fden-btn--y { background: var(--en-yellow); color: var(--en-ink); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22); }
.fden .fden-btn:hover { transform: translateY(-3px); color: var(--en-ink); }
.fden-btn svg, .fden-cp button svg { width: 18px; height: 18px; }

/* Buscador por código postal */
.fden-cp { display: flex; align-items: center; gap: 6px; max-width: 460px; margin: 18px 0 0; padding: 6px; border-radius: 999px; background: #fff; }
.fden-cp:focus-within { box-shadow: 0 0 0 3px var(--en-yellow); }
.fden .fden-cp input { flex: 1; min-width: 0; min-height: 48px; margin: 0; padding: 0 18px; border: 0; background: transparent; box-shadow: none; color: var(--en-ink); font: 700 16px 'DM Sans', sans-serif; letter-spacing: 0.05em; }
.fden .fden-cp input:focus { outline: none; }
.fden .fden-cp button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 22px; border: 0; border-radius: 999px; background: var(--en-ink); color: #fff; font: 800 15px/1 'DM Sans', sans-serif; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; }
.fden .fden-cp button:hover { background: #000; }
.fden-cp__err { margin: 8px 0 0 12px; color: var(--en-yellow); font-weight: 700; font-size: 14px; }
.fden-cp__err[hidden] { display: none; }
.fden .fden-link { display: inline-block; margin-top: 14px; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.fden .fden-link:hover { color: var(--en-yellow); }

/* Preguntas frecuentes */
.fden__faq { display: grid; gap: 10px; max-width: 860px; margin: 56px auto 0; }
.fden__faq details { border-radius: 18px; background: rgba(0, 0, 0, 0.14); overflow: hidden; }
.fden__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; list-style: none; }
.fden__faq summary::-webkit-details-marker { display: none; }
.fden__faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); font-size: 20px; line-height: 1; transition: transform 0.3s var(--en-spring), background 0.2s; }
.fden__faq details[open] summary::after { transform: rotate(45deg); background: var(--en-yellow); color: var(--en-ink); }
.fden__faq summary:focus-visible { outline: 3px solid #fff; outline-offset: -3px; border-radius: 18px; }
.fden__faq details p { margin: 0; padding: 0 20px 18px; color: rgba(255, 255, 255, 0.88); line-height: 1.55; }

/* Bloques más grandes */
.fden-steps { gap: 18px; }
.fden-steps li { grid-template-columns: 76px 1fr; gap: 22px; padding: 26px 30px; border-radius: 30px; }
.fden-step__i { width: 76px; height: 76px; font-size: 2.2rem; }
.fden-steps b { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.02; }
.fden-steps small { margin-top: 6px; font-size: 17px; }
.fden-bag { width: min(400px, 88%); }
.fden-map { width: min(440px, 96%); }
.fden .fden__tabs button { min-height: 60px; padding: 0 34px; font-size: 18px; }
.fden-cp { max-width: 540px; }
.fden__faq { gap: 12px; max-width: 1000px; }
.fden__faq summary { padding: 22px 26px; font-size: 18px; }
.fden__faq details p { padding: 0 26px 22px; font-size: 16.5px; }

/* Al llegar a la sección: la bolsa entra con un rebote y los pasos aparecen uno tras otro (lo activa fd-entrega.js) */
.fden.is-reveal [data-panel="ship"] { animation: none; }
.fden.is-reveal [data-panel="ship"] .fden__visual { opacity: 0; transform: translateY(60px) scale(0.85); transition: opacity 0.6s ease, transform 0.9s var(--en-spring); }
.fden.is-reveal [data-panel="ship"] .fden-steps li, .fden.is-reveal [data-panel="ship"] .fden-btn { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.6s var(--en-spring); }
.fden.is-shown [data-panel="ship"] .fden__visual { opacity: 1; transform: none; }
.fden.is-shown [data-panel="ship"] .fden-steps li, .fden.is-shown [data-panel="ship"] .fden-btn { opacity: 1; transform: none; }
.fden.is-shown [data-panel="ship"] .fden-steps li:nth-child(1) { transition-delay: 0.25s; }
.fden.is-shown [data-panel="ship"] .fden-steps li:nth-child(2) { transition-delay: 0.4s; }
.fden.is-shown [data-panel="ship"] .fden-steps li:nth-child(3) { transition-delay: 0.55s; }
.fden.is-shown [data-panel="ship"] .fden-steps li:nth-child(4) { transition-delay: 0.7s; }
.fden.is-shown [data-panel="ship"] .fden-btn { transition-delay: 0.8s; }

@media (max-width: 860px) {
	.fden__panel { grid-template-columns: 1fr; }
	.fden__visual { order: -1; }
	.fden-bag { width: 170px; }
	.fden-map { width: 240px; }
	.fden .fden__tabs button { min-height: 52px; padding: 0 18px; font-size: 15px; }
	.fden-steps li { grid-template-columns: 58px 1fr; gap: 16px; padding: 20px; }
	.fden-step__i { width: 58px; height: 58px; font-size: 1.7rem; }
	.fden .fden-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.fden *, .fden *::before, .fden *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
