/* Estilos adicionales para el banner de cookies RGPD */

#cookie-banner {
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-banner .fas.fa-cookie-bite {
    animation: cookie-bounce 2s infinite;
}

@keyframes cookie-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

#cookie-overlay {
    backdrop-filter: blur(5px);
}

#cookie-overlay .fas.fa-cookie-bite {
    animation: cookie-spin 3s linear infinite;
}

@keyframes cookie-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para notificaciones */
.cookie-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para elementos bloqueados */
.blocked-interaction {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.blocked-interaction::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Responsive design para el banner */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 1rem;
    }
    
    #cookie-banner .flex-col {
        gap: 1rem;
    }
    
    #cookie-banner .text-sm {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

/* Estilos para la página de política de cookies */
.cookie-policy-section {
    margin-bottom: 2rem;
}

.cookie-policy-section h2 {
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.cookie-policy-section h3 {
    color: #374151;
    margin-bottom: 0.75rem;
}

.cookie-type-card {
    border-left: 4px solid;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.cookie-type-card.technical {
    border-left-color: #3b82f6;
}

.cookie-type-card.performance {
    border-left-color: #10b981;
}

.cookie-type-card.functionality {
    border-left-color: #f59e0b;
}

.cookie-type-card.marketing {
    border-left-color: #8b5cf6;
}

/* Estilos para el botón de gestión de cookies */
.cookie-manage-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cookie-manage-btn:hover {
    background: #374151;
    transform: scale(1.1);
}

.cookie-manage-btn i {
    font-size: 1.5rem;
}

/* Estilos para el enlace de política de cookies */
.cookie-policy-link {
    text-decoration: underline !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.cookie-policy-link:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Estilos para el modal de gestión de cookies */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.cookie-settings-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.cookie-toggle.disabled {
    opacity: 0.6;
    background: #f9fafb;
}

.cookie-toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle-switch.active {
    background: #10b981;
}

.cookie-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle-switch.active::after {
    transform: translateX(26px);
}
