
.regalo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.regalo-overlay[hidden],
.regalo-modal [hidden] {
    display: none !important;
}

.regalo-modal {
    position: relative;
    background: #fff;
    color: #1f2937;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
    padding: 35px 28px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
    animation: aparecerRegalo .3s ease;
}

.regalo-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    border: 0;
    background: #f1f5f9;
    color: #334155;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.regalo-icono {
    font-size: 55px;
    margin-bottom: 15px;
}

.regalo-modal h2 {
    font-size: 27px;
    margin: 10px 0;
}

.regalo-modal h3 {
    font-size: 22px;
    margin: 15px 0 8px;
}

.regalo-modal p {
    color: #64748b;
    line-height: 1.6;
}

.regalo-boton {
    width: 100%;
    padding: 15px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.regalo-boton:hover {
    background: #6d28d9;
}

.regalo-boton:disabled {
    opacity: .6;
    cursor: wait;
}

.regalo-boton.secundario {
    background: #f1f5f9;
    color: #334155;
}

.regalo-boton.secundario:hover {
    background: #e2e8f0;
}

.regalo-imagen {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 15px auto;
}

.regalo-gratis {
    display: block;
    color: #16a34a;
    font-size: 24px;
    margin-top: 12px;
}

.regalo-opciones {
    margin-top: 20px;
}

#regaloMensaje {
    font-size: 13px;
    color: #b91c1c;
}

@keyframes aparecerRegalo {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .regalo-modal {
        padding: 30px 18px;
    }

    .regalo-modal h2 {
        font-size: 23px;
    }
}



.boton-mi-regalo {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;

    background: #ffffff;
    color: #252525;
    border: 1px solid #e8e8e8;
    border-radius: 50px;

    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.boton-mi-regalo:hover {
    transform: translateY(-3px);
}

.boton-mi-regalo[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .boton-mi-regalo {
        bottom: 16px;
        left: 16px;
        padding: 11px 15px;
        font-size: 13px;
    }
}
