/* --- ESTILOS EXCLUSIVOS DEL COMPONENTE DE PUBLICIDAD --- */
.modal-promo {
    /* Cambiamos display a flex para centrar todo */
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);

    /* CENTRADO ABSOLUTO */
    align-items: center;
    /* Centra verticalmente */
    justify-content: center;
    /* Centra horizontalmente */
    padding: 20px;
    /* Espacio de seguridad para móviles */
}

.promo-content {
    position: relative;
    background: #FFFFFF;
    width: 100%;
    /* Ocupa el ancho disponible */
    max-width: 450px;
    /* Pero no se estira más de esto */
    border-radius: 30px;
    border: 4px solid #FFD200;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: zoomInPromo 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: hidden;

    /* Eliminamos el margin auto porque Flexbox ya lo centra */
    margin: 0;
}

@keyframes zoomInPromo {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-promo {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #0F172A;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    line-height: 1;
}

.close-promo:hover {
    color: #CE1126;
    transform: scale(1.2);
}

.promo-body {
    padding: clamp(30px, 5vw, 50px) 30px;
    /* Padding fluido */
}

.promo-tag {
    background: #CE1126;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-body h2 {
    margin: 20px 0 10px;
    color: #003893;
    font-size: clamp(1.5rem, 4vw, 2rem);
    /* Tamaño de letra que se adapta solo */
    line-height: 1.1;
    font-weight: 800;
}

.promo-body p {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #334155;
    line-height: 1.5;
}

.promo-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #003893;
    margin-bottom: 25px;
    display: block;
}

/* Botón adaptable */
.promo-body .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    padding: 1rem;
    border-radius: 15px;
    background: #FFD200;
    color: #0F172A;
    font-weight: 800;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.promo-body .btn-primary:hover {
    background: #003893;
    color: white;
    transform: translateY(-3px);
}

/* --- RESPONSIVIDAD EXTRA --- */
@media (max-height: 500px) {

    /* Si el celular está de lado (horizontal), bajamos tamaños para que no se corte */
    .promo-body {
        padding: 20px;
    }

    .promo-body h2 {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    .promo-body p {
        margin-bottom: 10px;
        font-size: 0.8rem;
    }

    .promo-price {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}