/* ============================================================
   POPUP DE BIENVENIDA REPTILUR
   ============================================================ */

/* Ocultar el popup antiguo "Sin costes ocultos" del plugin viejo
   (se identifica por el id sz-popup-overlay / sz-popup-box).
   Así el cliente solo ve nuestro popup, no dos. */
#sz-popup-overlay,
#sz-popup-box,
.sz-popup-overlay,
.sz-popup-box {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Quitar el bloqueo de scroll que pueda haber dejado el popup viejo */
body.sz-popup-open {
    overflow: auto !important;
}

#rpb-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

#rpb-overlay.rpb-hidden {
    display: none !important;
    opacity: 0;
}

#rpb-overlay .rpb-popup {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
    animation: rpbFadeIn 0.3s ease;
    box-sizing: border-box;
}

@keyframes rpbFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#rpb-overlay .rpb-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}
#rpb-overlay .rpb-cerrar:hover {
    color: #b71c1c;
}

#rpb-overlay .rpb-titulo {
    color: #b71c1c;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}

#rpb-overlay .rpb-mensaje {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px;
}
#rpb-overlay .rpb-mensaje p {
    margin: 0 0 10px;
}
#rpb-overlay .rpb-mensaje p:last-child {
    margin-bottom: 0;
}
#rpb-overlay .rpb-mensaje strong {
    color: #b71c1c;
}

#rpb-overlay .rpb-aceptar {
    background: #b71c1c;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#rpb-overlay .rpb-aceptar:hover {
    background: #8d1414;
    transform: translateY(-2px);
}
#rpb-overlay .rpb-aceptar:active {
    transform: translateY(0);
}

/* Móvil */
@media (max-width: 600px) {
    #rpb-overlay .rpb-popup {
        padding: 28px 22px 22px;
        max-width: 92%;
    }
    #rpb-overlay .rpb-titulo {
        font-size: 20px;
    }
    #rpb-overlay .rpb-mensaje {
        font-size: 15px;
    }
}

/* Bloquear scroll del body cuando el popup está abierto */
body.rpb-popup-abierto {
    overflow: hidden !important;
}
