/* =====================================================================
   PROMO temporal (Black Friday y reutilizable para otras ofertas)
   Todo el contenido lo inserta el bloque <script> "PROMO" de index.html
   solo mientras la oferta está activa. Sin ese script, este CSS no pinta nada.
   Para quitar la oferta: borrar el <script> PROMO y el <link> a este archivo.
   ===================================================================== */

/* ---------- Banner con cuenta atrás ---------- */
.promo-banner {
    --promo-red: #ff1a40;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /* Mismo ancho que las 3 tarjetas: .pricing-table reparte 3×320px con space-evenly */
    width: calc(min(100%, 1200px) / 2 + 500px);
    max-width: 100%;
    margin: -10px auto 40px;
    padding: 22px 30px 22px 58px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    background: #121214;
    border-top: 5px solid var(--promo-red);
    border-radius: 16px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* bandera a cuadros que se difumina */
.promo-banner::before {
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    right: -40px;
    width: 420px;
    background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 22px 22px;
    opacity: 0.07;
    transform: skewX(-20deg);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
    mask-image: linear-gradient(90deg, transparent, #000 70%);
    pointer-events: none;
}

/* franja roja inclinada */
.promo-banner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 22px;
    width: 14px;
    background: var(--promo-red);
    opacity: 0.9;
    transform: skewX(-20deg);
    pointer-events: none;
}

.promo-text {
    position: relative;
    z-index: 1;
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #a1a1aa;
}

.promo-kicker-pill {
    background: var(--promo-red);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}

.promo-title {
    margin: 0;
    font-family: 'Saira', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 50px;
    line-height: 0.95;
    letter-spacing: -1px;
    color: #fff;
}

.promo-title em {
    font-style: italic;
    color: var(--promo-red);
}

.promo-timer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.promo-timer-label {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #a1a1aa;
}

.promo-cells {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.promo-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: 'Saira', sans-serif;
}

.promo-cell b {
    min-width: 68px;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: #000;
    border: 1px solid #2c2c31;
    border-radius: 8px;
    box-shadow: inset 0 -3px 0 var(--promo-red);
    font-weight: 800;
    font-style: italic;
    font-size: 40px;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.promo-cell small {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #a1a1aa;
}

.promo-sep {
    font-family: 'Saira', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 40px;
    line-height: 64px;
    color: var(--promo-red);
}

/* ---------- Tarjetas: línea de descuento ---------- */

/* Misma altura de la zona clara en las 3 tarjetas */
.promo-on .pricing-card .price-section {
    height: 98px;
    box-sizing: border-box;
    padding: 5px 0 0;
}

.promo-on .price-section-lite {
    gap: 0;
}

.promo-on .lite-price {
    line-height: 55px;
}

.promo-was {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 30px;
    margin-bottom: -4px;
    font-family: 'Saira', sans-serif;
    white-space: nowrap;
}

.promo-pill {
    background: #ff1a40;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: 0;
    padding: 0 12px;
    border-radius: 8px;
}

.promo-old {
    font-weight: 600;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: -1px;
    color: #7b818c;
    text-decoration-thickness: 2px;
}

/* monedas con cifras largas (COP, CLP, MXN, JPY) */
.promo-old.promo-small {
    font-size: 24px;
}

.promo-tag {
    font-weight: 800;
    font-size: 22px;
    line-height: 30px;
    color: var(--color-oscuro);
}

/* Etiqueta "Próximamente" de MAX oculta durante la oferta (PROMO.hideComingSoon) */
.promo-hide-soon .vpro .coming-soon {
    display: none;
}

/* ---------- Nota inferior ---------- */
.promo-note {
    box-sizing: border-box;
    width: calc(min(100%, 1200px) / 2 + 500px);
    max-width: 100%;
    margin: 28px auto 0;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #4b5563;
    text-align: center;
}

/* ---------- Móvil / tarjetas apiladas (mismo corte que prices.css) ---------- */
@media (max-width: 1080px) {

    .promo-banner,
    .promo-note {
        width: 100%;
        max-width: 320px;
    }

    .promo-banner {
        padding: 20px 18px 22px;
        margin-bottom: 36px;
    }

    .promo-banner::after {
        display: none;
    }

    .promo-title {
        font-size: 40px;
    }

    .promo-timer {
        align-items: flex-start;
    }

    .promo-cell b {
        min-width: 50px;
        height: 52px;
        font-size: 28px;
    }

    .promo-sep {
        font-size: 28px;
        line-height: 52px;
    }

    .promo-note {
        margin-top: 0;
    }
}
