/**
 * hub-cookies.css - Estilos para el sistema de cookies del Hub
 * @version 1.0.0
 */

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.hub-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    display: none;
    border-top: 3px solid #3498db;
}

.hub-cookie-banner.show {
    display: block;
    animation: hubSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hub-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hub-cookie-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ecf0f1;
    display: flex;
    align-items: center;
}

.hub-cookie-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #bdc3c7;
    line-height: 1.6;
}

.hub-cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hub-cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hub-cookie-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.hub-cookie-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f639d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.hub-cookie-btn-secondary {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    color: white;
}

.hub-cookie-btn-secondary:hover {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    transform: translateY(-2px);
}

.hub-cookie-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid #ecf0f1;
}

.hub-cookie-btn-outline:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* ============================================================
   MODALES DE COOKIES
   ============================================================ */
.hub-cookie-modal .modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 12px;
}

.hub-cookie-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 30px;
}

.hub-cookie-modal .modal-body {
    padding: 30px;
}

.hub-cookie-modal .modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 30px;
}

.hub-cookie-modal .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
}

.hub-cookie-settings {
    margin: 25px 0;
}

.hub-cookie-category {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.hub-cookie-category:hover {
    background: rgba(255,255,255,0.12);
}

.hub-cookie-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3498db;
}

.hub-cookie-category-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #bdc3c7;
    line-height: 1.5;
}

/* ============================================================
   BOTÓN DE GESTIÓN DE COOKIES
   ============================================================ */
.hub-cookie-manage-btn {
    position: fixed;
    right: 25px;
    bottom: 85px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.hub-cookie-manage-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f639d 100%);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes hubSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hub-cookie-banner {
        padding: 15px;
    }
    
    .hub-cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hub-cookie-btn {
        width: 100%;
        padding: 12px;
    }
    
    .hub-cookie-manage-btn {
        width: 42px;
        height: 42px;
        right: 15px;
        bottom: 75px;
        font-size: 1rem;
    }
    
    .hub-cookie-modal .modal-header,
    .hub-cookie-modal .modal-body,
    .hub-cookie-modal .modal-footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hub-cookie-title {
        font-size: 1.1rem;
    }
    
    .hub-cookie-text {
        font-size: 0.85rem;
    }
}

/* Mejoras de accesibilidad */
.hub-cookie-btn:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.hub-cookie-manage-btn:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}