/* ========================================
   COOKIE BANNER - MINIMALISTA Y PROFESIONAL
   ======================================== */

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 40px);
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-lg, 12px);
    padding: 20px 24px;
    max-width: 600px;
    width: calc(100% - 40px);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.5s;
}

#cookie-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
    pointer-events: auto;
}

html[data-theme="dark"] #cookie-banner {
    border-color: color-mix(in srgb, var(--color-text-invert, #ffffff) 28%, transparent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px color-mix(in srgb, var(--color-text-invert, #ffffff) 18%, transparent);
}

.cookie-content {
    text-align: center;
}

#cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-primary);
    line-height: 1.6;
    font-weight: 400;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

#cookie-banner button {
    padding: 6px 20px !important;
    height: 34px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#cookie-banner button#cookie-accept {
    background: #007bff !important;
    color: #ffffff !important;
}

#cookie-banner button#cookie-accept:hover {
    background: #0056b3 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#cookie-banner button#cookie-decline {
    background: #6c757d !important;
    color: #ffffff !important;
    border: 1px solid #6c757d !important;
}

#cookie-banner button#cookie-decline:hover {
    background: #5a6268;
    border-color: #545b62;
    color: #ffffff;
}

/* Responsive Design */
@media (min-width: 641px) {
    #cookie-banner {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-content {
        text-align: center;
        flex-grow: 1;
    }

    .cookie-actions {
        flex-shrink: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    #cookie-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 16px 20px;
        align-items: flex-start;
    }
    
    .cookie-content {
        margin-bottom: 12px;
        text-align: left;
    }
    
    #cookie-banner p {
        font-size: 13px;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 8px;
        justify-content: flex-start;
    }
    
    #cookie-banner button {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookie-banner {
        transition: none;
        transform: translate(-50%, 0);
    }
}
