/* Estilos para el banner de cookies de consentimiento */

.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-size: 14px;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.5s ease-out;
    opacity: 0.95;
}

.cookie-consent-content {
    padding: 16px 20px;
}

.cookie-consent-text {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.cookie-consent-text i {
    color: #f39c12;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookie-consent-message {
    flex: 1;
    margin-left: 8px;
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-consent-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cookie-consent-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-consent-actions .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.cookie-consent-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Animaciones */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 0.95;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 0.95;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

.cookie-consent-banner.hide {
    animation: slideOutDown 0.3s ease-in forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
        font-size: 11px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 5px;
        right: 5px;
        left: 5px;
        border-radius: 8px;
    }
    
    .cookie-consent-content {
        padding: 12px 16px;
    }
    
    .cookie-consent-text {
        margin-bottom: 10px;
    }
}

/* Estilos para el modal de configuración */
#cookieSettingsModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#cookieSettingsModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#cookieSettingsModal .modal-title {
    color: #2c3e50;
    font-weight: 600;
}

#cookieSettingsModal .form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

#cookieSettingsModal .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#cookieSettingsModal .form-check-input:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.6;
}

/* Efecto de hover para el banner */
.cookie-consent-banner:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Transición suave para el banner */
.cookie-consent-banner {
    transition: all 0.3s ease;
}

/* Estilos para el botón de cerrar del modal */
#cookieSettingsModal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    opacity: 0.7;
}

#cookieSettingsModal .btn-close:hover {
    opacity: 1;
    color: #dc3545;
}
