/* Mesial · búsqueda global (js/search.js) y explorador (js/views/explore.js). Lo mantiene el frente de búsqueda.
   Reutiliza .btn, .chip, .input, .select y .tag de styles.css (la tarjeta vive en v6-portada.css); aquí solo va lo propio.
   Colores y medidas desde tokens.css. Sin degradados, sin desenfoques, sin mayúsculas sostenidas. */

/* ---------------------------------------------------------------------------
   Sello de organizador verificado
   --------------------------------------------------------------------------- */
.sx-verified { width: 15px; height: 15px; vertical-align: -2px; margin-left: 4px; stroke-width: 2; }
.sx-verified path:first-child { fill: var(--noche); stroke: var(--noche); }
.sx-verified path:last-child { stroke: var(--blanco); }

/* ---------------------------------------------------------------------------
   Explorador
   --------------------------------------------------------------------------- */
.ex { background: var(--crema); min-height: 70vh; padding-bottom: var(--s-20); }
.ex-hero { padding: var(--s-12) 0 var(--s-5); }
.ex-title { font-size: clamp(2rem, 1.55rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; }
.ex-lead { margin: var(--s-2) 0 var(--s-6); color: var(--gris); font-size: 1.0625rem; }

/* Barra de búsqueda */
.ex-search { position: relative; display: flex; align-items: center; max-width: 880px; height: 64px; padding: 0 var(--s-3) 0 var(--s-5); background: var(--blanco); border: 1px solid var(--linea-fuerte); border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.2s; }
.ex-search:hover { border-color: var(--noche-100); box-shadow: var(--shadow-hover); }
.ex-search:focus-within { border-color: var(--coral-700); box-shadow: var(--focus-ring), var(--shadow-hover); }
.ex-search-icon { width: 22px; height: 22px; color: var(--noche); stroke-width: 1.8; }
.ex-search-input { flex: 1; min-width: 0; height: 100%; padding: 0 var(--s-3); border: 0; background: transparent; font: 500 1.125rem/1 var(--font-sans); color: var(--noche); outline: none; }
.ex-search-input::placeholder { color: var(--tenue); font-weight: 400; }
.ex-search-input::-webkit-search-cancel-button { display: none; }
.ex-search-clear { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--crema); color: var(--noche); cursor: pointer; }
.ex-search-clear:hover { background: var(--crema-200); }
.ex-search-clear[hidden] { display: none; }
.ex-kbd, .sx kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid var(--linea-fuerte); border-bottom-width: 2px; border-radius: 7px; background: var(--blanco); color: var(--gris); font: 600 0.8rem/1 var(--font-sans); }
.ex-kbd { margin-left: var(--s-2); }

/* Sugerencias bajo la barra */
.ex-sug { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: 420px; overflow: auto; padding: 6px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 16px; box-shadow: var(--shadow-pop); }
.ex-sug-head { padding: 10px 12px 4px; color: var(--gris); font-size: 0.78rem; font-weight: 600; }
.ex-sug-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 10px; cursor: pointer; color: var(--noche); }
.ex-sug-opt .icon { color: var(--gris); }
.ex-sug-opt img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: var(--crema); }
.ex-sug-opt small { color: var(--gris); margin-left: 4px; }
.ex-sug-opt[aria-selected='true'], .ex-sug-opt:hover { background: var(--noche-050); }

/* Píldoras de filtro */
.ex-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.ex-pill-wrap { position: relative; }
.ex-pill { display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 14px 0 16px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-pill); background: var(--blanco); color: var(--noche); font: 500 0.9375rem/1 var(--font-display); white-space: nowrap; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.ex-pill:hover { border-color: var(--noche); }
.ex-pill:focus-visible, .ex-opt:focus-visible, .ex-chip:focus-visible, .ex-views button:focus-visible, .sx-close:focus-visible, .ex-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ex-pill .icon { width: 16px; height: 16px; }
.ex-caret { transform: rotate(90deg); opacity: 0.6; transition: transform 0.2s var(--ease); }
.ex-pill[aria-expanded='true'] { border-color: var(--noche); box-shadow: 0 0 0 1px var(--noche); }
.ex-pill[aria-expanded='true'] .ex-caret { transform: rotate(-90deg); }
.ex-pill.is-set { background: var(--noche); border-color: var(--noche); color: var(--blanco); }
.ex-pill.is-set .ex-caret { opacity: 0.8; }
.ex-pill-value:empty { display: none; }
.ex-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--coral-700); color: var(--blanco); font: 600 0.75rem/1 var(--font-sans); }
.ex-badge[hidden] { display: none; }
.ex-pill.is-set .ex-badge { background: var(--blanco); color: var(--noche); }
.ex-pill-all { display: none; }

/* Popover */
.ex-pop { position: absolute; z-index: 35; top: calc(100% + 8px); left: 0; width: max-content; min-width: 260px; max-width: min(460px, calc(100vw - 32px)); padding: var(--s-2); background: var(--blanco); border: 1px solid var(--linea); border-radius: 16px; box-shadow: var(--shadow-pop); animation: ex-pop-in 0.16s var(--ease); }
.ex-pop.to-left { left: auto; right: 0; }
.ex-pop[hidden] { display: none; }
.ex-pop-title { margin: 6px 10px 6px; color: var(--gris); font-size: 0.8rem; font-weight: 600; }
.ex-pop-foot { margin-top: var(--s-1); padding: var(--s-2) 10px 4px; border-top: 1px solid var(--linea); }
@keyframes ex-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ex-opts { display: grid; gap: 2px; }
.ex-opts-cols { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.ex-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 42px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--noche); font: 400 0.9375rem/1.3 var(--font-sans); text-align: left; cursor: pointer; }
.ex-opt:hover { background: var(--crema); }
.ex-opt-check { width: 16px; height: 16px; opacity: 0; color: var(--noche); stroke-width: 2.2; }
.ex-opt[aria-pressed='true'] { font-weight: 600; background: var(--noche-050); }
.ex-opt[aria-pressed='true'] .ex-opt-check { opacity: 1; }
.ex-opts-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; max-width: 420px; }
.ex-opt-chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-pill); background: var(--blanco); font-family: var(--font-display); font-weight: 500; }
.ex-opt-chip[aria-pressed='true'] { background: var(--noche); border-color: var(--noche); color: var(--blanco); }
.ex-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: var(--s-3) 4px 4px; }
.ex-range label, .ex-field { display: grid; gap: 4px; color: var(--gris); font-size: 0.8rem; font-weight: 600; }
.ex-range .input { min-height: 42px; padding: 8px 10px; font-size: 0.9rem; }
.ex-field { padding: 4px 4px var(--s-3); min-width: 300px; }
.ex-field .select { min-height: 42px; color: var(--noche); font-weight: 400; font-size: 0.9375rem; }
/* Ciudad: las principales como opciones y el resto en «Más ciudades». */
.ex-city-more { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--linea); }

/* Interruptores de "Más filtros" */
.ex-switch { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: var(--s-3); padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.ex-switch:hover { background: var(--crema); }
.ex-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ex-switch-ui { position: relative; width: 40px; height: 24px; border-radius: var(--r-pill); background: var(--linea-fuerte); transition: background 0.15s; }
.ex-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blanco); box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease); }
.ex-switch input:checked + .ex-switch-ui { background: var(--noche); }
.ex-switch input:checked + .ex-switch-ui::after { transform: translateX(16px); }
.ex-switch input:focus-visible + .ex-switch-ui { box-shadow: var(--focus-ring); }
.ex-switch b { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--noche); }
.ex-switch small { display: block; color: var(--gris); font-size: 0.82rem; }

/* Barra de resultados */
.ex-body { padding-top: var(--s-2); }
.ex-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0 var(--s-6); border-top: 1px solid var(--linea); flex-wrap: wrap; }
.ex-bar-info { display: grid; gap: var(--s-3); min-width: 0; flex: 1 1 360px; }
.ex-count { margin: 0; min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; color: var(--gris); font-size: 0.975rem; }
.ex-count b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--noche); letter-spacing: -0.01em; }
.ex-count-note { color: var(--gris); }
.ex-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ex-active:empty { display: none; }
.ex-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border: 1px solid var(--noche-100); border-radius: var(--r-pill); background: var(--blanco); color: var(--noche); font: 500 0.85rem/1 var(--font-sans); cursor: pointer; }
.ex-chip .icon { width: 14px; height: 14px; color: var(--gris); }
.ex-chip:hover { border-color: var(--noche); }
.ex-chip:hover .icon { color: var(--noche); }
.ex-link { border: 0; background: none; padding: 4px 6px; border-radius: 6px; color: var(--coral-700); font: 600 0.875rem/1 var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.ex-link:hover { text-decoration-color: currentColor; }
.ex-bar-tools { display: flex; align-items: center; gap: var(--s-3); }
.ex-sort .select { min-height: 40px; width: auto; padding-block: 6px; font-size: 0.9rem; color: var(--noche); }
.ex-views { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--crema-200); }
.ex-views button { display: inline-flex; align-items: center; gap: 6px; height: 42px; min-width: 44px; justify-content: center; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--gris); font: 500 0.875rem/1 var(--font-display); cursor: pointer; transition: background 0.15s, color 0.15s; }
.ex-views button:hover { color: var(--noche); }
.ex-views button[aria-pressed='true'] { background: var(--blanco); color: var(--noche); box-shadow: var(--shadow-sm); }
.ex-views .icon { width: 16px; height: 16px; }

/* Resultados */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: var(--s-8) var(--s-6); }
.ex-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex-top { margin-bottom: var(--s-10); }
.ex-top h2, .ex-section-h, .ex-near h2 { font-size: 1.25rem; margin-bottom: var(--s-4); letter-spacing: -0.01em; }
.ex-section-h { margin-top: 0; }
.ex-results .event-card, .ex-results .tl-card { background: var(--blanco); }
.ex-map { border-radius: var(--r-card); overflow: hidden; }
.ex-note { margin-top: 10px; color: var(--gris); font-size: 0.875rem; }

/* Esqueletos de carga (pulso, sin degradados) */
.ex-skel { background: var(--crema-200); border-radius: 10px; animation: ex-pulse 1.2s ease-in-out infinite; }
.ex-skel-card { display: grid; gap: 12px; }
.ex-skel-img { aspect-ratio: 16 / 10; border-radius: var(--r-card); }
.ex-skel-line { height: 14px; width: 86%; }
.ex-skel-line.short { width: 38%; }
.ex-skel-line.mid { width: 60%; }
.ex-skel-list { display: grid; gap: var(--s-3); }
.ex-skel-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-card); }
.ex-skel-text { display: grid; gap: 12px; align-content: center; }
.ex-skel-thumb { height: 92px; border-radius: 12px; }
@keyframes ex-pulse { 50% { opacity: 0.45; } }

/* Estado vacío */
.ex-empty { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-12) var(--s-6); text-align: center; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-card); }
.ex-empty-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--noche-050); color: var(--noche); }
.ex-empty-mark .icon { width: 24px; height: 24px; }
.ex-empty h2 { font-size: 1.5rem; }
.ex-empty p { margin: 0; max-width: 52ch; color: var(--gris); }
.ex-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }
.ex-empty-n { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--linea-fuerte); color: var(--gris); font-weight: 500; }
.ex-near { margin-top: var(--s-12); }
.ex-near-sub { margin: calc(var(--s-3) * -1) 0 var(--s-5); color: var(--gris); }

/* Alerta */
.ex-alert { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-10); padding: var(--s-5) var(--s-6); background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-card); }
.ex-alert b { font-family: var(--font-display); font-weight: 600; }
.ex-alert p { margin: 2px 0 0; color: var(--gris); font-size: 0.925rem; }

/* Hoja de filtros (móvil) */
.ex-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 88dvh; margin: 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--blanco); color: var(--noche); box-shadow: var(--shadow-pop); flex-direction: column; overflow: hidden; }
.ex-sheet[open] { display: flex; animation: ex-sheet-in 0.24s var(--ease); }
.ex-sheet::backdrop { background: rgba(11, 34, 54, 0.42); }
@keyframes ex-sheet-in { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.ex-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-4) var(--s-3) var(--s-5); border-bottom: 1px solid var(--linea); }
.ex-sheet-head h2 { font-size: 1.125rem; }
.ex-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--crema); color: var(--noche); cursor: pointer; }
.ex-icon-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ex-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2) var(--s-4) var(--s-6); }
.ex-sheet-sec { padding: var(--s-4) 0; border-bottom: 1px solid var(--linea); scroll-margin-top: 8px; }
.ex-sheet-sec:last-child { border-bottom: 0; }
.ex-sheet-sec h3 { margin: 0 0 var(--s-2) 4px; font-size: 1rem; }
.ex-sheet .ex-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-sheet .ex-opt { min-height: 40px; padding: 0 14px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-pill); background: var(--blanco); font-family: var(--font-display); font-weight: 500; }
.ex-sheet .ex-opt[aria-pressed='true'] { background: var(--noche); border-color: var(--noche); color: var(--blanco); }
.ex-sheet .ex-opt-check { display: none; }
.ex-sheet .ex-opts-wrap { max-width: none; padding: 0; }
.ex-sheet .ex-field { min-width: 0; }
.ex-sheet .ex-city-more { border-top: 0; padding: var(--s-3) 0 0; }
.ex-sheet-foot { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--blanco); }
.ex-sheet-foot .btn-primary { flex: 1; background: var(--coral-700); border-color: var(--coral-700); }
.ex-sheet-foot .btn-primary:hover { background: var(--coral-800); border-color: var(--coral-800); }
html.ex-sheet-open, html.sx-open { overflow: hidden; }

@media (max-width: 1080px) {
  .ex-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ex-hero { padding: var(--s-6) 0 var(--s-3); }
  .ex-lead { margin-bottom: var(--s-4); font-size: 0.975rem; }
  .ex-search { height: 56px; border-radius: 16px; padding-left: var(--s-4); }
  .ex-search-input { font-size: 1rem; }
  .ex-kbd { display: none; }
  /* Píldoras en una fila que se desliza; "Filtros" abre la hoja con todo */
  .ex-pills { flex-wrap: nowrap; overflow-x: auto; margin: var(--s-4) calc(var(--s-4) * -1) 0; padding: 2px var(--s-4) 6px; scrollbar-width: none; }
  .ex-pills::-webkit-scrollbar { display: none; }
  .ex-pill-all { display: inline-flex; }
  .ex-pill-wrap[data-filter='more'] { display: none; }
  .ex-pill { height: 48px; padding: 0 14px; }
  .ex-pill .ex-caret { display: none; }
  .ex-bar { padding: var(--s-3) 0 var(--s-4); gap: var(--s-3); }
  .ex-bar-info { flex-basis: 100%; }
  .ex-bar-tools { width: 100%; justify-content: space-between; }
  .ex-sort { flex: 1; min-width: 0; }
  .ex-sort .select { width: 100%; }
  .ex-views { flex: none; }
  .ex-views button span { display: none; }
  .ex-views button { padding: 0 10px; }
  .ex-grid, .ex-grid-3 { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .ex-skel-row { grid-template-columns: minmax(0, 1fr) 88px; }
  .ex-empty { padding: var(--s-10) var(--s-4); }
}

/* ---------------------------------------------------------------------------
   Búsqueda global (paleta)
   --------------------------------------------------------------------------- */
.sx { width: min(680px, calc(100% - 32px)); max-width: none; max-height: min(640px, calc(100dvh - 15vh - 24px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--linea); border-radius: 20px; background: var(--blanco); color: var(--noche); box-shadow: var(--shadow-pop); flex-direction: column; overflow: hidden; }
.sx[open] { display: flex; animation: ex-pop-in 0.16s var(--ease); }
.sx::backdrop { background: rgba(11, 34, 54, 0.42); }
.sx-field { display: flex; align-items: center; gap: var(--s-3); height: 64px; padding: 0 var(--s-4) 0 var(--s-5); border-bottom: 1px solid var(--linea); }
.sx-field > .icon { width: 22px; height: 22px; color: var(--noche); stroke-width: 1.8; }
.sx-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: 500 1.125rem/1 var(--font-sans); color: var(--noche); }
.sx-field input::placeholder { color: var(--tenue); font-weight: 400; }
.sx-field input::-webkit-search-cancel-button { display: none; }
.sx-close { height: 28px; padding: 0 8px; border: 1px solid var(--linea-fuerte); border-bottom-width: 2px; border-radius: 7px; background: var(--blanco); color: var(--gris); font: 600 0.78rem/1 var(--font-sans); cursor: pointer; }
.sx-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; }
.sx-list[aria-busy='true'] { opacity: 0.6; transition: opacity 0.2s 0.15s; }
.sx-group + .sx-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--linea); }
.sx-group-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px; color: var(--gris); font-size: 0.78rem; font-weight: 600; }
.sx-link { border: 0; background: none; padding: 2px 4px; color: var(--coral-700); font: 600 0.78rem/1 var(--font-sans); cursor: pointer; }
.sx-opt { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 6px 10px; border-radius: 12px; cursor: pointer; }
.sx-opt[aria-selected='true'] { background: var(--noche-050); }
.sx-lead { flex: none; display: grid; place-items: center; }
.sx-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--crema); color: var(--noche); }
.sx-opt[aria-selected='true'] .sx-ico { background: var(--blanco); }
.sx-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--crema); }
.sx-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: var(--crema); border: 1px solid var(--linea); }
.sx-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sx-title { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-meta { color: var(--gris); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-trail { color: var(--gris); }
.sx-empty { margin: 0; padding: var(--s-5) var(--s-4); color: var(--gris); text-align: center; }
.sx-help { display: flex; gap: var(--s-5); margin: 0; padding: 10px var(--s-5); border-top: 1px solid var(--linea); background: var(--crema); color: var(--gris); font-size: 0.8rem; }
.sx-help span { display: inline-flex; align-items: center; gap: 4px; }
.sx kbd { min-width: 22px; height: 22px; font-size: 0.72rem; }

@media (max-width: 760px) {
  .sx { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .sx-help { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-pop, .ex-sheet[open], .sx[open] { animation: none; }
  .ex-skel { animation: none; }
}

/* ---------------------------------------------------------------------------
   Barra de rango con dos manijas (js/ui/range.js). Mobile first: manijas con 44 px de área táctil.
   --------------------------------------------------------------------------- */
.rg { display: grid; gap: var(--s-4); min-width: 0; }
.rg-slider { position: relative; height: 44px; touch-action: none; cursor: pointer; }
.rg.has-hist .rg-slider { height: 104px; }
.rg-hist { position: absolute; left: 22px; right: 22px; bottom: 22px; height: 60px; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; }
.rg-hist span { flex: 1; min-width: 0; border-radius: 3px 3px 0 0; background: var(--linea); transition: background 0.15s; }
.rg-hist span.is-in { background: var(--noche-700); }
.rg-track { position: absolute; left: 22px; right: 22px; bottom: 20px; height: 4px; border-radius: var(--r-pill); background: var(--linea-fuerte); pointer-events: none; }
.rg-fill { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); background: var(--noche); }
.rg-input { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; width: 100%; height: 44px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; outline: none; }
.rg-input::-webkit-slider-runnable-track { height: 44px; background: none; border: 0; }
.rg-input::-moz-range-track { height: 44px; background: none; border: 0; }
/* La manija se ve de 24 px, pero el borde transparente la lleva a 44 px táctiles. */
.rg-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 44px; height: 44px; border: 10px solid transparent; border-radius: 50%; background: var(--blanco); background-clip: padding-box; box-shadow: inset 0 0 0 2px var(--noche); cursor: grab; }
.rg-input::-moz-range-thumb { pointer-events: auto; box-sizing: border-box; width: 44px; height: 44px; border: 10px solid transparent; border-radius: 50%; background: var(--blanco); background-clip: padding-box; box-shadow: inset 0 0 0 2px var(--noche); cursor: grab; }
.rg-input:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: inset 0 0 0 2px var(--noche), inset 0 0 0 7px var(--noche-050); }
.rg-input:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 0 0 2px var(--coral-700), inset 0 0 0 5px rgba(201, 74, 46, 0.22); }
.rg-input:focus-visible::-moz-range-thumb { box-shadow: inset 0 0 0 2px var(--coral-700), inset 0 0 0 5px rgba(201, 74, 46, 0.22); }
.rg.is-off .rg-slider { cursor: default; opacity: 0.5; }
.rg-fields { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); align-items: end; gap: var(--s-2); }
.rg-field { display: grid; gap: 4px; min-width: 0; color: var(--gris); font-size: 0.8rem; font-weight: 600; }
.rg-num { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-field); background: var(--blanco); color: var(--noche); font: 500 0.975rem/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
.rg-num:focus { outline: none; border-color: var(--coral-700); box-shadow: var(--focus-ring); }
.rg-sep { height: 1px; margin-bottom: 22px; background: var(--linea-fuerte); }

/* Precio en el explorador: popover y hoja móvil */
.ex-price { display: grid; gap: var(--s-3); width: min(380px, calc(100vw - 64px)); padding: 4px 6px 6px; }
.ex-sheet .ex-price { width: auto; padding: 0 2px; }
.ex-price-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.ex-price-range { font: 600 1.0625rem/1.3 var(--font-display); color: var(--noche); letter-spacing: -0.01em; }
.ex-price-note { color: var(--gris); font-size: 0.82rem; }
.ex-price .ex-opts-wrap { padding: 0; }
.ex-price-apply { justify-self: end; }

/* ¿Quisiste decir…? y aviso de coincidencia parcial */
.ex-dym { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; color: var(--gris); font-size: 0.95rem; }
.ex-dym .icon { width: 18px; height: 18px; color: var(--noche); }
.ex-dym button { min-height: 32px; padding: 0 1px; border: 0; background: none; color: var(--noche); font: 600 0.95rem/1 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ex-dym button:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.sx-dym .sx-title b { color: var(--noche); }
.sx-price { font-variant-numeric: tabular-nums; color: var(--noche); font-weight: 600; font-size: 0.9rem; }
