/* Estilos para el popup de advertencia */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    max-width: 550px;
    width: 85%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
    text-align: center;
}

.popup-title {
    font-size: 1.7rem;
    margin-bottom: 18px;
    color: #333;
    font-weight: bold;
}

.popup-content {
    font-size: 1.05rem;
    line-height: 1.5;
}

.popup-content ul {
    text-align: left;
    margin: 18px auto;
    max-width: 90%;
    padding-left: 20px;
}

.popup-content li {
    margin-bottom: 8px;
}

.destacado {
    font-weight: bold;
    color: #dc3545;
}

#popup-aceptar {
    margin-top: 18px;
    padding: 10px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

#popup-aceptar:hover {
    background-color: #0B2154 !important;
    border-color: #0B2154 !important;
}

.popup-legal-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.popup-legal-item {
    text-align: center;
}

.popup-legal-link {
    color: #dc3545 !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: color 0.3s ease;
    cursor: pointer;
    line-height: 1.2;
}

.popup-legal-link:hover {
    color: #0B2154 !important;
    text-decoration: underline;
}

/* Estilos responsivos para tablets y móviles grandes */
@media (max-width: 768px) {
    .popup-container {
        max-width: 500px;
        width: 80%;
        max-height: 70vh;
        padding: 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
}

/* Estilos responsivos para móviles medianos */
@media (max-width: 576px) {
    .popup-container {
        width: 95%;
        max-height: 85vh;
        padding: 12px;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
    }
    
    .popup-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .popup-content {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .popup-content ul {
        margin: 12px auto;
        padding-left: 15px;
    }
    
    #popup-aceptar {
        margin-top: 15px;
        padding: 12px 25px;
        font-size: 1rem;
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .popup-legal-links {
        margin-top: 12px;
        gap: 6px;
    }
    
    .popup-legal-link {
        font-size: 0.7rem;
    }
}

/* Ajustes específicos para dispositivos muy pequeños */
@media (max-width: 360px) {
    .popup-container {
        width: 98%;
        max-height: 90vh;
        padding: 10px;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
    }
    
    .popup-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .popup-content {
        font-size: 0.9rem;
    }
    
    #popup-aceptar {
        padding: 10px 20px;
        font-size: 1rem;
        width: 90%;
        margin-bottom: 10px;
    }
    
    .popup-legal-links {
        margin-top: 10px;
        gap: 5px;
    }
    
    .popup-legal-link {
        font-size: 0.65rem;
    }
}