/* =====================================================================
   REMODELACIÓN 2026 (22-11-2026) — capa encima de styles.css
   ---------------------------------------------------------------------
   Se carga DESPUÉS de styles.css y solo cambia la cara de la portada:
   la cabecera nueva (.vx-hero), las filas de productos y las tarjetas.
   No toca carrito, checkout ni el panel del admin. Para volver al
   diseño anterior basta con quitar el <link> de index.html.
   ===================================================================== */

:root {
    --vx-verde-vivo: #1FC46F;        /* el verde de marca, más claro para leerse sobre negro */
    --vx-hero-gris: #B4B9C1;
    --vx-radio-lg: 18px;
    --vx-titular: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Lo que la portada nueva reemplaza ─────────────────────────────── */
/* Un banner que solo es el logo repite la cabecera (inicio.js lo marca) */
body.vx-banner-solo-logo #slides-carousel,
body.vx-banner-solo-logo #portada-toggle,
body.vx-banner-solo-logo #portada-galeria { display: none !important; }
/* La franja de confianza de la portada ya dice envíos, pago y garantía */
body.vx-modo-inicio .vx-envios-banda,
body.vx-modo-inicio .vx-beneficios { display: none !important; }

/* =====================================================================
   PORTADA
   ===================================================================== */
.vx-hero { display: none; }
body.vx-modo-inicio .vx-hero { display: grid; }
body.vx-buscando .vx-hero,
body.vx-vista-marca .vx-hero { display: none !important; }

.vx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
        "texto vitrina"
        "confianza confianza";
    gap: 30px 40px;
    margin: 16px 0 8px;
    padding: 46px 46px 0;
    background: var(--vx-tinta);
    color: #fff;
    border-radius: var(--vx-radio-lg);
}
/* Un brillo verde muy bajito detrás de la vitrina: da profundidad sin ruido */
.vx-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    right: -12%;
    top: -30%;
    width: 70%;
    height: 140%;
    background: radial-gradient(closest-side, rgba(31, 196, 111, .16), rgba(31, 196, 111, 0) 72%);
    pointer-events: none;
}
/* Rejilla fina, como la malla de un parlante */
.vx-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
    mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
    pointer-events: none;
}

.vx-hero-texto { grid-area: texto; align-self: center; min-width: 0; padding-bottom: 6px; }

.vx-hero-ceja {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--vx-hero-gris);
}
.vx-hero-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vx-verde-vivo);
    box-shadow: 0 0 0 0 rgba(31, 196, 111, .55);
    animation: vx-latido 2.4s ease-out infinite;
}
@keyframes vx-latido {
    0%   { box-shadow: 0 0 0 0 rgba(31, 196, 111, .55); }
    70%  { box-shadow: 0 0 0 9px rgba(31, 196, 111, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 196, 111, 0); }
}

.vx-hero h1 {
    margin: 0;
    font-family: var(--vx-titular);
    font-size: clamp(2.3rem, 4.4vw, 3.7rem);
    font-weight: 800;
    font-variation-settings: 'wdth' 70;
    font-stretch: 70%;
    line-height: .94;
    letter-spacing: -.005em;
    text-transform: uppercase;
    color: #fff;
    text-wrap: balance;
}
.vx-hero h1 span { display: block; color: var(--vx-verde-vivo); }

.vx-hero-sub {
    max-width: 46ch;
    margin: 18px 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--vx-hero-gris);
    text-wrap: pretty;
}

.vx-hero-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.vx-hero-cta,
.vx-hero-wsp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.vx-hero-cta { background: #fff; color: var(--vx-tinta); border: 1px solid #fff; }
.vx-hero-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.vx-hero-cta:hover svg { transform: translateX(3px); }
.vx-hero-cta-2 { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.vx-hero-cta-2:hover { border-color: #fff; }
.vx-hero-wsp { background: transparent; color: var(--vx-verde-vivo); border: none; padding: 0 8px; }
.vx-hero-wsp:hover { color: #fff; }
.vx-hero-cta:active,
.vx-hero-wsp:active { transform: scale(.97); }
.vx-hero-cta:focus-visible,
.vx-hero-wsp:focus-visible { outline: 2px solid var(--vx-verde-vivo); outline-offset: 3px; }

/* ── Vitrina: tres productos reales ── */
.vx-hero-vitrina {
    grid-area: vitrina;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: 380px;
    min-width: 0;
}
.vx-hero-vitrina[hidden] { display: none; }
.vx-hero-vitrina:empty::before {
    /* mientras llega el catálogo: un bloque quieto del mismo tamaño, sin salto */
    content: '';
    grid-row: 1 / 3;
    grid-column: 1 / 3;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}
.vx-vitrina-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #1B1C20;
    text-decoration: none;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.vx-vitrina-1 { grid-row: 1 / 3; }
.vx-vitrina-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.vx-vitrina-item:hover img { transform: scale(1.045); }
.vx-vitrina-item::after {
    content: '';
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(to top, rgba(11, 11, 12, .72), rgba(11, 11, 12, 0));
    pointer-events: none;
}
.vx-vitrina-chip {
    position: absolute;
    z-index: 1;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.vx-vitrina-nombre {
    font-size: .74rem;
    line-height: 1.3;
    color: #E2E4E8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}
.vx-vitrina-precio { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.vx-vitrina-1 .vx-vitrina-precio { font-size: 1.3rem; }
.vx-vitrina-precio em {
    font-style: normal;
    font-size: .72rem;
    font-weight: 700;
    color: var(--vx-tinta);
    background: var(--vx-verde-vivo);
    border-radius: 6px;
    padding: 2px 6px;
    margin-left: 4px;
    vertical-align: 2px;
}

/* ── Franja de confianza ── */
.vx-hero-confianza {
    grid-area: confianza;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 6px -46px 0;
    padding: 20px 46px 22px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .025);
}
.vx-hero-confianza li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vx-hero-confianza svg {
    flex: none;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--vx-verde-vivo);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vx-hero-confianza strong { display: block; font-size: .86rem; font-weight: 700; color: #fff; }
.vx-hero-confianza span { display: block; font-size: .76rem; line-height: 1.35; color: #8E949C; }

@media (max-width: 1000px) {
    .vx-hero { padding: 36px 32px 0; gap: 26px 28px; }
    .vx-hero-vitrina { height: 330px; }
    .vx-hero-confianza { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px -32px 0; padding: 18px 32px 20px; }
}

@media (max-width: 760px) {
    .vx-hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "texto" "vitrina" "confianza";
        gap: 22px;
        margin: 0;
        padding: 28px 16px 0;
        border-radius: 0;
    }
    .vx-hero::after { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 80%); mask-image: linear-gradient(180deg, transparent 30%, #000 80%); }
    .vx-hero-ceja { margin-bottom: 14px; font-size: .66rem; letter-spacing: .12em; }
    .vx-hero h1 { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
    .vx-hero-sub { margin-top: 14px; font-size: .92rem; }
    .vx-hero-acciones { margin-top: 20px; gap: 8px; }
    .vx-hero-cta { flex: 1 1 0; height: 46px; padding: 0 14px; font-size: .88rem; }
    .vx-hero-wsp { flex: 1 1 100%; height: 44px; border: 1px solid rgba(31, 196, 111, .35); border-radius: 999px; }
    .vx-hero-vitrina { height: 260px; gap: 8px; }
    .vx-vitrina-item { border-radius: 12px; }
    .vx-vitrina-chip { left: 8px; right: 8px; bottom: 8px; }
    .vx-vitrina-nombre { font-size: .68rem; }
    .vx-vitrina-precio { font-size: .92rem; }
    .vx-vitrina-1 .vx-vitrina-precio { font-size: 1.1rem; }
    .vx-hero-confianza { gap: 14px 12px; margin: 0 -16px; padding: 16px; }
    .vx-hero-confianza li { align-items: flex-start; gap: 9px; }
    .vx-hero-confianza svg { width: 22px; height: 22px; margin-top: 1px; }
    .vx-hero-confianza strong { font-size: .8rem; }
    .vx-hero-confianza span { font-size: .7rem; }
}

/* =====================================================================
   FILAS DE PRODUCTOS Y TARJETAS
   ===================================================================== */
.vx-ini-sec {
    border: none;
    border-radius: var(--vx-radio-lg);
    box-shadow: 0 1px 2px rgba(11, 11, 12, .05);
    padding: 22px 0 12px;
}
.vx-ini-cab { padding: 0 20px 12px; }
.vx-ini-cab h2 {
    font-family: var(--vx-titular);
    font-size: 1.22rem;
    font-weight: 800;
    font-variation-settings: 'wdth' 78;
    font-stretch: 78%;
    letter-spacing: .005em;
    text-transform: uppercase;
}
.vx-ini-vertodo {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--vx-papel);
    color: var(--vx-texto);
    font-size: .8rem;
    transition: background-color .16s ease, color .16s ease;
}
.vx-ini-vertodo:hover { background: var(--vx-tinta); color: #fff; text-decoration: none; }

.vx-ini-prod { gap: 4px; padding: 8px 10px 12px; border-radius: 14px; }
.vx-ini-prod:hover { background: transparent; }
.vx-ini-foto {
    margin-bottom: 10px;
    border-radius: 12px;
    background: #F4F4F2;
}
.vx-ini-foto img { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.vx-ini-prod:hover .vx-ini-foto img { transform: scale(1.04); }
.vx-ini-prod:hover .vx-ini-nombre { color: var(--vx-tinta); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--vx-linea); }
.vx-ini-precio { font-weight: 800; font-size: 1.24rem; }
.vx-ini-precio em {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--vx-verde-luz);
    font-size: .72rem;
    vertical-align: 2px;
}
.vx-ini-mayor {
    align-self: flex-start;
    margin-top: 2px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--vx-verde-luz);
    font-size: .72rem;
}
.vx-ini-envio { font-size: .72rem; color: var(--vx-gris); font-weight: 500; margin-top: 2px; }

.vx-ini-flecha {
    background: var(--vx-tinta);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(11, 11, 12, .5);
    transition: transform .16s ease, background-color .16s ease;
}
.vx-ini-flecha:hover { color: #fff; background: #000; transform: scale(1.06); }

/* ── Tarjetas destacadas bajo la portada ── */
.vx-dest {
    border-radius: var(--vx-radio-lg);
    box-shadow: 0 1px 2px rgba(11, 11, 12, .05);
    transition: box-shadow .2s ease, transform .2s ease;
}
.vx-dest:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(11, 11, 12, .35); }
.vx-dest-tit {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--vx-gris);
}
.vx-dest-foto { margin: 0 0 10px; border-radius: 12px; background: #F4F4F2; overflow: hidden; }
.vx-dest-precio { font-weight: 800; }
.vx-dest-verde { font-size: .74rem; }
.vx-dest-btn { border-radius: 999px; background: var(--vx-tinta); color: #fff; }

/* ── Círculos de categorías (celular) ── */
.vx-ini-circulo { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--vx-linea); background: #F4F4F2; }
.vx-ini-acceso:active .vx-ini-circulo { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--vx-tinta); }

/* ── Botón "Ver todos los productos" ── */
.vx-ini-todo-btn {
    height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--vx-tinta);
    color: #fff;
    transition: transform .16s ease, background-color .16s ease;
}
.vx-ini-todo-btn:hover { background: #000; }
.vx-ini-todo-btn:active { transform: scale(.97); }

@media (max-width: 699px) {
    .vx-ini-sec { border-radius: 0; box-shadow: none; padding-top: 18px; }
    .vx-ini-cab { padding: 0 14px 10px; }
    .vx-ini-cab h2 { font-size: 1.08rem; }
    .vx-ini-precio { font-size: 1.12rem; }
    .vx-dest { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .vx-hero-punto { animation: none; }
    .vx-vitrina-item img,
    .vx-ini-foto img,
    .vx-dest,
    .vx-hero-cta svg { transition: none; }
    .vx-vitrina-item:hover img,
    .vx-ini-prod:hover .vx-ini-foto img { transform: none; }
}
