/**
 * Estilos para el sistema de consentimiento de cookies
 * Google Consent Mode v2
 * Fabricantes de Complementos
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.consent-container {
    padding: 20px;
}

.consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.consent-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0056b3;
}

.consent-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.consent-content {
    margin-bottom: 20px;
}

.consent-options {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
}

.consent-option {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.consent-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.consent-option label {
    font-weight: 500;
    margin-left: 8px;
}

.option-description {
    margin: 5px 0 0 25px;
    font-size: 0.85rem;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

.badge.required {
    background-color: #e6f7ff;
    color: #0056b3;
}

.consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.consent-actions button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline {
    background: none;
    border: 1px solid #ccc;
    color: #666;
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

.btn-secondary {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-primary {
    background-color: #0056b3;
    border: 1px solid #0056b3;
    color: white;
}

.btn-primary:hover {
    background-color: #004494;
}

.consent-footer {
    margin-top: 15px;
    font-size: 0.8rem;
    text-align: center;
    color: #666;
}

.consent-footer a {
    color: #0056b3;
    text-decoration: none;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .cookie-consent-banner {
        width: 95%;
        bottom: 10px;
    }
    
    .consent-actions {
        flex-direction: column;
    }
    
    .consent-actions button {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Botón flotante de gestión de cookies (opcional) */
.cookie-settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s;
}

.cookie-settings-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cookie-settings-button i {
    font-size: 1.5rem;
    color: #0056b3;
}

/* Animación para el botón flotante */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cookie-settings-button.pulse {
    animation: pulse 2s infinite;
}
