/* =====================================================================
   FLASH SALE — banda Promo (full-bleed, fondo coral-light)
   Modo: @promo (la única sección donde el coral protagoniza)
   Se pinta debajo de la banda de productos (ver .home-orden en
   bolsas-de-tela-hero.css).
   ===================================================================== */

:root {
    --fiu-teal: #6EABA5;
    --fiu-teal-deep: #5A9F99;
    --fiu-teal-darker: #355E5A;
    --fiu-teal-ink: #1A3532;
    --fiu-teal-light: #E8F5F3;
    --fiu-coral: #F8796C;
    --fiu-coral-deep: #E35D50;
    --fiu-coral-light: #FDE7E4;
    --fiu-white: #FFFFFF;
    --fiu-mist: #F1F3F5;
    --fiu-line: #E5E7EB;
    --fiu-line-soft: #EEF0F2;
    --fiu-ink: #1F2937;
    --fiu-slate: #475569;
    --fiu-muted: #64748B;
    --fiu-faint: #94A3B8;
    --fiu-radius-md: 14px;
    --fiu-radius-lg: 20px;
    --fiu-radius-xl: 28px;
    --fiu-radius-pill: 999px;
    --fiu-shadow-md: 0 4px 20px rgba(0, 0, 0, .08);
    --fiu-shadow-lg: 0 14px 36px rgba(26, 53, 50, .12);
    --fiu-shadow-product: 0 15px 22px rgba(104, 104, 104, .28);
    --fiu-ring: 0 0 0 3px rgba(110, 171, 165, .40);
    --fiu-ease-out: cubic-bezier(.22, .61, .36, 1);
    --fiu-ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* Fondo plano: el degradado de luz vive en .cinta-band, que va justo
   encima con este mismo coral; tenerlo aquí marcaría la costura. */
.fs-band {
    background: var(--fiu-coral-light);
    padding: clamp(32px, 4vw, 52px) 0 clamp(48px, 6vw, 80px);
    /* El mosaico "Por tiempo limitado" ancla aquí (#flash-sale-loneta);
       sin esto el header fijo tapa el inicio de la banda. */
    scroll-margin-top: 120px;
}

@media (min-width: 768px) {
    .fs-band {
        scroll-margin-top: 140px;
    }
}

/* ── Layout: producto a la izquierda, compra a la derecha ── */
.fs-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4.5vw, 64px);
    align-items: center;
}

/* ── Columna de producto ── */
.fs-media {
    position: relative;
}

.fs-media-panel {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: var(--fiu-white);
    border-radius: var(--fiu-radius-xl);
    box-shadow: var(--fiu-shadow-lg);
    overflow: hidden;
}

/* Wash suave dentro del panel para que la foto no flote sobre blanco puro */
.fs-media-panel::before {
    content: "";
    position: absolute;
    inset: auto -20% -45% -20%;
    height: 75%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(110, 171, 165, .16), transparent 70%);
}

.fs-badge-img {
    position: relative;
    width: 84%;
    height: 84%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 22px rgba(104, 104, 104, .30));
}

/* La foto va dentro de <picture>: el wrapper toma el tamaño que antes
   llevaba el <img> y el <img> lo llena. */
.fs-media-panel picture {
    width: 84%;
    height: 84%;
    display: grid;
    place-items: center;
}

.fs-media-panel picture .fs-badge-img {
    width: 100%;
    height: 100%;
}

/* ── Sello "Oferta Relámpago": explosión de 16 puntas en dos capas ──
   La trasera va girada y un poco más grande para asomar como contorno,
   igual que un sticker impreso. clip-path, sin imagen. */
.fs-promo-tag {
    position: absolute;
    top: -18px;
    right: -6px;
    z-index: 3;
    width: clamp(96px, 10vw, 128px);
    height: clamp(96px, 10vw, 128px);
    display: grid;
    place-items: center;
    transform: rotate(-8deg);
    filter: drop-shadow(0 4px 12px rgba(26, 53, 50, .28));
}

.fs-promo-tag::before,
.fs-promo-tag::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(50.0% 0.0%, 57.5% 12.2%, 69.1% 3.8%, 71.4% 18.0%, 85.4% 14.6%, 82.0% 28.6%, 96.2% 30.9%, 87.8% 42.5%, 100.0% 50.0%, 87.8% 57.5%, 96.2% 69.1%, 82.0% 71.4%, 85.4% 85.4%, 71.4% 82.0%, 69.1% 96.2%, 57.5% 87.8%, 50.0% 100.0%, 42.5% 87.8%, 30.9% 96.2%, 28.6% 82.0%, 14.6% 85.4%, 18.0% 71.4%, 3.8% 69.1%, 12.2% 57.5%, 0.0% 50.0%, 12.2% 42.5%, 3.8% 30.9%, 18.0% 28.6%, 14.6% 14.6%, 28.6% 18.0%, 30.9% 3.8%, 42.5% 12.2%);
}

/* Dorado de la campaña de aniversario. Los tokens --ha-gold-* los
   declara hero-aniversario.css; el respaldo mantiene el color si esta
   hoja se cargara sola. */
.fs-promo-tag::before {
    background: var(--ha-gold-deep, #B8862A);
    transform: rotate(11deg) scale(1.06);
}

.fs-promo-tag::after {
    background: linear-gradient(160deg, var(--ha-gold-light, #F0C558) 0%, var(--ha-gold, #D8A93A) 100%);
}

.fs-promo-txt {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.25;
    text-align: center;
    /* Oscuro sobre el dorado: en blanco el contraste caía a 2.2:1 */
    color: var(--ha-gold-ink, #04322F);
}

.fs-promo-txt i {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

/* ── Columna de compra ── */
.fs-info {
    min-width: 0;
}

.fs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fiu-coral);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--fiu-radius-pill);
    box-shadow: 0 4px 14px rgba(227, 93, 80, .35);
    margin-bottom: 14px;
}

.fs-title {
    font-weight: 600;
    font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem);
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--fiu-ink);
}

.fs-desc {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: .95rem;
    margin: 0 0 16px;
    color: var(--fiu-slate);
    line-height: 1.55;
}

.fs-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.fs-price-old {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--fiu-muted);
}

.fs-price-new {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
    font-weight: 600;
    line-height: 1;
    color: var(--fiu-coral);
    font-variant-numeric: tabular-nums;
}

.fs-save-pill {
    background: var(--fiu-teal-light);
    color: var(--fiu-teal-darker);
    border-radius: var(--fiu-radius-pill);
    padding: 4px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 700;
}

/* ── Carrito Shopify embebido, en claro ──
   Se ocultan las piezas que esta card compacta ya comunica con su
   propio diseño (precio, subtítulo, tabla, WhatsApp…) y se visten
   paquetes/stepper/CTA con la paleta de marca. El drawer, el toggle
   flotante y el modal se reubican solos al <body>. */
.fs-cart-embed .lav-shopify-wa-btn,
.fs-cart-embed .lav-pkg-footer,
.fs-cart-embed .lav-tabla-mini,
.fs-cart-embed .lav-aniversario-badge,
.fs-cart-embed .lav-subtitulo-paquete,
.fs-cart-embed .lav-precio-ref,
.fs-cart-embed .lav-pkg-popular-ribbon,
.fs-cart-embed .lav-pkg-precio,
.fs-cart-embed .lav-pkg-unit,
.fs-cart-embed .lav-pkg-ahorro,
.fs-cart-embed .lav-pkg-check,
.fs-cart-embed .lav-cart-feedback--ok {
    display: none !important;
}

/* !important: compite con #lav-widget .hf-precio-card h2 (lleva ID) */
.fs-cart-embed .hf-precio-card h2 {
    color: var(--fiu-ink) !important;
    margin-bottom: 0;
}

.fs-cart-embed .lav-title-row {
    margin-bottom: .35rem;
}

.fs-cart-embed .lav-pkg-grid {
    margin-top: 0;
    padding-top: 10px;
    margin-bottom: 1rem;
    gap: 10px;
}

/* Botones de paquete: pill blanca, activo en teal sólido */
.fs-cart-embed .lav-pkg-btn {
    min-width: auto;
    padding: .55rem .5rem;
    background: var(--fiu-white);
    border: 1.5px solid var(--fiu-line);
    border-radius: var(--fiu-radius-md);
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

.fs-cart-embed .lav-pkg-qty {
    color: var(--fiu-ink);
    font-size: .82rem;
    font-weight: 700;
}

.fs-cart-embed .lav-pkg-btn:hover {
    border-color: var(--fiu-teal);
    background: var(--fiu-white);
    transform: translateY(-1px);
}

.fs-cart-embed .lav-pkg-btn.active {
    background: var(--fiu-teal);
    border-color: var(--fiu-teal);
}

.fs-cart-embed .lav-pkg-btn.active .lav-pkg-qty {
    color: #fff;
}

.fs-cart-embed .lav-pkg-btn:focus-visible {
    outline: none;
    box-shadow: var(--fiu-ring);
}

/* Cantidad + CTA en una fila */
.fs-cart-embed .new-pkg-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: .9rem;
    margin: 0;
}

.fs-cart-embed .new-pkg-stepper-label {
    color: var(--fiu-slate);
}

.fs-cart-embed .new-pkg-stepper-controls {
    background: var(--fiu-white);
    border-color: var(--fiu-line);
    border-radius: var(--fiu-radius-md);
}

.fs-cart-embed .new-pkg-stepper-btn {
    color: var(--fiu-ink);
}

.fs-cart-embed .new-pkg-stepper-btn:hover {
    background: var(--fiu-mist);
}

.fs-cart-embed .new-pkg-stepper-input {
    color: var(--fiu-ink) !important;
    border-left-color: var(--fiu-line);
    border-right-color: var(--fiu-line);
    background: var(--fiu-white);
}

/* CTA: coral, el único protagonista de la banda */
.fs-cart-embed .lav-shopify-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fiu-coral);
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 14px 26px;
    border-radius: var(--fiu-radius-pill);
    border: none;
    width: auto;
    max-width: none;
    box-shadow: 0 8px 22px rgba(227, 93, 80, .40);
    transition: transform .15s var(--fiu-ease-out), box-shadow .15s ease, background .2s ease;
}

.fs-cart-embed .lav-shopify-add-btn:hover:not(:disabled) {
    background: var(--fiu-coral-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(227, 93, 80, .48);
    color: #fff;
}

.fs-cart-embed .lav-shopify-add-btn:active {
    transform: translateY(1px) scale(.985);
}

.fs-cart-embed .lav-shopify-add-btn:focus-visible {
    outline: none;
    box-shadow: 0 8px 22px rgba(227, 93, 80, .40), var(--fiu-ring);
}

.fs-cart-embed .new-pkg-row .lav-shopify-add-btn {
    flex: 0 0 auto;
}

.fs-cart-embed .lav-cart-feedback {
    color: var(--fiu-teal-darker);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: .78rem;
    margin-top: 8px;
}

/* ── Meta: envío gratis + countdown en chips ── */
.fs-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(227, 93, 80, .22);
}

/* "Envío Gratis": texto blanco grande en mayúsculas con pulso, sin
   pastilla (versión de la campaña original). */
.fs-free-shipping {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-align: center;
    animation: fs-pulse 1.6s ease-in-out infinite;
}

@keyframes fs-pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(31, 41, 55, 0);
    }
    50% {
        transform: scale(1.07);
        text-shadow: 0 0 14px rgba(31, 41, 55, .4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fs-free-shipping {
        animation: none;
    }
}

.fs-countdown {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fs-count-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fiu-ink);
}

.fs-count-label i {
    color: var(--fiu-coral-deep);
}

.fs-count-chips {
    display: inline-flex;
    gap: 6px;
}

.fs-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    background: var(--fiu-white);
    border: 1px solid rgba(227, 93, 80, .28);
    border-radius: 12px;
    padding: 6px 8px 5px;
    box-shadow: var(--fiu-shadow-md);
}

.fs-chip b {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--fiu-ink);
    font-variant-numeric: tabular-nums;
}

.fs-chip small {
    font-family: 'Poppins', sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fiu-muted);
    margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .fs-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fs-media {
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }

    .fs-info {
        text-align: center;
    }

    .fs-price-row,
    .fs-meta,
    .fs-countdown {
        justify-content: center;
    }

    .fs-cart-embed .new-pkg-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .fs-promo-tag {
        top: -12px;
        right: -4px;
    }

    .fs-chip {
        min-width: 46px;
    }

    .fs-free-shipping {
        font-size: 16px;
    }
}
