/* ── Buttons ──────────────────────────────────────────────────────────────────
   Reusable pill buttons from the design kit, for use on any template.

     .evas-btn.evas-btn--primary   light-purple gradient, dark text (kit's
                                   "Buscar ahora" / .gradient-btn)
     .evas-btn.evas-btn--outline   transparent, purple border + text (kit's
                                   "Ver todos" / filter buttons)

   Replaces the flat #f39 pink buttons, whose white text measured 3.40:1 —
   below the 4.5:1 minimum for text this size.
   ──────────────────────────────────────────────────────────────────────────── */

.evas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 9999px;
    /* Beats style.css's global `*:not(i){font-family:'Roboto'}` on the button
       itself; the label is a text node, so nothing inside needs it. */
    font-family: 'BDO Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease,
                background-color .2s ease, border-color .2s ease;
}

.evas-btn svg {
    flex-shrink: 0;
}

/* Bootstrap's a:hover would turn link-buttons blue and underline them. */
.evas-btn:hover,
.evas-btn:focus {
    text-decoration: none;
}

.evas-btn:focus {
    outline: none;
}

.evas-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--brand-purpleL), 0 0 0 5px rgb(var(--brand-purple-rgb) / .35);
}

/* ── Primary ── */

.evas-btn--primary,
.evas-btn--primary:hover,
.evas-btn--primary:focus {
    background-color: var(--brand-purpleL);
    background-image: var(--gradient-button);
    color: var(--brand-action-deep);
}

.evas-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 30px rgb(var(--brand-purpleL-rgb) / .35);
}

/* ── Outline ── */

.evas-btn--outline,
.evas-btn--outline:hover,
.evas-btn--outline:focus {
    background-color: transparent;
    border-color: rgb(var(--brand-purpleL-rgb) / .6);
    color: var(--brand-purpleL);
}

.evas-btn--outline:hover {
    background-color: rgb(var(--brand-purpleL-rgb) / .1);
    border-color: var(--brand-purpleL);
    transform: translateY(-1px);
}

/* Toggle buttons (e.g. Bootstrap collapse triggers) read as "on" while open;
   Bootstrap keeps aria-expanded in sync. */
.evas-btn--outline[aria-expanded="true"] {
    background-color: rgb(var(--brand-purpleL-rgb) / .12);
    border-color: var(--brand-purpleL);
}

.evas-btn__chevron {
    transition: transform .2s ease;
}

.evas-btn[aria-expanded="true"] .evas-btn__chevron {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .evas-btn,
    .evas-btn__chevron {
        transition: none;
    }

    .evas-btn:hover {
        transform: none;
    }
}
