/* Banner de Consentimiento de Cookies - UltraGol */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid #ff6b35;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: 'Roboto', sans-serif;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner h3 {
    color: #ff6b35;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner h3::before {
    content: "🍪";
    font-size: 1.2em;
}

.cookie-banner p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #ff6b35;
    border-radius: 4px;
    background: transparent;
    position: relative;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-category input[type="checkbox"]:checked {
    background: #ff6b35;
    border-color: #ff6b35;
}

.cookie-category input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.cookie-category input[type="checkbox"]:disabled {
    background: #4a4a4a;
    border-color: #666;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-top: 5px;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
}

.cookie-btn-primary {
    background: linear-gradient(45deg, #ff6b35, #ff8555);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(45deg, #e85a2e, #ff6b35);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.cookie-btn-secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

.cookie-btn-outline {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #666;
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #999;
    color: white;
}

.cookie-links {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-links a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-btn {
        min-width: auto;
        padding: 14px 20px;
    }
    
    .cookie-banner h3 {
        font-size: 1.2rem;
    }
    
    .cookie-banner p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-content {
        gap: 15px;
    }
    
    .cookie-category {
        padding: 12px;
    }
}

/* Animaciones */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-banner.animating-in {
    animation: slideUp 0.4s ease-out forwards;
}

.cookie-banner.animating-out {
    animation: slideDown 0.4s ease-in forwards;
}

/* Indicador de estado de consentimiento */
.consent-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 9999;
    display: none;
}

.consent-status.show {
    display: block;
}

.consent-status.accepted {
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.consent-status.partial {
    border: 1px solid #ff6b35;
    color: #ff6b35;
}