/* 
   Estilos para el banner de consentimiento de cookies
   Diseño moderno, accesible y responsive
*/

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #4a90e2;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text i.bi-cookie {
    font-size: 1.5rem;
    color: #ffc107;
    flex-shrink: 0;
}

.cookie-text strong {
    color: #ffc107;
}

.cookie-link {
    color: #ffc107;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #ffdb4d;
    text-decoration: underline;
}

.cookie-buttons {
    flex-shrink: 0;
}

.cookie-buttons .btn {
    min-width: 120px;
    font-weight: 600;
    padding: 10px 20px;
    background: #19692c; /* ratio 6.8:1 con blanco - cumple WCAG AA */
    border: none;
    box-shadow: 0 2px 8px rgba(25, 105, 44, 0.3);
    transition: all 0.2s ease;
}

.cookie-buttons .btn:hover {
    background: #145228;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 105, 44, 0.4);
}

.cookie-buttons .btn:active {
    transform: translateY(0);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-text {
        flex-direction: column;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .cookie-text i.bi-cookie {
        margin-bottom: 10px;
        font-size: 2rem;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Accesibilidad: Foco visible */
.cookie-buttons .btn:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Modo oscuro (si se implementa en el futuro) */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: linear-gradient(135deg, #0f1f3a 0%, #1a3050 100%);
        border-top-color: #2a5298;
    }
}
