/* ========================================
   BANNER DE COOKIES - RGPD COMPLIANCE
   ======================================== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 25px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    animation: slideUp 0.4s ease-out;
    border-top: 3px solid #3f51b5;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

#cookie-banner.cookie-banner-hiding {
    animation: slideDown 0.3s ease-in forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 48px;
    color: #ffa726;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.cookie-text a {
    color: #8c9eff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: #ffffff;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.cookie-btn i {
    font-size: 14px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cookie-btn-accept:focus {
    outline: 3px solid #a5d6a7;
    outline-offset: 2px;
}

.cookie-btn-reject {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.cookie-btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.cookie-btn-reject:focus {
    outline: 3px solid #ef9a9a;
    outline-offset: 2px;
}

.cookie-btn-config {
    background: transparent;
    color: #8c9eff;
    border: 2px solid #8c9eff;
    box-shadow: none;
}

.cookie-btn-config:hover {
    background: #8c9eff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.cookie-btn-config:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 20px 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cookie-icon {
        font-size: 36px;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-text h3 {
        font-size: 18px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Modo oscuro automático */
@media (prefers-color-scheme: dark) {
    #cookie-banner {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

/* Reducir movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    #cookie-banner,
    .cookie-icon,
    .cookie-btn {
        animation: none;
        transition: none;
    }
}
