/* ==========================================================================
   Villa Soleares — Header (header.php + inc/site-header.php + assets/js/header.js)
   Breakpoints:  < 992px mobile  |  992–1199px desktop compacto  |  ≥ 1200px desktop completo
   ========================================================================== */

:root {
    --vs-green: #70b042;
    --vs-green-dark: #5a9433;
    --vs-green-tint: #f3f8ee;
    --vs-green-tint-2: #e6f1dc;
    --vs-whatsapp: #25d366;
    --vs-ink: #2f2f2f;
    --vs-text: #5b5b5b;
    --vs-muted: #8b8b8b;
    --vs-line: #ececec;
    --vs-radius: 12px;
    --vs-shadow: 0 18px 40px -12px rgba(30, 40, 20, .22), 0 2px 6px rgba(30, 40, 20, .06);
    --vs-ease: cubic-bezier(.2, .7, .2, 1);
    --vs-header-h: 64px;
    --vs-header-top: 0px;
}

@media (min-width: 992px) {
    :root { --vs-header-h: 88px; }
}

/* WP admin bar: el header sticky queda bajo la barra */
.admin-bar { --vs-header-top: 32px; }
@media (max-width: 782px) { .admin-bar { --vs-header-top: 46px; } }
@media (max-width: 600px) { .admin-bar { --vs-header-top: 0px; } }

html.vs-lock,
html.vs-lock body {
    overflow: hidden;
}

/* ---------- Barra de notificación ---------- */
.vs-notice {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
}
.vs-notice__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 36px;
    padding: .4rem 0;
    color: inherit !important;
    text-decoration: none !important;
    line-height: 1.3;
}
.vs-notice__link i { font-size: 11px; transition: transform .2s var(--vs-ease); }
.vs-notice__link:hover i { transform: translateX(3px); }

/* ---------- Header sticky ---------- */
.vs-header {
    position: -webkit-sticky;
    position: sticky;
    top: var(--vs-header-top);
    z-index: 1030;
    background: #fff;
    border-top: 4px solid var(--vs-green);
    box-shadow: 0 1px 0 var(--vs-line);
    transition: box-shadow .25s ease;
}
.vs-header.is-scrolled {
    box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .18);
}

.vs-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "burger logo cta";
    align-items: center;
    height: var(--vs-header-h);
    transition: height .25s var(--vs-ease);
}
.vs-header.is-scrolled .vs-header__inner { height: calc(var(--vs-header-h) - 8px); }

.vs-header__logo { grid-area: logo; display: block; line-height: 0; }
.vs-header__logo img {
    display: block;
    height: 38px;
    width: auto;
    transition: height .25s var(--vs-ease);
}
.vs-header.is-scrolled .vs-header__logo img { height: 34px; }

/* ---------- Botones icono (hamburguesa / cerrar) ---------- */
.vs-icon-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 48px;
    min-height: 48px;
    padding: 4px 6px;
    background: none;
    border: 0;
    border-radius: 10px;
    color: var(--vs-ink);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.vs-icon-btn:hover { background: var(--vs-green-tint); color: var(--vs-green-dark); }
.vs-icon-btn__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}
.vs-header__burger { grid-area: burger; justify-self: start; margin-left: -6px; }

.vs-burger { position: relative; display: block; width: 22px; height: 16px; }
.vs-burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--vs-ease), opacity .2s ease, width .3s var(--vs-ease);
}
.vs-burger span:nth-child(1) { top: 0; }
.vs-burger span:nth-child(2) { top: 7px; width: 70%; }
.vs-burger span:nth-child(3) { top: 14px; }
.vs-icon-btn:hover .vs-burger span:nth-child(2) { width: 100%; }

/* ---------- Botón CTA (Llamar / Contacto) ---------- */
.vs-cta { grid-area: cta; justify-self: end; }
.vs-cta__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 48px;
    min-height: 48px;
    margin-right: -6px;
    padding: 4px 6px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--vs-green-dark);
    cursor: pointer;
}
.vs-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--vs-green);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 0 0 0 rgba(112, 176, 66, .45);
    animation: vs-pulse 2.8s ease-out 1.5s 3;
}
.vs-cta__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}
.vs-cta__label--desktop,
.vs-cta__btn .vs-chevron { display: none; }
.vs-cta__btn[aria-expanded="true"] .vs-cta__icon { background: var(--vs-green-dark); }

@keyframes vs-pulse {
    0% { box-shadow: 0 0 0 0 rgba(112, 176, 66, .45); }
    70% { box-shadow: 0 0 0 10px rgba(112, 176, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(112, 176, 66, 0); }
}

/* ---------- Panel de contacto ---------- */
/* Mobile: hoja a todo el ancho bajo el header */
.vs-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--vs-header-h) - var(--vs-header-top));
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #fff;
    border-top: 1px solid var(--vs-line);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--vs-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s var(--vs-ease), visibility 0s linear .25s;
}
.is-open > .vs-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .25s var(--vs-ease), visibility 0s;
}
.vs-panel__head { margin-bottom: .75rem; }
.vs-panel__title {
    margin: .15rem 0 0;
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--vs-ink);
}
.vs-panel .vs-btn--block { margin-top: 1rem; }
.vs-panel__socials { margin-top: 1rem; justify-content: center; }

.vs-eyebrow {
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vs-green-dark);
}

/* Lista de contacto (teléfonos / email) */
.vs-contact-list { list-style: none; margin: 0; padding: 0; }
.vs-contact-list li + li { margin-top: 4px; }
.vs-contact-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    color: var(--vs-ink) !important;
    text-decoration: none !important;
    transition: background-color .15s ease;
}
.vs-contact-item:hover,
.vs-contact-item:focus-visible { background: var(--vs-green-tint); }
.vs-contact-item__icon {
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vs-green-tint-2);
    color: var(--vs-green-dark);
    font-size: 15px;
}
.vs-contact-item.is-whatsapp .vs-contact-item__icon { background: #e3f8ea; color: #1aa851; font-size: 19px; }
.vs-contact-item__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vs-contact-item__label {
    font-size: 12px;
    color: var(--vs-muted);
}
.vs-contact-item__value {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vs-contact-item__arrow {
    margin-left: auto;
    font-size: 11px;
    color: #c4c4c4;
    transition: transform .2s var(--vs-ease), color .2s ease;
}
.vs-contact-item:hover .vs-contact-item__arrow { color: var(--vs-green); transform: translateX(3px); }

/* ---------- Botones ---------- */
.vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .6rem 1.25rem;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s var(--vs-ease), box-shadow .2s ease;
}
.vs-btn i { font-size: .9em; transition: transform .2s var(--vs-ease); }
.vs-btn:hover i.fa-arrow-right { transform: translateX(3px); }
.vs-btn--primary { background: var(--vs-green); color: #fff !important; }
.vs-btn--primary:hover { background: var(--vs-green-dark); }
.vs-btn--whatsapp { background: var(--vs-whatsapp); color: #fff !important; }
.vs-btn--whatsapp:hover { background: #1fb457; }
.vs-btn--block { display: flex; width: 100%; }

.vs-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--vs-green-dark) !important;
    text-decoration: none !important;
}
.vs-link:hover { text-decoration: underline !important; }

.vs-badge {
    display: inline-block;
    padding: .3em .7em;
    border-radius: 999px;
    background: var(--vs-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
}
.vs-badge--inline { margin-left: .35rem; padding: .25em .6em; font-size: 9px; vertical-align: middle; }

.vs-chevron { font-size: 10px; transition: transform .25s var(--vs-ease); }
[aria-expanded="true"] > .vs-chevron { transform: rotate(180deg); }

/* Redes sociales */
.vs-socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.vs-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--vs-line);
    color: var(--vs-text) !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: all .2s ease;
}
.vs-socials a:hover { background: var(--vs-green); border-color: var(--vs-green); color: #fff !important; }

/* ---------- Menú desktop (oculto en mobile) ---------- */
.vs-nav { display: none; }

/* ---------- Backdrop ---------- */
.vs-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1020;
    background: rgba(20, 25, 15, .45);
    opacity: 0;
    transition: opacity .25s ease;
}
.vs-backdrop.is-visible { opacity: 1; }
html.vs-drawer-open .vs-backdrop { z-index: 1040; }

/* ---------- Menú hamburguesa (drawer) ---------- */
.vs-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: min(90vw, 400px);
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, .2);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .35s var(--vs-ease), visibility 0s linear .35s;
}
.vs-drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform .35s var(--vs-ease), visibility 0s;
}
.admin-bar .vs-drawer { top: var(--vs-header-top); }

.vs-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem .75rem .5rem 1.25rem;
    min-height: 68px;
    border-top: 4px solid var(--vs-green);
    border-bottom: 1px solid var(--vs-line);
}
.vs-drawer__logo img { display: block; height: 36px; width: auto; }
.vs-drawer__close i { font-size: 20px; }

.vs-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem 0 1.5rem;
}
.vs-drawer__section { padding: 1.25rem 1.25rem 0; }
.vs-drawer__section .vs-eyebrow { margin-bottom: .5rem; }
.vs-drawer__section .vs-contact-list { margin: 0 -.75rem; }

.vs-drawer__foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--vs-line);
    background: #fff;
}
.vs-drawer__foot .vs-btn:only-child { grid-column: 1 / -1; }

/* Navegación dentro del drawer */
.vs-dnav { list-style: none; margin: 0; padding: 0; }
.vs-dnav__item { border-bottom: 1px solid var(--vs-line); }
.vs-dnav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: .75rem 1.25rem;
    background: none;
    border: 0;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    color: var(--vs-ink) !important;
    text-decoration: none !important;
    cursor: pointer;
}
.vs-dnav__link:hover,
.vs-dnav__link.is-current { color: var(--vs-green-dark) !important; }
.vs-dnav__link.is-current > span { box-shadow: inset 0 -2px 0 var(--vs-green); }
.vs-dnav__link .vs-chevron { color: var(--vs-muted); font-size: 12px; }

.vs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: .35rem;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--vs-green-tint-2);
    color: var(--vs-green-dark);
    font-size: 12px;
    font-weight: 700;
    vertical-align: 2px;
}

/* Acordeón animado */
.vs-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--vs-ease);
}
.vs-collapse.is-open { grid-template-rows: 1fr; }
.vs-collapse__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .3s; }
.vs-collapse.is-open .vs-collapse__inner { visibility: visible; transition: visibility 0s; }

.vs-dnav__sub { list-style: none; margin: 0; padding: 0 1.25rem .75rem; }
.vs-dnav__sub a {
    display: block;
    padding: .55rem 0 .55rem 1rem;
    border-left: 2px solid var(--vs-line);
    font-size: 15px;
    color: var(--vs-text) !important;
    text-decoration: none !important;
}
.vs-dnav__sub a:hover,
.vs-dnav__sub a.is-current { border-color: var(--vs-green); color: var(--vs-green-dark) !important; }

/* Lista de residencias (drawer) */
.vs-res-list { list-style: none; margin: 0; padding: 0 .75rem; }
.vs-res-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .6rem .5rem;
    border-radius: 10px;
    color: var(--vs-ink) !important;
    text-decoration: none !important;
}
.vs-res-row:hover,
.vs-res-row.is-current { background: var(--vs-green-tint); }
.vs-res-row__thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--vs-green-tint-2);
}
.vs-res-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs-res-row__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.vs-res-row__title { font-size: 15px; font-weight: 600; }
.vs-res-row__meta { font-size: 12.5px; color: var(--vs-muted); }
.vs-res-row__avail { margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--vs-green-dark); }
.vs-res-row__avail i { font-size: 11px; margin-right: 2px; }
.vs-link--all { margin: .5rem 1.25rem 1rem; }

/* Menú secundario dentro del drawer */
.vs-dnav-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem 0;
}
.vs-dnav-secondary a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border: 1px solid var(--vs-line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--vs-text) !important;
    text-decoration: none !important;
}
.vs-dnav-secondary a i { font-size: 12px; color: var(--vs-green); }
.vs-dnav-secondary a:hover { border-color: var(--vs-green); color: var(--vs-green-dark) !important; }

/* ==========================================================================
   DESKTOP ≥ 992px
   ========================================================================== */
@media (min-width: 992px) {

    .vs-header__inner {
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: "logo nav cta burger";
        column-gap: .75rem;
    }
    .vs-header__logo img { height: 54px; }
    .vs-header.is-scrolled .vs-header__logo img { height: 44px; }

    .vs-header__burger { justify-self: end; margin: 0 -6px 0 0; }

    /* Menú principal */
    .vs-nav { grid-area: nav; display: flex; justify-content: flex-end; height: 100%; }
    .vs-nav__list {
        display: flex;
        align-items: stretch;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .vs-nav__item { position: relative; display: flex; align-items: center; }
    .vs-nav__item--mega { position: static; }
    .vs-nav__item--primary { display: none; }

    .vs-nav__link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        height: 100%;
        padding: 0 .7rem;
        background: none;
        border: 0;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: -.1px;
        white-space: nowrap;
        color: var(--vs-ink) !important;
        text-decoration: none !important;
        cursor: pointer;
        transition: color .2s ease;
    }
    .vs-nav__link::after {
        content: "";
        position: absolute;
        left: .7rem;
        right: .7rem;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--vs-green);
        transform: scaleX(0);
        transition: transform .25s var(--vs-ease);
    }
    .vs-nav__link:hover,
    .vs-nav__link[aria-expanded="true"],
    .vs-nav__link.is-current { color: var(--vs-green-dark) !important; }
    .vs-nav__link:hover::after,
    .vs-nav__link[aria-expanded="true"]::after,
    .vs-nav__link.is-current::after { transform: scaleX(1); }
    .vs-nav__link .vs-chevron { color: var(--vs-muted); }

    /* Sub-menú simple (Nosotros) */
    .vs-sub {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        list-style: none;
        margin: 0;
        padding: .5rem;
        background: #fff;
        border-radius: 0 0 var(--vs-radius) var(--vs-radius);
        box-shadow: var(--vs-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .25s var(--vs-ease), visibility 0s linear .25s;
    }
    .is-open > .vs-sub {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .2s ease, transform .25s var(--vs-ease), visibility 0s;
    }
    .vs-sub a {
        display: block;
        padding: .6rem .85rem;
        border-radius: 8px;
        font-size: 14.5px;
        color: var(--vs-ink) !important;
        text-decoration: none !important;
    }
    .vs-sub a:hover,
    .vs-sub a.is-current { background: var(--vs-green-tint); color: var(--vs-green-dark) !important; }

    /* Mega-menú Residencias */
    .vs-mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 2rem 0 2.25rem;
        background: #fff;
        border-top: 1px solid var(--vs-line);
        box-shadow: 0 30px 40px -20px rgba(30, 40, 20, .25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .25s var(--vs-ease), visibility 0s linear .25s;
    }
    .is-open > .vs-mega {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .2s ease, transform .25s var(--vs-ease), visibility 0s;
    }
    .vs-mega__grid {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 2rem;
    }
    .vs-mega__intro {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
        padding: 1.5rem;
        border-radius: var(--vs-radius);
        background: var(--vs-green-tint);
    }
    .vs-mega__title {
        margin: 0;
        font-family: "Playfair Display", serif;
        font-size: 1.6rem;
        line-height: 1.2;
        color: var(--vs-ink);
    }
    .vs-mega__text { margin: 0 0 .5rem; font-size: 14px; line-height: 1.6; color: var(--vs-text); }
    .vs-mega__intro .vs-btn { white-space: nowrap; font-size: 13.5px; padding: .6rem 1.1rem; }
    .vs-mega__intro .vs-link { margin-top: auto; font-size: 13px; }

    .vs-mega__cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .vs-res-card {
        display: flex;
        align-items: center;
        gap: .8rem;
        height: 100%;
        padding: .6rem;
        border: 1px solid var(--vs-line);
        border-radius: var(--vs-radius);
        color: var(--vs-ink) !important;
        text-decoration: none !important;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--vs-ease);
    }
    .vs-res-card:hover,
    .vs-res-card:focus-visible,
    .vs-res-card.is-current {
        border-color: var(--vs-green);
        box-shadow: 0 10px 24px -14px rgba(60, 110, 30, .5);
        transform: translateY(-2px);
    }
    .vs-res-card__media {
        position: relative;
        flex: 0 0 92px;
        width: 92px;
        height: 92px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--vs-green-tint-2);
    }
    .vs-res-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s var(--vs-ease);
    }
    .vs-res-card:hover .vs-res-card__media img { transform: scale(1.06); }
    .vs-res-card__media .vs-badge {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: .45em .2em;
        border-radius: 0;
        font-size: 8px;
        letter-spacing: .04em;
        text-align: center;
    }
    .vs-res-card__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; line-height: 1.3; }
    .vs-res-card__kicker {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--vs-muted);
    }
    .vs-res-card__title {
        margin-top: -2px;
        font-family: "Playfair Display", serif;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.15;
        color: var(--vs-ink);
    }
    .vs-res-card:hover .vs-res-card__title { color: var(--vs-green-dark); }
    .vs-res-card__meta {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12px;
        color: var(--vs-muted);
    }
    .vs-res-card__meta i { color: var(--vs-green); font-size: 11px; margin-right: 2px; }
    .vs-res-card__avail { font-size: 12px; font-weight: 500; color: var(--vs-green-dark); }
    .vs-res-card__avail i { font-size: 11px; margin-right: 2px; }

    /* CTA Contacto → botón píldora */
    .vs-cta { position: relative; justify-self: end; }
    .vs-cta__btn {
        flex-direction: row;
        gap: .55rem;
        min-height: 46px;
        margin: 0;
        padding: 0 1.1rem 0 .4rem;
        border-radius: 999px;
        background: var(--vs-green);
        color: #fff;
        font-size: 14.5px;
        font-weight: 600;
        transition: background-color .2s ease, box-shadow .2s ease;
    }
    .vs-cta__btn:hover,
    .vs-cta__btn[aria-expanded="true"] {
        background: var(--vs-green-dark);
        box-shadow: 0 8px 18px -8px rgba(60, 110, 30, .6);
    }
    .vs-cta__icon {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, .2);
        animation: none;
    }
    .vs-cta__btn[aria-expanded="true"] .vs-cta__icon { background: rgba(255, 255, 255, .25); }
    .vs-cta__label { font-size: inherit; letter-spacing: 0; text-transform: none; }
    .vs-cta__label--mobile { display: none; }
    .vs-cta__label--desktop { display: inline; }
    .vs-cta__btn .vs-chevron { display: inline-block; color: rgba(255, 255, 255, .85); }

    .vs-panel {
        top: calc(100% + 14px);
        left: auto;
        right: 0;
        width: 360px;
        max-height: none;
        padding: 1.25rem;
        border: 0;
        border-radius: var(--vs-radius);
    }
    .vs-panel::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    } /* puente para que el hover no se corte */

    /* Drawer en desktop: entra desde la derecha */
    .vs-drawer { left: auto; right: 0; transform: translateX(100%); }
    .vs-drawer.is-open { transform: none; }
}

/* Desktop compacto: mega-menú a 2 columnas */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .vs-mega__grid { grid-template-columns: 240px 1fr; gap: 1.5rem; }
    .vs-mega__cards { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop completo: el menú principal visible en la barra */
@media (min-width: 1200px) {
    .vs-nav__item--primary { display: flex; }
    .vs-nav__link { padding: 0 .6rem; font-size: 14.5px; }
    .vs-nav__link::after { left: .6rem; right: .6rem; }
}
@media (min-width: 1360px) {
    .vs-nav__link { padding: 0 .8rem; font-size: 15px; }
    .vs-nav__link::after { left: .8rem; right: .8rem; }
}

/* Accesibilidad: foco visible y movimiento reducido */
.vs-header :focus-visible,
.vs-drawer :focus-visible {
    outline: 2px solid var(--vs-green);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .vs-header *,
    .vs-drawer,
    .vs-drawer *,
    .vs-backdrop { transition: none !important; animation: none !important; }
}
