/* Cookie consent banner — en/es only */
.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10050;
    padding: 16px;
    pointer-events: none;
}

.cookie-consent:not([hidden]) {
    pointer-events: auto;
}

.cookie-consent__panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 40, 32, 0.18);
    border: 1px solid rgba(0, 133, 111, 0.15);
}

.cookie-consent__title {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0a2e28;
}

.cookie-consent__text {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
}

.cookie-consent__links {
    margin: 0 0 18px;
    font-size: 0.875rem;
}

.cookie-consent__links a {
    color: #00856f;
    font-weight: 600;
}

.cookie-consent__links a:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent__btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cookie-consent__btn--primary {
    background: #00856f;
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: #006b59;
}

.cookie-consent__btn--secondary {
    background: #eef7f4;
    color: #0f4a3f;
    border-color: #c5e6dc;
}

.cookie-consent__btn--secondary:hover {
    background: #dff0ea;
}

.cookie-consent__btn--ghost {
    background: transparent;
    color: #475569;
    border-color: #cbd5e1;
}

.cookie-consent__btn--ghost:hover {
    background: #f8fafc;
}

.cookie-consent__category {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-consent__category:last-of-type {
    border-bottom: none;
}

.cookie-consent__category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    cursor: default;
}

.cookie-consent__category-head strong {
    font-size: 0.9375rem;
    color: #0a2e28;
}

.cookie-consent__category p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
}

.cookie-consent__always {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00856f;
    white-space: nowrap;
}

.cookie-consent__category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00856f;
    cursor: pointer;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-top: 8px;
}

.site-footer__legal a,
.site-footer__legal button {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal button:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cookie-consent {
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .cookie-consent__panel {
        padding: 18px;
        border-radius: 14px;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__btn {
        transition: none;
    }
}
