/* Aviso de cookies legal - responsive */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.35s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.cookie-banner[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.cookie-banner.cookie-banner-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 3px solid rgba(255, 153, 0, 0.7);
    color: #e2e8f0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 153, 0, 0.2);
    border-radius: 10px;
    color: #ff9900;
    font-size: 1.25rem;
}

.cookie-banner-text {
    min-width: 0;
}

.cookie-banner-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 4px;
    color: #fff;
}

.cookie-banner-desc {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
}

.cookie-banner-link {
    color: #ff9900;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-link:hover {
    color: #ffb84d;
}

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

.cookie-banner-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    border: none;
    font-family: inherit;
}

.cookie-banner-btn:active {
    transform: scale(0.98);
}

.cookie-banner-btn-decline {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner-btn-decline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.cookie-banner-btn-accept {
    background: #ff9900;
    color: #0f172a;
}

.cookie-banner-btn-accept:hover {
    background: #ffb84d;
    color: #0f172a;
}

/* Responsive: móvil */
@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 14px;
    }

    .cookie-banner-content {
        flex-direction: row;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-banner-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 14px;
    }

    .cookie-banner-btn-decline {
        order: 2;
    }

    .cookie-banner-btn-accept {
        order: 1;
    }
}

/* Ajuste en pantallas muy pequeñas */
@media (max-width: 380px) {
    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-btn-accept,
    .cookie-banner-btn-decline {
        order: unset;
    }
}
