﻿/* Catalog and filters share the storefront's business colors. */
.listado-page {
    --listado-accent: var(--main-bg-color, #333);
    --listado-on-accent: var(--main-letra, #fff);
    --listado-border: #e3e6eb;
    --listado-muted: #68717e;
    padding-bottom: 40px;
    color: #262b33;
}
.listado-page :is(a, button, input, select):focus-visible { outline: 3px solid var(--listado-accent); outline-offset: 3px; }
.listado-page .page-header { margin-bottom: 28px; }
.listado-page .page-header__breadcrumb { padding: 18px 0 12px; }
.listado-page .breadcrumb { gap: 4px; margin-bottom: 0; font-size: 12px; }
.listado-page .listado-heading { margin: 0; padding: 26px 30px; border: 1px solid var(--listado-border); border-radius: 18px; background: #fff; box-shadow: 0 3px 10px rgba(25, 30, 40, .025); }
.listado-heading__eyebrow { display: block; margin-bottom: 6px; color: var(--listado-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.listado-heading__row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: nowrap; gap: 12px; }
.listado-heading__row h1 { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.listado-heading__row .listado-top__button { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
@media (max-width: 575px) {
    .listado-heading__row { gap: 8px; }
    .listado-heading__row .listado-top__button { min-height: 36px; padding: 7px 9px; font-size: 11px; gap: 5px; }
}
.listado-page .listado-heading h1 { margin: 0; color: #252a32; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
.listado-heading__description { max-width: 100ch; margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf0f3; color: var(--listado-muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.listado-heading__description p { margin: 0 0 14px; }
.listado-heading__description > :first-child { margin-top: 0; }
.listado-heading__description strong, .listado-heading__description b { color: #3d4651; font-weight: 600; }
.listado-heading__description :is(ul, ol) { padding-left: 22px; margin-bottom: 14px; }
.listado-heading__description img { max-width: 100%; height: auto; }
.listado-heading__description > :last-child { margin-bottom: 0; }
.listado-page .shop-layout__content { min-width: 0; }
.listado-page .block-sidebar__header { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 20px; border: 0; }
.listado-page .block-sidebar__title { padding: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
.listado-page .block-sidebar__body { border: 1px solid var(--listado-border); border-radius: 18px; background: #fff; box-shadow: 0 3px 10px rgba(25, 30, 40, .025); }
.listado-page .block-sidebar__item { margin: 0; }
.listado-page #divFiltrado { padding-top: 20px; }
.listado-page .block-sidebar__close:not(.listado-filters-footer__button) { position: static; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: #f1f3f5; color: #505967; fill: currentColor; }
.listado-page .widget-filters { margin: 0; padding: 0 20px; border: 0; border-radius: 0; }
.listado-page .widget-filters__title { display: none; }
.listado-page .widget-filters__item, .listado-page .widget-filters__item:first-child { margin: 0; padding: 18px 0; border: 0; border-top: 1px solid #edf0f3; }
.listado-page .widget-filters__item:first-child { padding-top: 0; border-top: 0; }
.listado-page .filter + .filter { margin-top: 20px; }
.listado-page .filter__title { display: block; width: 100%; margin: 0 0 9px; padding: 0; color: #303741; font-size: 14px; font-weight: 700; line-height: 1.5; background: none; cursor: default; }
.listado-page button.filter__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 6px 0; border: 0; text-align: start; cursor: pointer; }
.listado-page button.filter__title::after { content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-right: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.listado-page button.filter__title[aria-expanded="true"]::after { transform: rotate(45deg); }
.listado-page button.filter__title[aria-expanded="false"] { margin-bottom: 0; }
.listado-page button.filter__title:hover { color: var(--listado-accent); }
.listado-page .filter__body { margin: 0; }
.listado-page .filter__body[hidden] { display: none; }
.listado-page .filter__container { padding: 0; }
.listado-page .filter-list__list { margin: 0; }
.listado-page :is(.filter-categories, .filter-list__list) { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ced3da transparent; }
.listado-search { position: relative; }
.listado-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #89919d; font-size: 14px; pointer-events: none; }
.listado-page .listado-search input { height: 42px; min-height: 42px; padding: 8px 26px 8px 34px; border: 1px solid var(--listado-border); border-radius: 9px; background: #f8f9fb; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.listado-page .listado-search input:is(:focus, :focus-visible) { border-color: var(--listado-accent); background: #fff; outline: none; outline-offset: 0; box-shadow: 0 0 0 3px rgba(30, 35, 45, .08); box-shadow: 0 0 0 3px color-mix(in srgb, var(--listado-accent) 15%, transparent); }
.listado-page .filter-categories__list { padding: 0; }
.listado-page .filter-categories__item { position: relative; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; }
.listado-page .filter-categories__item::before { display: none; }
.listado-page .filter-categories__item a { display: block; padding: 9px 10px; border-radius: 8px; color: #505967; overflow-wrap: anywhere; }
.listado-page .filter-categories__item--current > a { color: #303741; font-weight: 700; }
.listado-page .filter-categories__item--child a { padding-left: 18px; }
.listado-page .filter-categories__item.active a { background: #f2f4f6; color: #252a32; font-weight: 700; box-shadow: none; }
.listado-page .filter-categories__item a:hover { background: #f5f6f8; color: var(--listado-accent); }
.listado-page .listado-all-categories { margin-bottom: 7px; }
.listado-page .listado-all-categories a { display: flex; align-items: center; justify-content: center; padding: 9px 10px; color: var(--listado-muted); font-size: 12px; text-align: center; }
.listado-page .filter-list__item { align-items: center; gap: 10px; min-height: 38px; margin: 2px 0; padding: 8px; border-radius: 8px; cursor: pointer; }
.listado-page .filter-list__item:hover { background: #f7f8fa; }
.listado-page .filter-list__item:has(input:checked) { background: #f2f4f6; color: #252a32; }
.listado-page .filter-list__input { flex-shrink: 0; margin: 0; }
.listado-page .filter-list__title { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.listado-page .filter-list__item:has(input:checked) .filter-list__title { font-weight: 650; }
.listado-page .input-radio__input:checked ~ .input-radio__circle { background: var(--listado-accent); }
.listado-page .input-radio__input:focus-visible ~ .input-radio__circle { outline: 2px solid var(--listado-accent); outline-offset: 3px; }
.listado-page .filter-price { margin: 20px 10px 4px; }
.listado-page .filter-price__title { display: block; margin-top: 20px; padding: 9px 6px; border-radius: 8px; background: #f5f6f8; color: #505967; font-size: 11px; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.listado-page .filter-price .noUi-connect { background: var(--listado-accent); }
.listado-page .filter-price .noUi-handle { border-color: var(--listado-accent); }
.listado-page .widget-filters__actions { padding: 18px 0 20px; }
.listado-page .widget-filters__actions .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; padding: 10px; border: 1px solid var(--listado-border); border-radius: 10px; background: #fff; color: #505967; font-size: 13px; font-weight: 600; line-height: 1.4; }
.listado-page .widget-filters__actions .btn:hover { background: #f4f5f7; border-color: #cdd2d9; }
.listado-page .listado-top__button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 42px; margin-left: auto; padding: 10px 16px; border: 1px solid var(--listado-border); border-radius: 10px; background: #f8f9fb; color: #3d4651; font-size: 13px; font-weight: 600; line-height: 1.5; }
.listado-page .listado-top__button:hover { border-color: var(--listado-accent); color: var(--listado-accent); }
.listado-page .widget-products { padding: 20px; border-top: 1px solid var(--listado-border); }
.listado-page .widget-products .widget__title { margin-bottom: 18px; font-size: 15px; }
.listado-page .widget-products__item { gap: 12px; padding: 12px 0; margin: 0; }
.listado-page .widget-products__item + .widget-products__item { border-top: 1px solid #edf0f3; }
.listado-page .widget-products__image { flex: 0 0 60px; width: 60px; margin: 0; }
.listado-page .widget-products__info { min-width: 0; }
.listado-page .widget-products__name { font-size: 12px; line-height: 1.5; }
.listado-page .widget-products__prices { margin-top: 6px; font-size: 14px; font-weight: 700; }
.listado-page #divMarcas .block { margin-bottom: 18px; }
.listado-page #divMarcas .block-brands__slider { padding: 14px 10px; border: 1px solid var(--listado-border); border-radius: 16px; background: #fff; }
.listado-page #divMarcas .block-brands__item { height: 72px; padding: 0 6px; }
.listado-page .listado-brand { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 100%; height: 72px; padding: 8px; border: 0; border-radius: 10px; background: #fff; color: #68717e; font-size: 11px; font-weight: 600; cursor: pointer; }
.listado-page .listado-brand:hover { background: #f5f6f8; color: var(--listado-accent); }
.listado-page #divMarcas .listado-brand img { display: block; width: 100%; height: 36px; max-width: 120px; max-height: 36px; object-fit: contain; }
.listado-page #divMarcas .listado-brand img[hidden] { display: none; }
.listado-page .listado-brand span { max-width: 100%; overflow-wrap: anywhere; }
.listado-page #bannerHome, .listado-page .block-banner__body { overflow: hidden; border: 1px solid var(--listado-border); border-radius: 18px; background-color: #fff; }
.listado-page #bannerHome :is(.block-slideshow__body, .block-slideshow__slide) { height: 25vh; }
.listado-page .products-view__options { margin-bottom: 12px; }
.listado-page .view-options { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 72px; padding: 14px 16px; border: 1px solid var(--listado-border); border-radius: 14px; background: #fff; font-size: 13px; }
.listado-page .view-options__layout { margin: 0; }
.listado-page .view-options__search { flex: 1 1 180px; min-width: 160px; max-width: 240px; }
.listado-page .view-options__control { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; width: auto; margin: 0 0 0 auto; }
.listado-page .view-options__control label { flex-shrink: 0; margin: 0; color: var(--listado-muted); font-size: 12px; }
.listado-page #orderFilter { width: 190px; max-width: 100%; height: 42px; padding: 8px 28px 8px 12px; border: 1px solid var(--listado-border); border-radius: 9px; background-color: #f8f9fb; color: #303741; font-size: 13px; }
.listado-page .layout-switcher__list { gap: 4px; padding: 3px; border: 0; border-radius: 10px; background: #f2f4f6; }
.listado-page .layout-switcher__list > .layout-switcher__button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; fill: #8a939e; }
.listado-page .layout-switcher__list > .layout-switcher__button:focus-visible { outline: 2px solid #303741; outline-offset: -3px; }
.listado-page .layout-switcher__list > .layout-switcher__button--active, .listado-page .layout-switcher__list > .layout-switcher__button--active:hover { background: var(--listado-accent); fill: var(--listado-on-accent); box-shadow: 0 2px 5px rgba(20, 25, 35, .1); }
.listado-page .listado-results-summary { margin: 0 0 14px; padding: 0 2px; color: var(--listado-muted); font-size: 12px; line-height: 1.5; }
.listado-page .listado-results-summary strong { color: #303741; font-weight: 650; }
.listado-page .products-list[data-layout="list"] .products-list__item .product-card__info { width: 100%; }
.listado-page .products-view__pagination { margin-top: 28px; }
.listado-page .pagination { flex-wrap: wrap; gap: 6px; }
.listado-page .page-item .page-link { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: 0; padding: 8px; border: 1px solid var(--listado-border); border-radius: 10px; background: #fff; color: #505967; font-size: 13px; }
.listado-page .page-item.active .page-link { border-color: var(--listado-accent); background: var(--listado-accent); color: var(--listado-on-accent); }
.listado-page .block-empty__body { padding: 56px 24px; border: 1px solid var(--listado-border); border-radius: 18px; background: #fff; }
.listado-page .not-found { padding: 0; text-align: center; }
.listado-page .listado-empty-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 24px; background: #f2f4f6; color: var(--listado-accent); font-size: 26px; }
.listado-page .not-found__404 { margin: 0 0 12px; color: #303741; font-size: 24px; line-height: 1.3; }
.listado-page .not-found p { color: var(--listado-muted); font-size: 14px; }
.listado-page .not-found__content { display: flex; justify-content: center; margin: 24px auto 0; }
.listado-page .not-found__content .listado-empty-explore { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: auto; max-width: 100%; height: auto; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 12px; background: var(--listado-accent); color: var(--listado-on-accent); font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: box-shadow .2s; }
.listado-page .not-found__content .listado-empty-explore:hover { box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.listado-page .not-found__content .listado-empty-explore:focus-visible { outline: 2px solid var(--listado-accent); outline-offset: 4px; }
.listado-page .listado-empty-explore > [aria-hidden] { font-size: 20px; line-height: 1; }
.listado-filters-footer { display: none; }
@media (min-width: 992px) {
    /* El catálogo desplaza la página; los filtros conservan su posición y su propio scroll. */
    .listado-page .shop-layout { align-items: flex-start; }
    .listado-page .shop-layout__sidebar { position: sticky; top: 72px; align-self: flex-start; }
    .listado-page #listado-filters { margin-bottom: 0; }
    .listado-page .block-sidebar__body { max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #ced3da transparent; }
    .listado-page .block-sidebar__header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid #edf0f3; background: #fff; }
    .listado-page :is(.filter-categories, .filter-list__list) { max-height: none; overflow: visible; }
    .listado-page .block-sidebar__close { display: none !important; }
}
@media (max-width: 991px) {
    .listado-page .page-header { margin-bottom: 22px; }
    .listado-page #listado-filters { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; padding: 0 !important; transform: none !important; z-index: 1050; }
    .listado-page .block-sidebar__body { width: min(370px, calc(100vw - 24px)); border: 0; border-radius: 0 20px 20px 0; overscroll-behavior: contain; }
    .listado-page .block-sidebar__header { position: sticky; top: 0; z-index: 3; flex-shrink: 0; min-height: 80px; border-bottom: 1px solid var(--listado-border); background: #fff; }
    .listado-page .block-sidebar__item { flex-shrink: 0; }
    .listado-page .block-sidebar--open .block-sidebar__backdrop { background: #202631; opacity: .55; }
    .listado-page .view-options__filters-button { margin: 0; }
    .listado-page .filters-button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-height: 42px; padding: 10px 14px; box-sizing: border-box; border: 0; border-radius: 9px; background: var(--listado-accent); color: var(--listado-on-accent); fill: currentColor; font-size: 13px; font-weight: 650; }
    .listado-page .filters-button__icon { margin: 0; fill: currentColor; }
    .listado-page .filters-button::before { display: none; }
    .listado-page .listado-filters-footer { position: sticky; bottom: 0; z-index: 3; display: block; flex-shrink: 0; margin-top: auto; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--listado-border); background: #fff; }
    .listado-page .listado-filters-footer__button { position: static; display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 46px; margin: 0; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--listado-accent); color: var(--listado-on-accent); font-size: 14px; font-weight: 700; line-height: 1.4; }
}
@media (max-width: 575px) {
    .listado-page .page-header__breadcrumb { padding-top: 12px; }
    .listado-page .listado-heading { padding: 20px 18px; }
    .listado-heading__description { margin-top: 14px; padding-top: 14px; font-size: 14px; line-height: 1.75; }
    .listado-page .view-options { gap: 10px; padding: 12px; }
    .listado-page .view-options__layout { display: none; }
    .listado-page .view-options__search { order: -1; flex: 1 0 100%; min-width: 0; max-width: none; }
    .listado-page .view-options__control { flex: 1; min-width: 0; gap: 0; }
    .listado-page .view-options__control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .listado-page .view-options__control > div { width: 100%; min-width: 0; }
    .listado-page #orderFilter { width: 100%; min-width: 0; font-size: 12px; }
    .listado-page .not-found__404 { font-size: 21px; }
}

/* Inline feedback for result refreshes. */
#divResultado .listado-loading { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: calc(100% - 24px); padding: 16px 22px; border: 1px solid #e3e6eb; border-radius: 14px; background: #fff; color: #505967; box-shadow: 0 4px 20px rgba(25,30,40,.08); font-size: 13px; font-weight: 500; line-height: 1.5; }
#divResultado .listado-loading__spinner { flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid #e3e6eb; border-top-color: var(--main-bg-color, #262626); border-radius: 50%; animation: listado-loading-spin .8s linear infinite; }
@keyframes listado-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #divResultado .listado-loading__spinner { animation: none; } }

/* Acción flotante exclusiva del listado: volver al inicio. */
body:has(.listado-page) .totop { display: none; }
.listado-volver-arriba[hidden] { display: none !important; }
.listado-volver-arriba {
    position: fixed;
    right: 22px;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    background: var(--main-bg-color, #262b33);
    color: var(--main-letra, #fff);
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.listado-volver-arriba:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(0,0,0,.25);
}
.listado-volver-arriba:focus-visible {
    outline: 3px solid var(--main-bg-color, #262b33);
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .listado-volver-arriba {
        right: 18px;
        bottom: calc(94px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .listado-volver-arriba { transition: none; }
}
