/*! CR Filters (cr_filters) · CrDev · CSS móvil: hoja de pantalla completa con pestañas laterales.
    Todo va bajo html.crf-m (clase que activa el JS / un script inline según el ancho). */
html.crf-lock,html.crf-lock body{overflow:hidden!important}

/* ---------- Barra sobre el listado (botón Filtros + chips) ---------- */
html.crf-m .crf-mbar{display:flex;align-items:center;gap:.5rem;position:sticky;top:var(--crf-sticky-top,0);z-index:20;background:#fff;margin:0 -15px .75rem;padding:.55rem 15px;border-bottom:1px solid #e8eaee;overflow:hidden;font-family:inherit}
html.crf-m .crf-mbar-btn{flex:none;display:inline-flex;align-items:center;gap:.45rem;height:38px;padding:0 .95rem;border:1.5px solid var(--crf-accent,#2563eb);border-radius:999px;background:#fff;color:var(--crf-accent,#2563eb);font-weight:700;font-size:.9rem}
html.crf-m .crf-mbar-btn:active{background:color-mix(in srgb,var(--crf-accent,#2563eb) 10%,#fff)}
html.crf-m .crf-badge{min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--crf-accent2,#f97316);color:#fff;font-size:.72rem;line-height:20px;text-align:center}
html.crf-m .crf-mbar-chips{flex:1;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 15px 2px 0;margin-right:-15px}
html.crf-m .crf-mbar-chips::-webkit-scrollbar{display:none}
html.crf-m .crf-mbar-chips li{flex:none}
html.crf-m .crf-activebar{display:none}
/* El tema trae su propio botón "Filtrar": usamos la barra de CR Filters */
html.crf-m #search_filter_toggler,html.crf-m .js-search-toggler{display:none!important}

/* ---------- La raíz del módulo deja de ser una "tarjeta" ---------- */
html.crf-m .crf#search_filters_wrapper{padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;min-height:0!important;width:auto!important;max-width:none!important;position:static}

/* ---------- Hoja a pantalla completa ---------- */
html.crf-m .crf-backdrop{display:block;position:fixed;inset:0;z-index:2147483000;background:rgba(17,24,39,.5);opacity:0;pointer-events:none;transition:opacity .25s}
html.crf-m .crf.is-open .crf-backdrop{opacity:1;pointer-events:auto}
html.crf-m .crf-panel#search_filters{position:fixed;left:0;top:0;right:0;bottom:0;width:100%!important;height:100vh;height:100dvh;max-width:none!important;z-index:2147483001;display:flex;flex-direction:column;background:#fff;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden;
  transform:translateY(100%);visibility:hidden;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s .28s;overscroll-behavior:contain;font-size:16px;color:#1f2937}
html.crf-m .crf.is-open .crf-panel#search_filters{transform:none;visibility:visible;transition:transform .28s cubic-bezier(.2,.8,.2,1)}

/* Cabecera: título + X */
html.crf-m .crf-head{flex:none;display:flex;align-items:center;gap:.5rem;height:58px;padding:0 .35rem 0 1.1rem;margin:0;border:0;border-bottom:1px solid #e8eaee;background:#fff}
html.crf-m .crf-head-title{flex:1;margin:0;font-size:1.2rem;font-weight:700;text-align:left}
html.crf-m .crf-head-clear{display:none}
html.crf-m .crf-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:0;background:none;border-radius:50%;color:#1f2937}
html.crf-m .crf-iconbtn:active{background:#f3f4f6}
html.crf-m .crf-head-close{display:inline-flex}

/* Dos columnas: pestañas a la izquierda, contenido a la derecha */
html.crf-m .crf-split{flex:1;min-height:0;display:flex}
html.crf-m .crf-tabs{flex:none;width:32%;max-width:170px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#f5f5f5;position:relative}
html.crf-m .crf-tab{display:flex;align-items:center;justify-content:space-between;gap:.35rem;width:100%;text-align:left;padding:1.05rem .8rem 1.05rem .9rem;min-height:58px;border:0;border-bottom:1px solid #e6e6e6;border-left:4px solid transparent;background:transparent;color:#374151;font-size:.92rem;line-height:1.25}
html.crf-m .crf-tab span{min-width:0;overflow-wrap:break-word;hyphens:auto}
html.crf-m .crf-tab.is-active{background:#fff;border-left-color:var(--crf-accent,#2563eb);color:var(--crf-accent,#2563eb);font-weight:600}
html.crf-m .crf-tab-dot{display:none;flex:none;width:8px;height:8px;border-radius:50%;background:var(--crf-accent2,#f97316)}
html.crf-m .crf-tab.has-selection .crf-tab-dot{display:block}
html.crf-m .crf-scroll{flex:1;min-width:0;overflow-y:auto;-webkit-overflow-scrolling:touch;position:relative;padding:0 1rem 1.5rem;background:#fff;overscroll-behavior:contain}

/* Secciones (una debajo de otra; la pestaña desliza hasta ellas) */
html.crf-m .crf-group{display:block;border:0;border-bottom:1px solid #eef0f3;padding:1.1rem 0 .6rem;flex:none}
html.crf-m .crf-group[data-mobile="0"]{display:none}
html.crf-m .crf-group:last-child{border-bottom:0}
html.crf-m .crf-title{display:none!important}
html.crf-m .crf-group-head{display:none!important}
html.crf-m .facet-title{display:block!important;margin:0 0 .5rem!important;font-size:1.25rem!important;font-weight:700!important;color:#111827!important;text-transform:none!important;letter-spacing:0!important}
html.crf-m .crf-group-body,html.crf-m .crf-group.is-open>.crf-group-body{display:block!important;padding:0}
html.crf-m .crf-options{padding:0!important;margin:0!important;display:block}
html.crf-m .crf-options.collapse{display:block}
html.crf-m .crf-item.is-extra{display:block}
html.crf-m .crf-more{display:none}

/* Filas (casillas/radios) */
html.crf-m .crf-row{display:flex;align-items:center;gap:.7rem;padding:.9rem 0;min-height:54px;margin:0;border-bottom:1px solid #eef0f3;font-size:1rem;cursor:pointer}
html.crf-m .crf-item:last-child .crf-row{border-bottom:0}
html.crf-m .crf-row .custom-checkbox,html.crf-m .crf-row .custom-radio{display:none!important}
html.crf-m .crf-row .crf-check{display:block;order:3;flex:none;width:24px;height:24px;border:2px solid #c3c8d2;border-radius:7px;background:#fff;position:relative}
html.crf-m .crf-row .crf-check--radio{border-radius:50%}
html.crf-m .crf-row .crf-opt-label{order:1;flex:1;min-width:0;padding:0;color:#111827!important;text-decoration:none!important;white-space:normal}
html.crf-m .crf-row .crf-count{order:2;margin:0;color:#8a8f98;font-size:.85rem}
html.crf-m .crf-row.is-selected .crf-check{background:var(--crf-accent,#2563eb);border-color:var(--crf-accent,#2563eb)}
html.crf-m .crf-row.is-selected .crf-check::after{content:"";position:absolute;left:7px;top:2px;width:7px;height:13px;border:solid var(--crf-accent-ink,#fff);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
html.crf-m .crf-row.is-selected .crf-check--radio::after{left:5px;top:5px;width:10px;height:10px;border:0;border-radius:50%;background:var(--crf-accent-ink,#fff);transform:none}
html.crf-m .crf-row.is-selected .crf-opt-label{font-weight:600}
html.crf-m .crf-row.is-disabled{opacity:.42;pointer-events:none}

/* Buscador, chips tipo pastilla, colores */
html.crf-m .crf-search{margin:0 0 .5rem}
html.crf-m .crf-search input{height:44px;font-size:1rem;border-radius:12px;background:#f5f5f8;border:1px solid transparent;width:100%;padding:0 .8rem}
html.crf-m .crf-group--pills .crf-options,html.crf-m .crf-group--swatch .crf-options{display:flex;flex-wrap:wrap;gap:.55rem;padding-top:.4rem!important}
html.crf-m .crf-group--pills .crf-opt{border:1.5px solid #d8dce3;border-radius:999px;padding:.55rem 1rem;min-height:0;margin:0;font-size:.95rem}
html.crf-m .crf-group--pills .crf-opt.is-selected{background:var(--crf-accent,#2563eb);border-color:var(--crf-accent,#2563eb);color:var(--crf-accent-ink,#fff)}
html.crf-m .crf-swatch{width:42px;height:42px}
html.crf-m .crf-group--swatch .crf-opt{flex-direction:column;width:70px;gap:.35rem;padding:4px 2px;text-align:center}
html.crf-m .crf-group--swatch .crf-opt-label{position:static;width:auto;height:auto;clip:auto;font-size:.78rem;overflow:visible;white-space:normal}
html.crf-m .crf-group--swatch .crf-count{display:none}
html.crf-m .crf-group--swatch .crf-opt.is-selected .crf-swatch{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--crf-accent,#2563eb)}
/* Rango de precio */
html.crf-m .crf-opt{padding:.8rem 0;margin:0;min-height:50px;border-radius:0}
html.crf-m .crf-presets .crf-opt{border-bottom:1px solid #eef0f3}
html.crf-m .crf-range-inputs input,html.crf-m .crf-range-go{height:46px;font-size:1rem;border-radius:12px}
html.crf-m .crf-range-inputs{flex-wrap:wrap}
html.crf-m .crf-slider{margin-top:1.4rem}
html.crf-m .crf-check{width:22px;height:22px}

/* Pie: Limpiar filtros + Ver resultados */
html.crf-m .crf-foot{flex:none;display:flex;align-items:center;gap:.9rem;padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom));border-top:1px solid #e8eaee;background:#fff}
html.crf-m .crf-foot-clear{display:inline-block;flex:none;padding:.6rem .3rem;color:var(--crf-accent,#2563eb);font-weight:700;font-size:1rem;text-decoration:none}
html.crf-m .crf-foot-clear.is-hidden{visibility:hidden}
html.crf-m .crf-apply{flex:1;height:50px;border:0;border-radius:12px;background:var(--crf-accent,#2563eb);color:var(--crf-accent-ink,#fff);font-size:1rem;font-weight:700}
html.crf-m .crf-apply[disabled]{opacity:.45}
html.crf-m .crf-apply.is-loading{opacity:.75}
html.crf-m .crf-presets{padding:0!important;margin:0 0 .4rem!important}
html.crf-m .crf-range-inputs label{flex:1 1 38%}
html.crf-m .crf-range-go{flex:1 1 100%;margin-top:.3rem}
