/* ==========================================================================
   VTH Autopartes — tema de marca
   Colores tomados de tamarit.com.ar: azul #0087CB y navy #0B2653.
   --vth-primary es un azul apenas más oscuro que el de marca para que el
   texto blanco sobre él cumpla contraste AA (4.9:1).
   ========================================================================== */
:root {
    --vth-brand: #0087CB;
    --vth-primary: #0077B6;
    --vth-primary-hover: #00639A;
    --vth-primary-soft: #E6F3FA;
    --vth-navy: #0B2653;
    --vth-navy-2: #12356F;
    --vth-ink: #0F1B2D;
    --vth-muted: #51668A;
    --vth-bg: #F4F7FB;
    --vth-border: #E1E8F0;
    --vth-success: #0E8A5F;
    --vth-warning: #B7791F;
    --vth-danger: #C53030;
    --vth-radius: 12px;
    --vth-radius-sm: 8px;
    --vth-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
    --vth-shadow-lg: 0 12px 32px rgba(15, 27, 45, .14);
    --vth-header-h: 122px;
}

body {
    background: #fff;
    color: var(--vth-ink);
}

.distriHome a:focus-visible,
.distriHome button:focus-visible {
    /* ct-styles.css anula el outline con !important; se restituye solo para teclado */
    outline: 3px solid rgba(0, 135, 203, .45) !important;
    outline-offset: 2px;
}

.vthInicio h1,
.vthInicio h2,
.vthInicio h3,
.vthFooter h3 {
    font-family: "Poppins", sans-serif;
}

.vthContainer {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.vthSkip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: #fff;
    color: var(--vth-navy);
    padding: 8px 16px;
    border-radius: var(--vth-radius-sm);
}

    .vthSkip:focus {
        left: 8px;
    }

/* ---------- Barra superior ---------- */
.vthTopbar {
    background: var(--vth-navy);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

    .vthTopbar .vthContainer {
        display: flex;
        align-items: center;
        gap: 24px;
        min-height: 36px;
    }

    .vthTopbar a,
    .vthTopbar span {
        color: inherit;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

        .vthTopbar a:hover {
            color: #fff;
            text-decoration: none;
        }

    .vthTopbar .vthTopbar__cliente {
        margin-left: auto;
        color: #fff;
        font-weight: 500;
        max-width: 40ch;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ---------- Header ---------- */
.vthHeader {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--vth-border);
}

.vthHeader__main {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}

.vthBrand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--vth-navy);
    cursor: pointer;
}

    .vthBrand:hover {
        text-decoration: none;
        color: var(--vth-navy);
    }

    .vthBrand img {
        height: 44px;
        width: auto;
    }

    .vthBrand span {
        display: flex;
        flex-direction: column;
        line-height: 1.15;
        font-weight: 600;
        font-size: 15px;
    }

    .vthBrand small {
        color: var(--vth-muted);
        font-weight: 400;
        font-size: 12px;
    }

.vthSearch {
    flex: 1;
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: var(--vth-bg);
    border: 1px solid var(--vth-border);
    border-radius: 999px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

    .vthSearch:focus-within {
        background: #fff;
        border-color: var(--vth-brand);
        box-shadow: 0 0 0 4px rgba(0, 135, 203, .15);
    }

    .vthSearch input {
        flex: 1;
        min-width: 0;
        height: 46px;
        border: 0;
        background: transparent;
        padding: 0 20px;
        font-size: 15px;
        color: var(--vth-ink);
        outline: none;
    }

        .vthSearch input::placeholder {
            color: #7B8BA5;
        }

    .vthSearch button {
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 999px;
        background: var(--vth-primary);
        color: #fff;
        font-size: 16px;
        margin: -1px -1px -1px 0;
        transition: background .2s;
    }

        .vthSearch button:hover {
            background: var(--vth-primary-hover);
        }

.vthActions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.vthIconBtn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--vth-radius-sm);
    background: transparent;
    color: var(--vth-navy);
    font-size: 20px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

    .vthIconBtn:hover,
    .vthIconBtn:focus {
        background: var(--vth-primary-soft);
        color: var(--vth-primary);
        text-decoration: none;
    }

    .vthIconBtn .vthIconBtn__label {
        font-size: 11px;
        font-weight: 500;
        margin-top: 2px;
        line-height: 1;
    }

    .vthIconBtn .vthBadge {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--vth-primary);
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        line-height: 18px;
        text-align: center;
    }

.vthHeader__menu {
    display: none;
}

.vthBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

    .vthBtn:hover {
        text-decoration: none;
    }

    .vthBtn:active {
        transform: translateY(1px);
    }

.vthBtn--primary {
    background: var(--vth-primary);
    color: #fff;
}

    .vthBtn--primary:hover,
    .vthBtn--primary:focus {
        background: var(--vth-primary-hover);
        color: #fff;
    }

.vthBtn--ghost {
    background: transparent;
    border-color: var(--vth-border);
    color: var(--vth-navy);
}

    .vthBtn--ghost:hover,
    .vthBtn--ghost:focus {
        border-color: var(--vth-primary);
        color: var(--vth-primary);
    }

.vthBtn--light {
    background: #fff;
    color: var(--vth-navy);
}

    .vthBtn--light:hover,
    .vthBtn--light:focus {
        background: var(--vth-primary-soft);
        color: var(--vth-navy);
    }

.vthBtn--outlineLight {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

    .vthBtn--outlineLight:hover,
    .vthBtn--outlineLight:focus {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

/* Menú de usuario */
.vthUser {
    position: relative;
}

    .vthUser .vthUser__name {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vthUser .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 220px;
        padding: 8px;
        margin-top: 6px;
        border: 1px solid var(--vth-border);
        border-radius: var(--vth-radius);
        box-shadow: var(--vth-shadow-lg);
    }

        .vthUser .dropdown-menu > li > a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: var(--vth-radius-sm);
            color: var(--vth-ink);
            cursor: pointer;
        }

            .vthUser .dropdown-menu > li > a:hover {
                background: var(--vth-primary-soft);
                color: var(--vth-primary);
            }

        .vthUser .dropdown-menu i {
            width: 18px;
            text-align: center;
        }

/* Navegación principal */
.vthNav {
    border-top: 1px solid var(--vth-border);
}

    .vthNav .vthContainer {
        display: flex;
        align-items: center;
        gap: 4px;
        height: 46px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .vthNav a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 100%;
        padding: 0 14px;
        color: var(--vth-navy);
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        transition: color .2s, border-color .2s;
    }

        .vthNav a:hover,
        .vthNav a.activo {
            color: var(--vth-primary);
            border-bottom-color: var(--vth-primary);
            text-decoration: none;
        }

    .vthNav .vthNav__sep {
        width: 1px;
        height: 20px;
        background: var(--vth-border);
        margin: 0 8px;
    }

    .vthNav .vthNav__destacado {
        margin-left: auto;
        color: var(--vth-primary);
    }

/* Sidebar / drawer: estilos de marca sobre la estructura existente */
.distriSidebar {
    background: var(--vth-navy);
}

    .distriSidebar .itemSidebar {
        cursor: pointer;
    }

        .distriSidebar .itemSidebar:hover {
            background-color: rgba(255, 255, 255, .1);
            color: #fff;
            text-decoration: none;
        }

    .distriSidebar .sidebarTitulo {
        color: rgba(255, 255, 255, .55);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        margin: 12px 0 6px 8px;
    }

    .distriSidebar .seccionItemsSidebar {
        overflow-y: auto;
    }

.overlayModal {
    z-index: 20;
}

/* ---------- Landing (home.inicio) ---------- */
.vthInicio {
    background: #fff;
}

.vthSection {
    padding: 72px 0;
    scroll-margin-top: var(--vth-header-h);
}

.vthSection--alt {
    background: var(--vth-bg);
}

.vthEyebrow {
    display: inline-block;
    color: var(--vth-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.vthSectionHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

    .vthSectionHead h2 {
        margin: 0;
        font-size: clamp(24px, 3vw, 34px);
        font-weight: 700;
        color: var(--vth-navy);
        letter-spacing: -.01em;
    }

    .vthSectionHead p {
        margin: 8px 0 0;
        color: var(--vth-muted);
        max-width: 60ch;
    }

.vthLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vth-primary);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

    .vthLink:hover {
        color: var(--vth-primary-hover);
        text-decoration: none;
    }

        .vthLink:hover i {
            transform: translateX(3px);
        }

    .vthLink i {
        transition: transform .2s;
    }

/* Hero */
.vthHero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 480px at 85% 20%, rgba(0, 135, 203, .55), transparent 60%),
        linear-gradient(135deg, var(--vth-navy) 0%, var(--vth-navy-2) 55%, #0A4F86 100%);
}

    .vthHero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
        background-size: 48px 48px;
        mask-image: linear-gradient(to right, transparent, #000 40%, #000);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 40%, #000);
    }

    .vthHero .vthContainer {
        position: relative;
        display: grid;
        grid-template-columns: 1.15fr .85fr;
        gap: 48px;
        align-items: center;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .vthHero .vthEyebrow {
        color: #7CCBF2;
    }

    .vthHero h1 {
        color: #fff;
        margin: 0 0 20px;
        font-size: clamp(32px, 4.6vw, 54px);
        line-height: 1.08;
        font-weight: 700;
        letter-spacing: -.02em;
    }

        .vthHero h1 em {
            font-style: normal;
            color: #7CCBF2;
        }

    .vthHero .vthHero__lead {
        font-size: 18px;
        line-height: 1.6;
        color: rgba(255, 255, 255, .82);
        max-width: 52ch;
        margin: 0 0 32px;
    }

.vthHero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vthHero__search {
    display: flex;
    max-width: 520px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: var(--vth-shadow-lg);
}

    .vthHero__search:focus-within {
        box-shadow: var(--vth-shadow-lg), 0 0 0 4px rgba(124, 203, 242, .45);
    }

    .vthHero__search input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: none;
        padding: 0 18px;
        font-size: 16px;
        color: var(--vth-ink);
        background: transparent;
    }

.vthHero__panel {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(6px);
}

    .vthHero__panel h2 {
        color: rgba(255, 255, 255, .8);
        font-size: 15px;
        font-weight: 600;
        margin: 0 0 16px;
    }

.vthHero__lineas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .vthHero__lineas a {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 18px;
        border-radius: var(--vth-radius);
        background: rgba(255, 255, 255, .95);
        color: var(--vth-navy);
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        transition: transform .2s, box-shadow .2s;
    }

        .vthHero__lineas a:hover {
            transform: translateY(-2px);
            box-shadow: var(--vth-shadow-lg);
            text-decoration: none;
        }

        .vthHero__lineas a i {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 10px;
            background: var(--vth-primary-soft);
            color: var(--vth-primary);
            font-size: 18px;
        }

        .vthHero__lineas a small {
            color: var(--vth-muted);
            font-weight: 400;
            font-size: 12px;
        }

/* Cifras */
.vthStats {
    border-bottom: 1px solid var(--vth-border);
}

    .vthStats .vthContainer {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

.vthStat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
}

    .vthStat + .vthStat {
        border-left: 1px solid var(--vth-border);
    }

    .vthStat i {
        font-size: 26px;
        color: var(--vth-brand);
    }

    .vthStat strong {
        display: block;
        font-size: 22px;
        font-weight: 700;
        color: var(--vth-navy);
        line-height: 1.2;
    }

    .vthStat span {
        color: var(--vth-muted);
        font-size: 14px;
    }

/* Grilla de productos destacados */
.vthGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vthCard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: var(--vth-radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

    .vthCard:hover {
        box-shadow: var(--vth-shadow-lg);
        transform: translateY(-2px);
        border-color: transparent;
        text-decoration: none;
    }

.vthCard__img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #fff;
    display: grid;
    place-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--vth-border);
}

    .vthCard__img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.vthCard__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    flex: 1;
}

.vthCard__marca {
    color: var(--vth-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.vthCard__titulo {
    color: var(--vth-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.vthCard__cod {
    color: var(--vth-muted);
    font-size: 13px;
}

.vthCard__precio {
    margin-top: auto;
    padding-top: 8px;
    color: var(--vth-navy);
    font-size: 18px;
    font-weight: 700;
}

.vthCard__login {
    margin-top: auto;
    padding-top: 8px;
    color: var(--vth-primary);
    font-size: 13px;
    font-weight: 500;
}

.vthTag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.vthTag--oferta {
    background: #FDECEC;
    color: var(--vth-danger);
}

.vthTag--stock {
    background: #E7F6EF;
    color: var(--vth-success);
}

.vthSkeleton {
    background: linear-gradient(90deg, #EEF2F7 25%, #F7F9FC 50%, #EEF2F7 75%);
    background-size: 200% 100%;
    animation: vthShimmer 1.2s infinite;
    border-radius: 6px;
}

@keyframes vthShimmer {
    to {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vthSkeleton {
        animation: none;
    }

    .vthCard,
    .vthHero__lineas a,
    .vthLink i {
        transition: none;
    }
}

/* Empresa */
.vthEmpresa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

    .vthEmpresa p {
        color: var(--vth-muted);
        font-size: 16px;
        line-height: 1.7;
    }

.vthChecks {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

    .vthChecks li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        color: var(--vth-ink);
        font-weight: 500;
    }

        .vthChecks li i {
            color: var(--vth-primary);
            margin-top: 3px;
        }

.vthPilares {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vthPilar {
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: var(--vth-radius);
    padding: 24px;
}

    .vthPilar i {
        font-size: 24px;
        color: var(--vth-brand);
        margin-bottom: 12px;
        display: block;
    }

    .vthPilar h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--vth-navy);
        margin: 0 0 6px;
    }

    .vthPilar p {
        font-size: 14px;
        line-height: 1.55;
        margin: 0;
    }

/* Banda CTA */
.vthCta {
    background: var(--vth-primary);
    color: #fff;
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

    .vthCta h2 {
        color: #fff;
        margin: 0 0 6px;
        font-size: 26px;
        font-weight: 700;
    }

    .vthCta p {
        margin: 0;
        color: rgba(255, 255, 255, .85);
    }

/* Contacto */
.vthContacto {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

    .vthContacto a,
    .vthContacto div {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 24px;
        border: 1px solid var(--vth-border);
        border-radius: var(--vth-radius);
        background: #fff;
        color: var(--vth-ink);
    }

    .vthContacto a:hover {
        border-color: var(--vth-primary);
        text-decoration: none;
    }

    .vthContacto i {
        font-size: 22px;
        color: var(--vth-primary);
        margin-bottom: 6px;
    }

    .vthContacto strong {
        color: var(--vth-navy);
    }

    .vthContacto span {
        color: var(--vth-muted);
        font-size: 14px;
    }

/* ---------- Footer ---------- */
.vthFooter {
    background: var(--vth-navy);
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
}

    .vthFooter .vthFooter__top {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 40px;
        padding-top: 56px;
        padding-bottom: 40px;
    }

    .vthFooter h3 {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 16px;
    }

    .vthFooter ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 10px;
    }

    .vthFooter a {
        color: inherit;
        cursor: pointer;
    }

        .vthFooter a:hover {
            color: #fff;
            text-decoration: none;
        }

    .vthFooter li i {
        width: 18px;
        color: #7CCBF2;
        margin-right: 6px;
    }

    .vthFooter .vthFooter__brand img {
        height: 40px;
        margin-bottom: 16px;
    }

    .vthFooter .vthFooter__brand p {
        line-height: 1.6;
        max-width: 36ch;
    }

    .vthFooter .vthFooter__bottom {
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: 20px;
        padding-bottom: 20px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        font-size: 13px;
    }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .vthGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vthIconBtn .vthIconBtn__label {
        display: none;
    }
}

@media (max-width: 991px) {
    :root {
        --vth-header-h: 116px;
    }

    .distriHome.sinBuscador {
        --vth-header-h: 64px;
    }

    .vthTopbar .vthTopbar__horario,
    .vthTopbar .vthTopbar__mail {
        display: none;
    }

    .vthHeader .vthHeader__main {
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .vthHeader__menu {
        display: inline-flex;
        order: -1;
    }

    .vthBrand img {
        height: 36px;
    }

    .vthBrand span {
        display: none;
    }

    .vthSearch {
        order: 10;
        flex-basis: 100%;
        max-width: none;
        margin: 0;
    }

        .vthSearch input,
        .vthSearch button {
            height: 44px;
        }

    .vthNav {
        display: none;
    }

    .vthUser .vthUser__name {
        display: none;
    }

    .vthHero .vthContainer {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 48px;
        gap: 32px;
    }

    .vthStats .vthContainer {
        grid-template-columns: repeat(2, 1fr);
    }

    .vthStat:nth-child(3) {
        border-left: 0;
    }

    .vthStat:nth-child(n+3) {
        border-top: 1px solid var(--vth-border);
    }

    .vthEmpresa {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vthContacto {
        grid-template-columns: repeat(2, 1fr);
    }

    .vthFooter .vthFooter__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .vthContainer {
        padding: 0 16px;
    }

    .vthSection {
        padding: 48px 0;
    }

    .vthSectionHead {
        flex-direction: column;
        align-items: flex-start;
    }

    .vthGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .vthCard__body {
        padding: 12px;
    }

    .vthCard__precio {
        font-size: 16px;
    }

    .vthHero__lineas a {
        padding: 14px;
        font-size: 14px;
    }

    .vthHero__panel {
        padding: 20px;
    }

    .vthStat {
        padding: 20px 12px;
        gap: 12px;
    }

        .vthStat strong {
            font-size: 18px;
        }

    .vthPilares,
    .vthContacto,
    .vthFooter .vthFooter__top {
        grid-template-columns: 1fr;
    }

    .vthCta {
        padding: 28px 24px;
    }

    .vthIconBtn {
        min-width: 44px;
        padding: 0 4px;
    }

    .vthActions .vthBtn {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }

    .vthActions .vthBtn .vthBtn__largo,
    .vthHero__ctas .vthBtn--outlineLight {
        display: none;
    }
}

/* ---------- Catálogo: ajustes de marca sobre el markup existente ---------- */
.btnToggleMenu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--vth-navy);
    border-bottom: 1px solid var(--vth-border);
    font-size: 15px;
    font-weight: 600;
}

    .btnToggleMenu i {
        font-size: 18px;
        color: var(--vth-primary);
    }

.distriCatalogo .seccionProductos .listaProductos .producto {
    box-shadow: none;
    border: 1px solid var(--vth-border);
    transition: box-shadow .2s, transform .2s;
}

    .distriCatalogo .seccionProductos .listaProductos .producto:hover {
        box-shadow: var(--vth-shadow-lg);
        transform: translateY(-2px);
    }

    .distriCatalogo .seccionProductos .listaProductos .producto .stock {
        display: inline-flex;
        width: auto;
        height: 24px;
        margin: 4px 16px 0;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
    }

        .distriCatalogo .seccionProductos .listaProductos .producto .stock.enStock {
            background-color: #E7F6EF;
            color: var(--vth-success);
        }

        .distriCatalogo .seccionProductos .listaProductos .producto .stock.consultar {
            background-color: #FEF6E0;
            color: #8A5A00;
        }

        .distriCatalogo .seccionProductos .listaProductos .producto .stock.sinStock {
            background-color: #FDEEE6;
            color: #B4461A;
        }

    .distriCatalogo .seccionProductos .listaProductos .producto .descripcionProducto p {
        color: var(--vth-muted);
        font-size: 13px;
    }

    .distriCatalogo .seccionProductos .listaProductos .producto .descripcionProducto .descripcion {
        color: var(--vth-ink);
        font-size: 13px;
    }

@media (prefers-reduced-motion: reduce) {
    .distriCatalogo .seccionProductos .listaProductos .producto {
        transition: none;
    }
}

/* Drawer lateral a pantalla completa (no depende del alto del header) */
.distriHome .distriSidebar {
    top: 0;
    height: 100%;
    z-index: 30;
    width: min(320px, 86vw);
    box-shadow: var(--vth-shadow-lg);
}

.vthDrawerHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .vthDrawerHead img {
        height: 36px;
    }

    .vthDrawerHead .vthIconBtn {
        color: #fff;
    }

        .vthDrawerHead .vthIconBtn:hover {
            background: rgba(255, 255, 255, .1);
            color: #fff;
        }

.vthBackdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(11, 38, 83, .45);
}

/* ct-styles.css pinta de gris (#F8F8F8, con !important) todo input con foco;
   en los buscadores redondeados eso asoma como un rectángulo. El foco ya se
   marca en el contenedor (:focus-within). */
.vthSearch input:focus,
.vthHero__search input:focus {
    background-color: transparent !important;
}

/* ==========================================================================
   Modales (login, cerrar sesión, selección de cliente, confirmar pedido)
   ========================================================================== */
.overlayModal {
    padding: 16px;
    overflow-y: auto;
    background-color: rgba(11, 38, 83, .55);
}

.vthModal {
    box-sizing: border-box;
    position: relative;
    width: min(420px, 100%);
    margin: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(11, 27, 45, .3);
    padding: 36px 32px 28px;
    color: var(--vth-ink);
    font-family: "Poppins", sans-serif;
}

.vthModal--sm {
    width: min(380px, 100%);
}

.vthModal--lg {
    width: min(640px, 100%);
}

.vthModal--pdf {
    width: min(900px, 100%);
    padding: 36px 16px 16px;
}

.pdfModalAcciones {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 4px;
}

    .pdfModalAcciones a,
    .pdfModalAcciones .vthModal__close {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 999px;
        color: var(--vth-muted);
        font-size: 16px;
        transition: background .2s, color .2s;
    }

        .pdfModalAcciones a:hover,
        .pdfModalAcciones .vthModal__close:hover {
            background: var(--vth-bg);
            color: var(--vth-ink);
        }

.pdfModalFrame {
    display: block;
    width: 100%;
    height: 80vh;
    border: 0;
}

.vthModal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--vth-muted);
    font-size: 18px;
    transition: background .2s, color .2s;
}

    .vthModal__close:hover {
        background: var(--vth-bg);
        color: var(--vth-ink);
    }

.vthModal__head {
    text-align: center;
    margin-bottom: 24px;
}

.vthModal__head--left {
    text-align: left;
    padding-right: 32px;
}

.vthModal__head h2 {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--vth-navy);
    margin: 0 0 6px;
}

.vthModal__head p {
    margin: 0;
    color: var(--vth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.vthModal__logo {
    height: 40px;
    margin-bottom: 16px;
}

.vthModal__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--vth-primary-soft);
    color: var(--vth-primary);
    font-size: 22px;
}

.vthModal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.vthModal--sm .vthModal__actions .vthBtn {
    flex: 1;
}

.vthModal__foot {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--vth-border);
    text-align: center;
    color: var(--vth-muted);
    font-size: 13px;
    line-height: 1.6;
}

    .vthModal__foot a {
        color: var(--vth-primary);
        font-weight: 500;
        white-space: nowrap;
    }

/* Formularios */
.vthForm {
    display: grid;
    gap: 16px;
}

.vthForm__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vthField {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    min-width: 0;
}

    .vthField label {
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        color: var(--vth-navy);
        font-family: "Poppins", sans-serif;
    }

        .vthField label small {
            font-weight: 400;
            color: var(--vth-muted);
        }

.vthField__ctrl {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}

    .vthField__ctrl:focus-within,
    .vthSelect:focus,
    .vthTextarea:focus {
        border-color: var(--vth-brand) !important;
        box-shadow: 0 0 0 4px rgba(0, 135, 203, .15) !important;
        outline: none;
    }

    .vthField__ctrl > i {
        width: 44px;
        text-align: center;
        color: var(--vth-muted);
        flex-shrink: 0;
    }

    .vthField__ctrl input {
        flex: 1;
        min-width: 0;
        width: 100%;
        height: 100%;
        border: 0;
        padding: 0 12px 0 0;
        background: transparent;
        /* 16px evita el zoom automático de iOS al enfocar el campo */
        font-size: 16px;
        color: var(--vth-ink);
        outline: none;
    }

        .vthField__ctrl input:focus {
            background-color: transparent !important;
        }

.vthField__btn {
    width: 44px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--vth-muted);
}

    .vthField__btn:hover {
        color: var(--vth-primary);
    }

.vthSelect,
.vthTextarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background-color: #fff;
    font-size: 16px;
    color: var(--vth-ink);
    transition: border-color .2s, box-shadow .2s;
}

.vthSelect {
    height: 48px;
    padding: 0 12px;
}

.vthTextarea {
    min-height: 96px;
    padding: 12px;
    resize: vertical;
}

    .vthSelect:focus,
    .vthTextarea:focus {
        background-color: #fff !important;
    }

.vthAlert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.vthAlert--error {
    background: #FDECEC;
    color: var(--vth-danger);
}

.vthBtn--block {
    width: 100%;
    height: 48px;
}

.vthBtn--sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.vthBtn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* Selección de cliente: opciones del typeahead */
.vthModal .dropdown-menu {
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--vth-border);
    box-shadow: var(--vth-shadow-lg);
}

    .vthModal .dropdown-menu > li > a.vthClienteOpcion {
        display: grid;
        grid-template-columns: 90px 1fr;
        gap: 2px 12px;
        padding: 10px 12px;
        border-radius: 8px;
        white-space: normal;
    }

    .vthModal .dropdown-menu > .active > a.vthClienteOpcion,
    .vthModal .dropdown-menu > li > a.vthClienteOpcion:hover {
        background: var(--vth-primary-soft);
        color: var(--vth-ink);
    }

.vthClienteOpcion strong {
    grid-row: span 2;
    color: var(--vth-primary);
}

.vthClienteOpcion small {
    color: var(--vth-muted);
}

/* ==========================================================================
   Encabezado de página (panel, carrito)
   ========================================================================== */
.vthPageHead {
    color: #fff;
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(0, 135, 203, .5), transparent 60%),
        linear-gradient(135deg, var(--vth-navy) 0%, var(--vth-navy-2) 100%);
}

.vthPageHead__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 88px;
}

.vthPageHead--compact .vthPageHead__inner {
    padding-bottom: 16px;
}

.vthPageHead .vthEyebrow {
    color: #7CCBF2;
    margin-bottom: 6px;
}

.vthPageHead h1 {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 700;
    margin: 0;
}

.vthPageHead p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
}

.vthPageHead__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Pestañas */
.vthTabs {
    display: flex;
    gap: 4px;
}

    .vthTabs a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 12px 12px 0 0;
        color: rgba(255, 255, 255, .8);
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
    }

        .vthTabs a:hover {
            color: #fff;
            text-decoration: none;
            background: rgba(255, 255, 255, .08);
        }

        .vthTabs a.activo {
            background: var(--vth-bg);
            color: var(--vth-navy);
        }

.vthTabs__count {
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.vthTabs a.activo .vthTabs__count {
    background: var(--vth-primary);
    color: #fff;
}

/* ==========================================================================
   Panel
   ========================================================================== */
.vthPanel,
.vthCarrito {
    background: var(--vth-bg);
    min-height: calc(100vh - var(--vth-header-h));
}

.vthPanel__body {
    margin-top: -64px;
    padding-bottom: 64px;
}

.vthKpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vthKpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: 16px;
    box-shadow: var(--vth-shadow);
    color: var(--vth-ink);
    transition: box-shadow .2s, transform .2s;
}

a.vthKpi:hover {
    box-shadow: var(--vth-shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--vth-ink);
}

.vthKpi__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--vth-primary-soft);
    color: var(--vth-primary);
    font-size: 18px;
}

.vthKpi__label {
    color: var(--vth-muted);
    font-size: 14px;
}

.vthKpi__valor {
    font-size: 28px;
    font-weight: 700;
    color: var(--vth-navy);
    min-height: 40px;
    display: flex;
    align-items: center;
}

.vthKpi__skeleton {
    display: block;
    width: 120px;
    height: 28px;
}

.vthKpi__link,
.vthKpi__hint {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.vthKpi__link {
    color: var(--vth-primary);
}

.vthKpi__hint {
    color: var(--vth-muted);
    font-weight: 400;
}

.vthPanel__titulo {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--vth-navy);
    margin: 40px 0 16px;
}

.vthAccesos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.vthAcceso {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: 14px;
    color: var(--vth-ink);
    transition: border-color .2s, box-shadow .2s;
}

    .vthAcceso:hover {
        border-color: var(--vth-primary);
        box-shadow: var(--vth-shadow);
        text-decoration: none;
        color: var(--vth-ink);
    }

    .vthAcceso > span:nth-child(2) {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .vthAcceso strong {
        font-weight: 600;
        color: var(--vth-navy);
    }

    .vthAcceso small {
        color: var(--vth-muted);
        font-size: 13px;
    }

.vthAcceso__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--vth-primary-soft);
    color: var(--vth-primary);
    font-size: 18px;
}

.vthAcceso__arrow {
    color: #94A3B8;
    font-size: 13px;
    transition: transform .2s, color .2s;
}

.vthAcceso:hover .vthAcceso__arrow {
    color: var(--vth-primary);
    transform: translateX(3px);
}

/* ==========================================================================
   Carrito
   ========================================================================== */
.vthCarrito__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 64px;
}

.vthCarrito__layout--solo {
    grid-template-columns: 1fr;
}

.vthToolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.vthToolbar__acciones {
    display: flex;
    gap: 8px;
}

.vthSearch--sm {
    flex: 1;
    max-width: 360px;
    margin: 0;
    background: #fff;
    align-items: center;
}

    .vthSearch--sm input {
        height: 40px;
        font-size: 14px;
        padding: 0 16px;
    }

        .vthSearch--sm input:focus {
            background-color: transparent !important;
        }

    .vthSearch--sm > i {
        padding: 0 16px;
        color: var(--vth-muted);
    }

.vthItems {
    display: grid;
    gap: 10px;
}

.vthItem {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto 120px auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: 14px;
    transition: opacity .2s, border-color .2s;
}

.vthItem--fuera {
    background: #FBFCFE;
}

    .vthItem--fuera .vthItem__img,
    .vthItem--fuera .vthItem__info,
    .vthItem--fuera .vthItem__subtotal {
        opacity: .6;
    }

.vthItem__img {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--vth-border);
    overflow: hidden;
}

    .vthItem__img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.vthItem__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.vthItem__titulo {
    color: var(--vth-ink);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

    .vthItem__titulo:hover {
        color: var(--vth-primary);
    }

.vthItem__meta,
.vthItem__unit {
    color: var(--vth-muted);
    font-size: 13px;
}

.vthItem__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 2px 0;
}

    .vthItem__tags .fa-heart {
        color: var(--vth-primary);
        cursor: pointer;
        font-size: 15px;
        margin-left: 2px;
    }

.vthChip {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.vthChip--stock {
    background: #E7F6EF;
    color: var(--vth-success);
}

.vthChip--consultar {
    background: #FEF6E0;
    color: #8A5A00;
}

.vthChip--sin {
    background: #FDEEE6;
    color: #B4461A;
}

.vthChip--oferta {
    background: #FDECEC;
    color: var(--vth-danger);
}

.vthItem__subtotal {
    text-align: right;
    font-weight: 700;
    color: var(--vth-navy);
    font-size: 16px;
    white-space: nowrap;
}

.vthItem__acciones {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Selector de cantidad (directiva sdt-cantidad) */
.vthItem__cant .cantWrapper {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

    .vthItem__cant .cantWrapper .plusminus {
        width: 36px;
        height: 100%;
        border: 0;
        background: transparent;
        color: var(--vth-primary);
        font-size: 18px;
        font-weight: 600;
    }

        .vthItem__cant .cantWrapper .plusminus:hover {
            background: var(--vth-primary-soft);
        }

    .vthItem__cant .cantWrapper .spn {
        width: 36px;
        text-align: center;
        color: var(--vth-primary);
    }

    .vthItem__cant .cantWrapper .num {
        width: 48px;
        height: 100%;
        border: 0;
        text-align: center;
        font-weight: 600;
        color: var(--vth-ink);
        -moz-appearance: textfield;
    }

        .vthItem__cant .cantWrapper .num:focus {
            background-color: var(--vth-bg) !important;
            outline: none;
        }

        .vthItem__cant .cantWrapper .num::-webkit-inner-spin-button,
        .vthItem__cant .cantWrapper .num::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.vthCheck {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px 0 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vth-navy);
    cursor: pointer;
    user-select: none;
}

    .vthCheck:hover {
        background: var(--vth-primary-soft);
    }

    .vthCheck input {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--vth-primary);
        cursor: pointer;
    }

.vthIconBtn--sm {
    min-width: 36px;
    height: 36px;
    font-size: 15px;
    color: var(--vth-muted);
}

.vthIconBtn--danger:hover,
.vthIconBtn--danger:focus {
    background: #FDECEC;
    color: var(--vth-danger);
}

.vthItems__sinResultados {
    padding: 24px;
    text-align: center;
    color: var(--vth-muted);
}

/* Resumen */
.vthResumen {
    position: sticky;
    top: calc(var(--vth-header-h) + 16px);
    padding: 24px;
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: 16px;
    box-shadow: var(--vth-shadow);
}

    .vthResumen h2 {
        font-family: "Poppins", sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: var(--vth-navy);
        margin: 0 0 16px;
    }

    .vthResumen dl {
        display: grid;
        gap: 8px;
        margin: 0 0 16px;
        font-size: 14px;
    }

        .vthResumen dl > div {
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }

    .vthResumen dt {
        font-weight: 400;
        color: var(--vth-muted);
    }

    .vthResumen dd {
        color: var(--vth-ink);
        font-weight: 500;
    }

.vthResumen__pedido {
    padding-top: 16px;
    border-top: 1px dashed var(--vth-border);
}

.vthResumen .vthResumen__total {
    margin-top: 4px;
    font-size: 16px;
}

    .vthResumen .vthResumen__total dt {
        color: var(--vth-navy);
        font-weight: 600;
    }

    .vthResumen .vthResumen__total dd {
        color: var(--vth-navy);
        font-weight: 700;
        font-size: 20px;
    }

.vthResumen__nota {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--vth-muted);
    text-align: center;
}

/* Estado vacío */
.vthVacio {
    grid-column: 1 / -1;
    padding: 56px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed #CBD5E1;
    border-radius: 16px;
}

    .vthVacio h2 {
        font-family: "Poppins", sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: var(--vth-navy);
        margin: 0 0 6px;
    }

    .vthVacio p {
        color: var(--vth-muted);
        margin: 0 0 20px;
    }

.vthVacio__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--vth-primary-soft);
    color: var(--vth-primary);
    font-size: 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 991px) {
    .vthCarrito__layout {
        grid-template-columns: 1fr;
    }

    .vthResumen {
        position: static;
        order: -1;
    }

    .vthKpis {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .vthModal {
        padding: 32px 20px 20px;
    }

    .vthForm__row {
        grid-template-columns: 1fr;
    }

    .vthKpi {
        padding: 16px 20px;
    }

    .vthKpi__icon {
        display: none;
    }

    .vthKpi__valor {
        font-size: 24px;
        min-height: 34px;
    }

    .vthPageHead__inner {
        padding-top: 28px;
        padding-bottom: 80px;
    }

    .vthItem {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "img info"
            "cant subtotal"
            "acciones acciones";
        gap: 12px;
        padding: 12px;
    }

    .vthItem__img {
        grid-area: img;
        width: 64px;
        height: 64px;
    }

    .vthItem__info {
        grid-area: info;
    }

    .vthItem__cant {
        grid-area: cant;
    }

    .vthItem__subtotal {
        grid-area: subtotal;
    }

    .vthItem__acciones {
        grid-area: acciones;
        justify-content: flex-end;
        border-top: 1px solid var(--vth-border);
        padding-top: 8px;
    }

    .vthCheck {
        margin-right: auto;
    }

    .vthSearch--sm {
        max-width: none;
        flex-basis: 100%;
    }

    .vthTabs a {
        padding: 10px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vthKpi,
    .vthAcceso__arrow,
    .vthItem {
        transition: none;
    }
}

/* ==========================================================================
   Mi cuenta: Mis datos, Mis pedidos, detalle de pedido
   ========================================================================== */
.vthCuenta {
    background: var(--vth-bg);
    min-height: calc(100vh - var(--vth-header-h));
}

.vthCuenta__body {
    padding-top: 24px;
    padding-bottom: 64px;
}

.vthCuenta__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 64px;
}

.vthPageHead__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #7CCBF2;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .vthPageHead__back:hover,
    .vthPageHead__back:focus {
        color: #fff;
        text-decoration: none;
    }

.vthCard2 {
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--vth-shadow);
}

    .vthCard2 h2 {
        font-family: "Poppins", sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: var(--vth-navy);
        margin: 0 0 16px;
    }

.vthCard2 .vthCard2__desc {
    margin: -8px 0 20px;
    color: var(--vth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.vthCard2 .vthCard2__nota {
    display: flex;
    gap: 10px;
    margin: 20px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--vth-bg);
    color: var(--vth-muted);
    font-size: 13px;
    line-height: 1.5;
}

    .vthCard2__nota i {
        color: var(--vth-primary);
        margin-top: 3px;
    }

    .vthCard2__nota a {
        color: var(--vth-primary);
        font-weight: 500;
    }

.vthDatos {
    display: grid;
    gap: 0;
    margin: 0;
}

    .vthDatos > div {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--vth-border);
    }

        .vthDatos > div:last-child {
            border-bottom: 0;
        }

    .vthDatos dt {
        color: var(--vth-muted);
        font-weight: 400;
        font-size: 14px;
    }

    .vthDatos dd {
        color: var(--vth-ink);
        font-weight: 500;
        overflow-wrap: anywhere;
    }

.vthField__ayuda {
    min-height: 18px;
    color: var(--vth-muted);
    font-size: 12px;
}

.vthField__ayuda--error {
    color: var(--vth-danger);
}

.vthField__ayuda--ok {
    color: var(--vth-success);
}

.vthField__ctrl--error {
    border-color: var(--vth-danger);
}

.vthField__ctrl--ok {
    border-color: var(--vth-success);
}

.vthField__ctrl--sm {
    height: 40px;
}

    .vthField__ctrl--sm input {
        padding-left: 12px;
    }

.vthForm__acciones {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}

/* Mis pedidos */
.vthFechas {
    display: flex;
    gap: 12px;
}

    .vthFechas .vthField {
        width: 170px;
    }

.vthCuenta .vthToolbar__info {
    margin: 0;
    color: var(--vth-muted);
    font-size: 14px;
}

.vthExport {
    margin-left: auto;
}

    .vthExport .sdt-reporte {
        margin: 0;
    }

        .vthExport .sdt-reporte > .btn {
            height: 40px;
            border-color: var(--vth-border);
            background: #fff;
            color: var(--vth-navy);
            font-weight: 500;
        }

            .vthExport .sdt-reporte > .btn:first-child {
                border-radius: 999px 0 0 999px;
                padding-left: 16px;
            }

            .vthExport .sdt-reporte > .btn:last-child {
                border-radius: 0 999px 999px 0;
                padding-right: 14px;
            }

            .vthExport .sdt-reporte > .btn:hover {
                background: var(--vth-primary-soft);
                color: var(--vth-primary);
            }

        .vthExport .sdt-reporte .dropdown-menu {
            border-radius: 12px;
            border: 1px solid var(--vth-border);
            box-shadow: var(--vth-shadow-lg);
            padding: 6px;
        }

            .vthExport .sdt-reporte .dropdown-menu > li > a {
                border-radius: 8px;
                padding: 8px 12px;
            }

.vthNum {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.vthPedidos {
    display: grid;
    gap: 8px;
}

.vthPedidos__head,
.vthPedido {
    display: grid;
    grid-template-columns: 110px 140px minmax(0, 1fr) 90px 150px 20px;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.vthPedidos__head {
    color: var(--vth-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding-bottom: 4px;
}

.vthPedido {
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
    background: #fff;
    border: 1px solid var(--vth-border);
    border-radius: 14px;
    color: var(--vth-ink);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

a.vthPedido:hover,
a.vthPedido:focus {
    border-color: var(--vth-primary);
    box-shadow: var(--vth-shadow);
    color: var(--vth-ink);
    text-decoration: none;
}

.vthPedido small {
    display: block;
    color: var(--vth-muted);
    font-size: 12px;
}

.vthPedido__num {
    font-weight: 700;
    color: var(--vth-primary);
}

.vthPedido__fecha {
    font-weight: 500;
}

.vthPedido__entrega {
    min-width: 0;
    font-size: 14px;
}

.vthPedido__obs {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic;
}

.vthPedido__items small {
    display: inline;
}

.vthPedido__importe {
    font-weight: 700;
    color: var(--vth-navy);
    font-size: 16px;
}

.vthPedido__arrow {
    color: #94A3B8;
    font-size: 13px;
}

a.vthPedido:hover .vthPedido__arrow {
    color: var(--vth-primary);
}

/* Detalle de pedido: renglón sin acciones */
.vthItem--lectura {
    grid-template-columns: 80px minmax(0, 1fr) auto 140px;
}

.vthCantidad {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--vth-bg);
    font-weight: 600;
    color: var(--vth-navy);
    white-space: nowrap;
}

@media (max-width: 991px) {
    .vthCuenta__layout {
        grid-template-columns: 1fr;
    }

    .vthPedidos__head {
        display: none;
    }

    .vthPedido {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "num fecha importe"
            "entrega entrega items";
        gap: 6px 12px;
        padding: 14px 16px;
    }

    .vthPedido__num {
        grid-area: num;
    }

    .vthPedido__fecha {
        grid-area: fecha;
    }

        .vthPedido__fecha small {
            display: inline;
        }

    .vthPedido__importe {
        grid-area: importe;
    }

    .vthPedido__entrega {
        grid-area: entrega;
    }

    .vthPedido__items {
        grid-area: items;
        align-self: end;
        color: var(--vth-muted);
        font-size: 13px;
    }

    .vthPedido .vthPedido__arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .vthCard2 {
        padding: 20px;
    }

    .vthDatos > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .vthFechas {
        width: 100%;
    }

        .vthFechas .vthField {
            flex: 1;
            width: auto;
            min-width: 0;
        }

    .vthExport {
        margin-left: 0;
    }

    .vthForm__acciones .vthBtn {
        flex: 1;
    }

    .vthItem--lectura {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "img info"
            "cant subtotal";
    }
}
