/*
 * cookie-consent.css
 * Banner de aceptar/rechazar cookies de analitica (GA4). Reutiliza los
 * mismos tokens de marca que legal-modal.css / trial-banner.css
 * (--brand, --ink, --surface, --radius-xl, --shadow-soft, --border-soft).
 */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 0 1rem 1rem;
    animation: cookie-consent-in 0.35s ease-out;
}

.cookie-consent[hidden] {
    display: none;
}

@keyframes cookie-consent-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-xl, 1rem);
    background: var(--light-surface, #ffffff);
    color: var(--ink, #0f172a);
    border: var(--border-soft, 1px solid rgba(252,107,17, 0.2));
    box-shadow: var(--shadow-soft, 0 20px 45px rgba(15, 23, 42, 0.25));
}

.cookie-consent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(252,107,17, 0.12);
    color: var(--brand, #fc6b11);
    font-size: 1.2rem;
}

.cookie-consent-copy {
    flex: 1 1 320px;
    min-width: 0;
}

.cookie-consent-copy p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.cookie-consent-link {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.3rem;
    font: inherit;
    font-weight: 700;
    color: var(--brand-dark, #e85c08);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.6rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cookie-consent-inner {
        padding: 1rem;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 0;
    }
}
