/* Vinoc — encabezado y menú principal (un solo marcado para desktop, tablet y móvil) */
.vn-header {
    --vn-bg: #120f12;
    --vn-panel: #1c181d;
    --vn-line: rgba(255, 255, 255, .1);
    --vn-text: #ffffff;
    --vn-muted: #b9b3c4;
    --vn-accent: #a79df0;
    --vn-cta: #ffc400;
    --vn-h: 68px;
    height: var(--vn-h);
    font-family: 'Noto Sans', sans-serif;
}

.vn-header *,
.vn-header *::before,
.vn-header *::after {
    box-sizing: border-box;
}

.vn-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vn-header a,
.vn-header button {
    font-family: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.vn-header a:focus-visible,
.vn-header button:focus-visible {
    outline: 2px solid var(--vn-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.vn-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--vn-h);
    background: var(--vn-bg);
    border-bottom: 1px solid var(--vn-line);
    transition: box-shadow .2s ease;
}

.vn-header.is-scrolled .vn-bar {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

.vn-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.vn-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.vn-logo img {
    display: block;
    margin: 0;
    width: 122px;
    height: auto;
}

.vn-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.vn-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vn-item {
    position: relative;
}

.vn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--vn-text) !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease;
}

.vn-link:hover,
.vn-item.is-open > .vn-link {
    background: rgba(255, 255, 255, .08);
}

.vn-link[aria-current="page"],
.vn-item.is-current > .vn-link {
    color: var(--vn-accent) !important;
}

.vn-chevron {
    width: 10px;
    height: 10px;
    transition: transform .2s ease;
}

.vn-item.is-open .vn-chevron {
    transform: rotate(180deg);
}

/* Submenú */
.vn-sub {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 340px;
    padding: 8px;
    background: var(--vn-panel);
    border: 1px solid var(--vn-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

/* puente invisible para no perder el hover entre el botón y el panel */
.vn-sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.vn-item.is-open > .vn-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.vn-sub a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--vn-text) !important;
    line-height: 1.35;
    transition: background-color .15s ease;
}

.vn-sub a:hover {
    background: rgba(255, 255, 255, .07);
}

.vn-sub a[aria-current="page"] .vn-t {
    color: var(--vn-accent);
}

.vn-t {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.vn-d {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--vn-muted);
}

.vn-new {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(167, 157, 240, .18);
    color: var(--vn-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Acciones */
.vn-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vn-text) !important;
    font-size: 14px;
    white-space: nowrap;
}

.vn-phone svg {
    width: 15px;
    height: 15px;
    color: var(--vn-accent);
}

.vn-phone:hover {
    color: var(--vn-accent) !important;
}

.vn-cta {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--vn-cta);
    color: #120f12 !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: filter .15s ease;
}

.vn-cta:hover {
    filter: brightness(1.08);
}

/* Botón hamburguesa (oculto en desktop) */
.vn-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.vn-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.vn-toggle span:nth-child(1) { top: 14px; }
.vn-toggle span:nth-child(2) { top: 21px; }
.vn-toggle span:nth-child(3) { top: 28px; }

.vn-header.is-menu-open .vn-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.vn-header.is-menu-open .vn-toggle span:nth-child(2) { opacity: 0; }
.vn-header.is-menu-open .vn-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ───────── Tablet y móvil ───────── */
@media (max-width: 991.98px) {
    .vn-header {
        --vn-h: 60px;
    }

    .vn-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .vn-logo img {
        width: 108px;
    }

    .vn-toggle {
        display: block;
    }

    .vn-nav {
        position: fixed;
        top: var(--vn-h);
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        padding: 8px 16px 32px;
        background: var(--vn-bg);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .vn-header.is-menu-open .vn-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .vn-menu {
        display: block;
        max-width: 640px;
        margin: 0 auto;
    }

    .vn-item {
        border-bottom: 1px solid var(--vn-line);
        padding: 14px 0;
    }

    /* En pantallas chicas los grupos se muestran abiertos: un solo toque para llegar a cualquier página */
    button.vn-link {
        height: auto;
        padding: 0 4px 6px;
        background: transparent !important;
        color: var(--vn-muted) !important;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        cursor: default;
        pointer-events: none;
    }

    .vn-chevron {
        display: none;
    }

    a.vn-link {
        display: flex;
        height: 44px;
        padding: 0 4px;
        font-size: 17px;
        font-weight: 700;
    }

    .vn-sub {
        position: static;
        width: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: inherit;
        transform: none;
        transition: none;
    }

    .vn-sub::before {
        display: none;
    }

    .vn-sub a {
        padding: 10px 4px;
    }

    .vn-t {
        font-size: 17px;
    }

    .vn-actions {
        max-width: 640px;
        margin: 24px auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .vn-phone {
        justify-content: center;
        height: 48px;
        border: 1px solid var(--vn-line);
        border-radius: 8px;
        font-size: 16px;
    }

    .vn-cta {
        justify-content: center;
        height: 48px;
        font-size: 16px;
    }

    body.vn-lock {
        overflow: hidden;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet: los enlaces de cada grupo en dos columnas */
    .vn-sub ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
    }
}

@media (min-width: 992px) and (max-width: 1139.98px) {
    .vn-inner {
        gap: 16px;
    }

    .vn-phone span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vn-header * {
        transition: none !important;
    }
}

/* ───────── Selector de idioma (solo páginas de Mayoristas, lo agrega js/vinoc-i18n.js) ───────── */
.vn-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    margin-left: -12px;
    color: rgba(255, 255, 255, .35);
    font-size: 12px;
    line-height: 1;
}

.vn-lang button {
    min-width: 30px;
    height: 30px;
    padding: 0 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--vn-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
}

.vn-lang button:hover {
    color: #fff;
}

.vn-lang button[aria-pressed="true"] {
    color: #fff;
    cursor: default;
}

@media (max-width: 991.98px) {
    .vn-lang {
        order: 1;
        margin-left: auto;
    }

    .vn-lang button {
        min-width: 36px;
        height: 44px;
    }

    .vn-header.has-lang .vn-toggle {
        order: 2;
        margin-left: 0;
    }
}

/* Aviso en páginas legales cuando se leen en inglés (lo agrega js/vinoc-i18n.js) */
.vn-legal-note {
    margin: 0;
    padding: 10px 24px;
    background: #f6f4f9;
    border-bottom: 1px solid #e6e2ea;
    color: #37313c;
    font-family: 'Noto Sans', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: center;
}

/* ═════════ Pie de página (lo genera js/vinoc-footer.js) ═════════ */
.vf {
    --vf-bg: #120f12;
    --vf-line: rgba(255, 255, 255, .1);
    --vf-text: #ffffff;
    --vf-muted: #b9b3c4;
    --vf-accent: #a79df0;
    --vf-cta: #ffc400;
    margin: 0;
    padding: 0;
    background: var(--vf-bg);
    border-top: 1px solid var(--vf-line);
    color: var(--vf-muted);
    font-family: 'Noto Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.vf *,
.vf *::before,
.vf *::after {
    box-sizing: border-box;
}

.vf ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vf p {
    margin: 0;
    color: inherit;
}

.vf a {
    color: var(--vf-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.vf a:hover {
    color: #fff;
}

.vf a:focus-visible,
.vf summary:focus-visible {
    outline: 2px solid var(--vf-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.vf-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

/* Marca y contacto */
.vf-logo img {
    display: block;
    margin: 0;
    width: 122px;
    height: auto;
}

.vf-tagline {
    margin-top: 14px !important;
    color: #dcd7e6 !important;
    font-size: 16px;
}

.vf-contact {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    max-width: 300px;
}

.vf-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--vf-line);
    border-radius: 8px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    transition: border-color .15s ease, background-color .15s ease;
}

.vf-btn:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .05);
}

.vf-btn svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--vf-accent);
}

.vf-btn--main {
    border-color: var(--vf-cta);
    background: var(--vf-cta);
    color: #120f12 !important;
}

.vf-btn--main:hover {
    border-color: var(--vf-cta);
    background: var(--vf-cta);
    filter: brightness(1.08);
}

.vf-btn--main svg {
    color: #120f12;
}

.vf-facts {
    margin-top: 18px !important;
    font-size: 13.5px;
}

.vf-facts li + li {
    margin-top: 2px;
}

/* Secciones */
.vf-sec summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    list-style: none;
    cursor: default;
}

.vf-sec summary::-webkit-details-marker {
    display: none;
}

.vf-chev {
    display: none;
    width: 12px;
    height: 12px;
    color: var(--vf-accent);
    transition: transform .2s ease;
}

.vf-sec li + li {
    margin-top: 9px;
}

.vf-group {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
}

.vf-sec ul + .vf-group {
    margin-top: 20px !important;
}

/* Barra inferior */
.vf-bottom {
    border-top: 1px solid var(--vf-line);
}

.vf-bottom__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    font-size: 13.5px;
}

.vf-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.vf-social a {
    font-weight: 700;
}

/* ───────── Tablet ───────── */
@media (max-width: 991.98px) {
    .vf-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 32px;
        padding: 52px 24px 40px;
    }

    .vf-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
        column-gap: 32px;
        align-items: start;
    }

    .vf-contact {
        grid-column: 2;
        grid-row: 1 / span 3;
        margin-top: 0;
    }
}

/* ───────── Móvil: contacto a la vista, lo demás plegado ───────── */
@media (max-width: 767.98px) {
    .vf {
        font-size: 16px;
    }

    .vf-inner {
        display: block;
        padding: 40px 16px 8px;
    }

    .vf-brand {
        display: block;
        padding-bottom: 28px;
    }

    .vf-contact {
        max-width: none;
        margin-top: 20px;
    }

    .vf-btn {
        min-height: 52px;
        font-size: 16px;
    }

    .vf-facts {
        font-size: 14px;
    }

    .vf-sec {
        border-top: 1px solid var(--vf-line);
    }

    .vf-sec summary {
        min-height: 56px;
        margin: 0;
        font-size: 13px;
        cursor: pointer;
    }

    .vf-chev {
        display: block;
    }

    .vf-sec[open] .vf-chev {
        transform: rotate(180deg);
    }

    .vf-sec__body {
        padding: 0 0 22px;
    }

    .vf-sec li + li {
        margin-top: 0;
    }

    .vf-sec li a {
        display: block;
        padding: 10px 0;
        color: #dcd7e6;
    }

    .vf-group {
        margin-bottom: 2px !important;
    }

    .vf-sec ul + .vf-group {
        margin-top: 16px !important;
    }

    .vf-bottom__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 22px 16px 28px;
    }

    .vf-social a {
        display: inline-block;
        padding: 6px 0;
    }
}
