/* Popup ofertas — catálogo web + Android */
.promo-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 8px 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    animation: promoFadeIn 0.28s ease;
}

.promo-popup-overlay[hidden] {
    display: none !important;
}

@keyframes promoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.promo-popup-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 680px;
    margin: auto;
}

.promo-popup-card {
    width: min(560px, calc(100vw - 20px));
    margin: 0;
    overflow: visible;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    flex: 0 1 auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.promo-popup-card--enter {
    animation: promoCardEnter 0.22s ease;
}

@keyframes promoCardEnter {
    from {
        opacity: 0.55;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.promo-popup-nav {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.promo-popup-nav:hover:not(:disabled) {
    background: #fff;
    transform: scale(1.05);
}

.promo-popup-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.promo-popup-nav[hidden] {
    display: none !important;
}

.promo-popup-pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 4px;
}

.promo-popup-pager[hidden] {
    display: none !important;
}

.promo-popup-counter {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.02em;
}

.promo-popup-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.promo-popup-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.promo-popup-dot--active {
    width: 22px;
    background: #fff;
}

.promo-popup-imagen-wrap {
    width: 100%;
    overflow: visible;
    border-radius: 18px 18px 0 0;
    background: #f1f5f9;
    line-height: 0;
    text-align: center;
}

#promo-popup-imagen.promo-popup-imagen,
.promo-popup-overlay .promo-popup-imagen {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center top !important;
    display: inline-block !important;
    vertical-align: top;
}

.promo-popup-body {
    padding: 14px 14px 16px;
}

.promo-popup-body--compact {
    padding: 10px 12px 12px;
}

.promo-popup-titulo {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.promo-popup-texto {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
    white-space: pre-wrap;
}

.promo-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-popup-actions .btn {
    width: 100%;
    min-height: 44px;
    font-weight: 650;
    border-radius: 12px;
}

.promo-popup-actions .btn-whatsapp {
    background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: #fff;
}

.promo-popup-actions .btn-registro {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
}

@media (max-width: 520px) {
    .promo-popup-stage {
        gap: 4px;
    }

    .promo-popup-nav {
        width: 34px;
        height: 34px;
        font-size: 1.35rem;
    }

    .promo-popup-overlay--multi .promo-popup-card {
        width: min(520px, calc(100vw - 84px));
    }
}
