/* Overlay del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5); /* Fondo ligeramente oscuro */
}

/* Contenedor del modal */
.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    font-family: 'Arial', sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

/* Botón para cerrar el modal */
.close {
    color: #333;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close:hover {
    color: #e74c3c;
}

/* Título del modal */
.modal h2 {
    margin-top: 0;
    color: #407D88;
    font-size: 24px;
    text-align: center;
}

/* Estilos del formulario */
.modal form {
    margin-top: 20px;
}
.modal label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}
.modal input[type="checkbox"] {
    margin-right: 10px;
}

/* Botón para guardar preferencias */
#savePreferences {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #407D88;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#savePreferences:hover {
    background-color: #335f6e;
}

/* Animación para el modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Para que no moleste el recuadro de abajo de "Cookie Policy" (opción disponible en el footer) */
.cc-revoke {
    display: none !important;
}

