/* ============================================
   Header
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(255 255 255 / 78%);
    backdrop-filter: blur(12px);
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(0 0 0 / 8%);
    padding-block: 2vh;
}

.site-header__inner {
    max-width: var(--wrap);
    margin-inline: auto;
    min-height: 100px;
    padding-inline: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 3rem;
}

/* ============================================
   Logo
   ============================================ */

.site-header__logo {
    display: block;
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 5rem;
}

/* ============================================
   Navigation (desktop)
   ============================================ */

.site-nav {
    justify-self: center;
}

.site-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    position: relative;
    display: inline-block;
    padding: .25rem 0;
    text-decoration: none;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 500;
    transition: color .15s ease;
}

.site-nav__list a:hover {
    color: var(--brass);
}

.site-nav__list a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.4rem;
    width: 0;
    height: 2px;
    background: var(--cta);
    transform: translateX(-50%);
    transition: width .2s ease;
}

.site-nav__list a:hover::after {
    width: 100%;
}

/* ============================================
   WhatsApp CTA
   ============================================ */
   .site-header__whatsapp {
    justify-self: end;
    font-family: var(--mono);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.25rem;
    border-radius: 999px;
    background: #25d366;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    flex-shrink: 0;
    transition: transform .15s ease, background-color .15s ease;
}

.site-header__whatsapp:hover {
    transform: translateY(-2px);
    background: #1ebe5d;
}

.site-header__whatsapp svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    display: block;
}



/* ============================================
   Tablet
   ============================================ */

@media (width <= 992px) {
    .site-header__inner {
        gap: 1.5rem;
    }

    .site-nav__list {
        gap: 1.25rem;
    }

    .site-header__logo img {
        height: 4.5rem;
    }
}

/* ============================================
   Mobile
   ============================================ */

@media (width <= 768px) {
    .site-header__inner {
        min-height: 84px;
        grid-template-columns: auto auto auto;
        gap: 1rem;
    }

    .site-header__logo img {
        height: 3.5rem;
    }

    /* En mobile, el CTA vuelve a ser un círculo solo con ícono (sin texto) */
    .site-header__whatsapp {
        padding: 0;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        justify-content: center;
    }

    .site-header__whatsapp span:last-child {
        display: none;
    }
}