.nvcat-pagina {
    /* --- Cambia aquí los colores de toda la página --- */
    --nvcat-primario: #00b2ff;
    --nvcat-primario-hover: #0096d9;
    --nvcat-texto: #1d1d1f;
    --nvcat-gris: #6b7280;
    --nvcat-gris-claro: #9ca3af;
    --nvcat-borde: #e3e5e8;
    --nvcat-fondo: #ffffff;
    --nvcat-aviso-fondo: #fff4d6;
    --nvcat-verde: #16a34a;
    --nvcat-rojo: #e11d48;
    --nvcat-radio: 8px;
    --nvcat-fuente: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    font-family: var(--nvcat-fuente);
    color: var(--nvcat-texto);
    background: var(--nvcat-fondo);
    line-height: 1.4;
    width: 100%;
    overflow-x: clip;
}

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

.nvcat-pagina img {
    max-width: 100%;
    display: block;
}

.nvcat-pagina a {
    color: inherit;
    text-decoration: none;
}

.nvcat-pagina button,
.nvcat-pagina input,
.nvcat-pagina select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================ BANNER ============================ */
.nvcat-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 420;
    min-height: 220px;
    max-height: 440px;
    background: var(--nvcat-banner-color, #ff5733);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.nvcat-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.nvcat-banner-capa {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 75%);
}

.nvcat-banner-texto {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    color: #fff;
}

.nvcat-migas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    opacity: .9;
    margin-bottom: 10px;
}

.nvcat-migas a:hover {
    text-decoration: underline;
}

.nvcat-migas strong {
    font-weight: 600;
}

.nvcat-banner-titulo {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.nvcat-banner-sub {
    margin: 10px 0 0;
    font-size: clamp(14px, 1.4vw, 18px);
    opacity: .95;
}

/* ============================ ESTRUCTURA ============================ */
.nvcat-contenedor {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px 56px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* ============================ FILTROS ============================ */
.nvcat-filtros {
    position: sticky;
    top: 16px;
}

.nvcat-filtros-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nvcat-filtros-titulo {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 700;
}

.nvcat-filtros-x {
    display: none;
}

.nvcat-filtros-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 26px;
}

.nvcat-boton-limpiar,
.nvcat-boton-aplicar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.nvcat-boton-limpiar {
    border: 1.5px solid var(--nvcat-texto);
    background: #fff;
    color: var(--nvcat-texto);
}

.nvcat-boton-limpiar:hover {
    background: var(--nvcat-texto);
    color: #fff;
}

.nvcat-boton-aplicar {
    border: 1.5px solid var(--nvcat-primario);
    background: var(--nvcat-primario);
    color: #fff;
}

.nvcat-boton-aplicar:hover {
    background: var(--nvcat-primario-hover);
    border-color: var(--nvcat-primario-hover);
}

.nvcat-boton-aplicar-movil {
    display: none;
}

.nvcat-grupo {
    border-bottom: 1px solid var(--nvcat-borde);
}

.nvcat-grupo-titulo {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.nvcat-grupo-titulo::-webkit-details-marker {
    display: none;
}

.nvcat-grupo-icono {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nvcat-grupo-icono::before,
.nvcat-grupo-icono::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--nvcat-texto);
    transition: transform .25s;
}

.nvcat-grupo-icono::after {
    transform: rotate(90deg);
}

.nvcat-grupo[open] .nvcat-grupo-icono::after {
    transform: rotate(0deg);
}

.nvcat-opciones,
.nvcat-lista-categorias,
.nvcat-precio {
    padding: 2px 0 16px;
}

.nvcat-lista-categorias {
    list-style: none;
    margin: 0;
}

.nvcat-lista-categorias li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--nvcat-gris);
}

.nvcat-lista-categorias li a:hover,
.nvcat-lista-categorias .nvcat-categoria-activa {
    color: var(--nvcat-primario);
    font-weight: 500;
}

.nvcat-lista-categorias small {
    color: var(--nvcat-gris-claro);
}

.nvcat-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    cursor: pointer;
}

.nvcat-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nvcat-check-caja {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid #c4c8ce;
    border-radius: 4px;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s;
}

.nvcat-check input:checked+.nvcat-check-caja {
    background: var(--nvcat-primario);
    border-color: var(--nvcat-primario);
}

.nvcat-check input:checked+.nvcat-check-caja::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.nvcat-check input:focus-visible+.nvcat-check-caja {
    outline: 2px solid var(--nvcat-primario);
    outline-offset: 2px;
}

.nvcat-check-texto {
    flex: 1;
    color: #374151;
}

.nvcat-check-num {
    color: var(--nvcat-gris-claro);
    font-size: 12px;
}

.nvcat-precio {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.nvcat-precio-campo {
    flex: 1;
    min-width: 0;
}

.nvcat-precio-campo span {
    display: block;
    font-size: 12px;
    color: var(--nvcat-gris);
    margin-bottom: 4px;
}

.nvcat-precio-campo input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--nvcat-borde);
    border-radius: 6px;
    outline: none;
}

.nvcat-precio-campo input:focus {
    border-color: var(--nvcat-primario);
}

.nvcat-precio-guion {
    padding-bottom: 8px;
    color: var(--nvcat-gris);
}

/* ============================ BARRA SUPERIOR ============================ */
.nvcat-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.nvcat-conteo {
    margin: 0;
    font-size: 13px;
    color: var(--nvcat-gris);
}

.nvcat-conteo strong {
    color: var(--nvcat-texto);
    font-weight: 500;
}

.nvcat-barra-derecha {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nvcat-vistas {
    display: flex;
    gap: 8px;
}

.nvcat-vista {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #f1f2f4;
    color: #9aa0a6;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.nvcat-vista:hover {
    color: var(--nvcat-texto);
}

.nvcat-vista-activa {
    background: #d9dbdf;
    color: var(--nvcat-texto);
}

.nvcat-ordenar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.nvcat-ordenar-select {
    height: 40px;
    min-width: 170px;
    padding: 0 36px 0 14px;
    border: 1px solid #c9cdd2;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    -webkit-appearance: none;
    color: #4b5563;
    cursor: pointer;
}

.nvcat-boton-filtrar {
    display: none;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--nvcat-texto);
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    cursor: pointer;
}

.nvcat-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nvcat-primario);
}

.nvcat-aviso {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    margin-bottom: 18px;
    background: var(--nvcat-aviso-fondo);
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
}

.nvcat-aviso:hover {
    text-decoration: underline;
}

.nvcat-aviso-icono {
    width: 18px;
    height: 18px;
    border: 1.5px solid #e5b700;
    color: #e5b700;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================ GRILLA ============================ */
.nvcat-grilla {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.nvcat-grilla[data-columnas="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ============================ TARJETA ============================ */
.nvcat-tarjeta {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--nvcat-borde);
    border-radius: var(--nvcat-radio);
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s, transform .25s;
}

.nvcat-tarjeta:hover {
    border-color: #d0d4d9;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
    transform: translateY(-2px);
}

.nvcat-corazon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.nvcat-corazon svg {
    fill: none;
    stroke: var(--nvcat-texto);
    stroke-width: 1.7;
    transition: fill .2s, stroke .2s, transform .2s;
}

.nvcat-corazon:hover svg {
    transform: scale(1.12);
}

.nvcat-corazon-activo svg {
    fill: var(--nvcat-rojo);
    stroke: var(--nvcat-rojo);
}

.nvcat-etiqueta-desc {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--nvcat-rojo);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.nvcat-tarjeta-foto {
    display: block;
    aspect-ratio: 1 / 1;
    padding: 28px 22px 10px;
    background: #fff;
}

.nvcat-tarjeta-foto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.nvcat-tarjeta:hover .nvcat-tarjeta-foto img {
    transform: scale(1.05);
}

.nvcat-tarjeta-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 6px 12px 12px;
}

.nvcat-marca {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.nvcat-nombre {
    font-size: 14px;
    line-height: 1.45;
    color: #2b2b2b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.45em * 3);
}

.nvcat-nombre:hover {
    color: var(--nvcat-primario);
}

.nvcat-sku {
    margin-top: 4px;
    font-size: 10px;
    color: var(--nvcat-gris-claro);
    letter-spacing: .02em;
}

.nvcat-precios {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 12px;
}

.nvcat-precio-final {
    font-size: 17px;
    font-weight: 700;
}

.nvcat-precio-antes {
    font-size: 13px;
    color: var(--nvcat-gris-claro);
    text-decoration: line-through;
}

.nvcat-stock {
    margin: 8px 0 12px;
    font-size: 12px;
    font-weight: 500;
}

.nvcat-stock-si {
    color: var(--nvcat-verde);
}

.nvcat-stock-no {
    color: #374151;
}

.nvcat-boton-cotizar {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border-radius: 999px;
    background: var(--nvcat-primario);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s;
}

.nvcat-boton-cotizar:hover {
    background: var(--nvcat-primario-hover);
}

/* ============================ VACÍO / PAGINACIÓN ============================ */
.nvcat-vacio {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed var(--nvcat-borde);
    border-radius: var(--nvcat-radio);
    color: var(--nvcat-gris);
}

.nvcat-vacio .nvcat-boton-aplicar {
    margin-top: 12px;
}

.nvcat-paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
}

.nvcat-pag {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--nvcat-borde);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: border-color .2s, color .2s;
}

.nvcat-pag:hover {
    border-color: var(--nvcat-primario);
    color: var(--nvcat-primario);
}

.nvcat-pag-activa {
    background: var(--nvcat-primario);
    border-color: var(--nvcat-primario);
    color: #fff;
}

.nvcat-pag-puntos {
    color: var(--nvcat-gris-claro);
    padding: 0 4px;
}

.categorias__ventana {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.categorias__ventana::-webkit-scrollbar {
    display: none;
}

.categorias__pista {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.categoria {
    flex: 0 0 calc((100% - 5 * 16px) / 6);
    scroll-snap-align: start;
}

/* 6 en PC */

.categoria__imagen {
    aspect-ratio: 1;
    background: var(--color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.categoria__img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* nunca se corta */
.categoria__nombre {
    text-align: center;
    font-size: 15px;
    margin-top: 8px;
}

@media (max-width: 960px) {
    .categoria {
        flex-basis: calc((100% - 3 * 16px) / 4);
    }
}

/* 4 en tablet */
@media (max-width: 640px) {
    .categoria {
        flex-basis: calc((100% - 2 * 12px) / 3.3);
    }
}

/* 3 y un poco en celular */
.nvcat-fondo-oscuro {
    display: none;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Laptop */
@media (max-width: 1200px) {
    .nvcat-contenedor {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }

    .nvcat-grilla,
    .nvcat-grilla[data-columnas="3"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nvcat-vistas {
        display: none;
    }
}

/* Tablet: filtros pasan a panel deslizable */
@media (max-width: 960px) {
    .nvcat-contenedor {
        grid-template-columns: 1fr;
        padding: 22px 18px 44px;
    }

    .nvcat-boton-filtrar {
        display: inline-flex;
    }

    .nvcat-filtros {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1001;
        width: min(340px, 88vw);
        padding: 20px 20px 90px;
        background: #fff;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .3s ease;
        box-shadow: 6px 0 30px rgba(0, 0, 0, .15);
    }

    .nvcat-pagina.nvcat-filtros-abiertos .nvcat-filtros {
        transform: translateX(0);
    }

    .nvcat-fondo-oscuro {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }

    .nvcat-pagina.nvcat-filtros-abiertos .nvcat-fondo-oscuro {
        opacity: 1;
        visibility: visible;
    }

    .nvcat-filtros-titulo {
        margin-bottom: 18px;
    }

    .nvcat-filtros-x {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        margin-top: -18px;
        border: 0;
        border-radius: 50%;
        background: #f1f2f4;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .nvcat-boton-aplicar-movil {
        display: flex;
        position: fixed;
        left: 20px;
        bottom: 20px;
        width: calc(min(340px, 88vw) - 40px);
        height: 46px;
        font-size: 15px;
        box-shadow: 0 6px 18px rgba(0, 178, 255, .35);
    }
}

/* Celular */
@media (max-width: 640px) {
    .nvcat-banner {
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }

    .nvcat-banner-texto {
        padding: 0 16px;
    }

    .nvcat-banner-capa {
        background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%);
    }

    .nvcat-banner {
        align-items: flex-end;
        padding-bottom: 18px;
    }

    .nvcat-migas {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .nvcat-contenedor {
        padding: 16px 12px 36px;
    }

    .nvcat-barra {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nvcat-barra-derecha {
        justify-content: space-between;
        gap: 10px;
    }

    .nvcat-ordenar span {
        display: none;
    }

    .nvcat-ordenar {
        flex: 1;
    }

    .nvcat-ordenar-select {
        width: 100%;
        min-width: 0;
    }

    .nvcat-aviso {
        display: flex;
        font-size: 12px;
    }

    .nvcat-grilla,
    .nvcat-grilla[data-columnas="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nvcat-tarjeta-foto {
        padding: 30px 10px 6px;
    }

    .nvcat-corazon {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
    }

    .nvcat-corazon svg {
        width: 20px;
        height: 20px;
    }

    .nvcat-etiqueta-desc {
        top: 8px;
        left: 8px;
        font-size: 11px;
        padding: 2px 6px;
    }

    .nvcat-tarjeta-info {
        padding: 4px 10px 10px;
    }

    .nvcat-marca {
        font-size: 11px;
    }

    .nvcat-nombre {
        font-size: 13px;
    }

    .nvcat-precio-final {
        font-size: 15px;
    }

    .nvcat-precio-antes {
        font-size: 12px;
    }

    .nvcat-stock {
        font-size: 11px;
        margin: 6px 0 10px;
    }

    .nvcat-boton-cotizar {
        height: 36px;
        font-size: 13px;
        gap: 6px;
    }
}

/* Celulares muy pequeños */
@media (max-width: 360px) {
    .nvcat-boton-cotizar svg {
        display: none;
    }
}

/* Bloquea el scroll del fondo cuando el panel de filtros está abierto */
body.nvcat-sin-scroll {
    overflow: hidden;
}