/**
 * Consent Mode Manager - CSS Styles
 * Estilos para el banner de consentimiento y elementos relacionados
 */

/* Banner principal de consentimiento */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.consent-banner.show {
    transform: translateY(0);
}

.consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.consent-text {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.consent-text .privacy-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.consent-text .privacy-link:hover {
    text-decoration: underline;
}

/* Categorías de consentimiento */
.consent-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.consent-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.consent-category label {
    display: block;
    cursor: pointer;
    user-select: none;
}

.consent-category input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
}

.consent-category input[type="checkbox"]:disabled {
    opacity: 0.6;
}

.consent-category span {
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.consent-category small {
    color: #ccc;
    font-size: 12px;
    line-height: 1.3;
}

/* Botones */
.consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 140px;
}

.consent-btn-primary {
    background: #4CAF50;
    color: white;
}

.consent-btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.consent-btn-secondary {
    background: #2196F3;
    color: white;
}

.consent-btn-secondary:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.consent-btn-tertiary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.consent-btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Trigger para reabrir configuración */
.consent-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
}

.consent-settings-trigger button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.consent-settings-trigger button:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Notificaciones */
.consent-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1000000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.consent-notification.show {
    transform: translateX(0);
}

.consent-notification-success {
    background: #4CAF50;
}

.consent-notification-error {
    background: #f44336;
}

/* Ajuste cuando el banner está visible */
body.consent-banner-visible {
    padding-bottom: 0; /* Se ajusta automáticamente */
}

/* Responsive design */
@media (max-width: 768px) {
    .consent-banner {
        padding: 15px;
    }
    
    .consent-categories {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .consent-category {
        padding: 12px;
    }
    
    .consent-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .consent-btn {
        min-width: auto;
        width: 100%;
    }
    
    .consent-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .consent-settings-trigger {
        bottom: 10px;
        left: 10px;
    }
    
    .consent-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100px);
    }
    
    .consent-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .consent-banner {
        padding: 12px;
    }
    
    .consent-category {
        padding: 10px;
    }
    
    .consent-category span {
        font-size: 14px;
    }
    
    .consent-category small {
        font-size: 11px;
    }
    
    .consent-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consent-category {
    animation: fadeIn 0.3s ease forwards;
}

.consent-category:nth-child(1) { animation-delay: 0.1s; }
.consent-category:nth-child(2) { animation-delay: 0.2s; }
.consent-category:nth-child(3) { animation-delay: 0.3s; }

/* Efectos hover mejorados */
.consent-category:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

/* Focus states para accesibilidad */
.consent-btn:focus,
.consent-category input[type="checkbox"]:focus {
    outline: 2px solid #4CA