/* =========================
   BANNER PROMO "Ahorra más…"  (reutilizable)
========================= */

.promo {
    position: relative;
    overflow: hidden;
    background: #F9B410;
    padding: 6px 0;          /* el arte (282px) define la altura ~288px */
}

/* ----- Decoraciones (confetis 21×22) ----- */
.promo__decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.promo__confeti {
    position: absolute;
    left: var(--l);
    top: var(--t);
    width: 21px;
    height: 22px;
    object-fit: contain;

    animation: promoConfeti 4s ease-in-out infinite;
    will-change: transform;
}

/* Cada confeti flota/gira con un ritmo distinto (desfasado) */
.promo__confeti:nth-child(1) { animation-duration: 4.2s; animation-delay: 0s; }
.promo__confeti:nth-child(2) { animation-duration: 3.6s; animation-delay: .6s; }
.promo__confeti:nth-child(3) { animation-duration: 4.8s; animation-delay: 1.2s; }
.promo__confeti:nth-child(4) { animation-duration: 3.9s; animation-delay: .3s; }

@keyframes promoConfeti {
    0%   { transform: translateY(0)     rotate(0deg); }
    50%  { transform: translateY(-12px) rotate(14deg); }
    100% { transform: translateY(0)     rotate(0deg); }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .promo__confeti { animation: none; }
}

/* ----- Contenido ----- */
.promo__inner {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    align-items: center;
    gap: 40px;
}

/* Texto */
.promo__title {
    /* figma: Poppins 800, 48px, line-height 45px */
    font-size: clamp(1.9rem, 3.8vw, 3rem);   /* 3rem = 48px */
    font-weight: 800;
    line-height: 0.95;                        /* ~45/48 */
    color: var(--black-900);
}

.promo__title span {
    color: var(--white);
}

.promo__sub {
    /* figma: Poppins 500, base 16px / 24px */
    max-width: 380px;
    margin-top: 14px;
    font-size: 1rem;          /* 16px */
    font-weight: 500;
    line-height: 1.5;         /* ~24px */
    color: var(--black-800);
}

/* Features (con divisor punteado a la izquierda) */
.promo__features {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;

    padding-left: 40px;
}

/* Línea separadora: figma → 1px, dashed 9/9, alto 180px */
.promo__features::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 180px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(15, 14, 15, .55) 0 9px,
        transparent 9px 18px
    );
}

.promo__feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Fondo del icono: círculo blanco 62×62 · sombra M3/5 */
.promo__feature-icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 100px;
    background: #FFF;
    box-shadow: 0 8px 12px 6px rgba(0, 0, 0, 0.15),
                0 4px 4px 0 rgba(0, 0, 0, 0.30);
}

.promo__feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.promo__feature span {
    /* figma: Poppins 500, base 16px / 24px */
    font-size: 1rem;          /* 16px */
    font-weight: 500;
    line-height: 1.5;         /* ~24px */
    color: var(--black-900);
}

/* Arte principal (ticket %) */
.promo__art {
    display: grid;
    place-items: center;
}

.promo__art img {
    /* figma: 412×282 (aspect 206/141) */
    width: clamp(300px, 30vw, 412px);
    height: auto;
    aspect-ratio: 206 / 141;
    object-fit: contain;
}

/* ----- Responsive ----- */

@media (max-width: 991px) {
    /* Apilado: el arte ya no define la altura, hace falta aire vertical */
    .promo {
        padding: 44px 0;
    }

    .promo__inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* El arte pasa a ocupar todo el ancho, debajo */
    .promo__art {
        grid-column: 1 / -1;
        order: 3;
    }

    .promo__art img {
        height: auto;
        width: clamp(240px, 42vw, 320px);
    }
}

@media (max-width: 640px) {
    .promo__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .promo__sub {
        margin-left: auto;
        margin-right: auto;
    }

    /* Features alineados a la izquierda (bloque centrado) */
    .promo__features {
        padding-left: 0;
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto;
    }

    /* Separador HORIZONTAL sobre los features (en vez del vertical) */
    .promo__features::before {
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 1px;
        background: repeating-linear-gradient(
            to right,
            rgba(15, 14, 15, .55) 0 9px,
            transparent 9px 18px
        );
    }

    .promo__feature {
        text-align: left;
    }

    /* Arte más grande en móvil */
    .promo__art img {
        width: clamp(240px, 66vw, 340px);
    }

    /* Confetis visibles en móvil (como en Figma) */
    .promo__confeti {
        display: block;
    }
}
