/**
 * Estilos para el sistema de gestión de consentimiento de cookies
 * Compatible con GDPR, LOPD-GDD y ePrivacy
 */

/* Banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(45, 52, 54, 0.98);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.cookie-text {
    margin-bottom: 1rem;
}

.cookie-text p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text a {
    color: #00B894;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Modal de configuración */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-settings-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2D3436;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.cookie-settings-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-settings-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.cookie-settings-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-switch {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-switch.disabled {
    opacity: 0.7;
}

.cookie-switch input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

.cookie-settings-description {
    font-size: 0.875rem;
    color: #636E72;
    margin-left: 2.25rem;
    margin-bottom: 0;
}

.cookie-settings-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

/* Estilo para evitar scroll cuando el banner está activo */
body.cookie-banner-open {
    overflow: hidden;
    padding-right: 15px; /* Compensar el scroll */
}

/* Estilos responsivos */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
    }
    
    .cookie-text {
        flex: 1;
        margin-bottom: 0;
        margin-right: 2rem;
    }
    
    .cookie-buttons {
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-settings-modal {
        padding: 1rem;
    }
}

/* Botón de configuración de cookies accesible desde cualquier página */
.cookie-settings-accessibility {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.cookie-settings-button {
    background-color: #fff;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cookie-settings-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .cookie-settings-accessibility {
        bottom: 15px;
        right: 15px;
    }
    
    .cookie-settings-button {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
} 