/* Sebra Filtros v1.0.0 | Solo el shortcode; nunca modifica el Loop Grid. */
.sf-root, .sf-modal, .sf-mobile-anchor { box-sizing: border-box; font-family: inherit; }
.sf-root *, .sf-modal *, .sf-mobile-anchor * { box-sizing: border-box; }
.sf-root { width: 100%; max-width: 100%; min-width: 0; }
.sf-desktop { width: 100%; min-width: 0; }
.sf-root .sf-controls, .sf-modal .sf-controls {
  background: #fff !important; color: #202020 !important; border: 0 !important;
  border-radius: 0; width: 100%; min-width: 0; padding: 0 !important; margin: 0 !important;
  font-family: inherit; text-align: left;
}
/* Elementor themes can inject dark button backgrounds; reset only filter buttons. */
.sf-root .sf-controls button, .sf-modal .sf-controls button {
  appearance: none; -webkit-appearance: none; box-shadow: none !important;
  background: #fff !important; background-image: none !important;
  color: #242424 !important; border: 0 !important; outline-offset: 2px;
  text-align: left !important; text-decoration: none !important; text-transform: none !important;
  letter-spacing: normal !important; line-height: 1.3 !important;
  font-family: inherit !important; font-weight: 400 !important;
  min-width: 0; min-height: 0; cursor: pointer;
}
.sf-root .sf-group, .sf-modal .sf-group { margin: 0 0 25px !important; padding: 0 !important; }
.sf-root .sf-group h4, .sf-modal .sf-group h4 {
  font-family: inherit !important; color: #1b1b1b !important; font-size: 16px !important;
  line-height: 1.35 !important; font-weight: 700 !important;
  margin: 0 0 8px !important; padding: 0 !important;
}
/* Beneficios: checkbox normal, accesible, también en el panel móvil. */
.sf-root .sf-benefit-option, .sf-modal .sf-benefit-option {
  display: inline-flex !important; align-items: center; gap: 11px;
  cursor: pointer; font-size: 13px !important; font-weight: 400 !important; color: #242424; line-height: 1.45;
  padding: 2px 0; margin: 0 !important;
}
.sf-root .sf-benefit-option input[type=checkbox], .sf-modal .sf-benefit-option input[type=checkbox] {
  appearance: auto !important; -webkit-appearance: checkbox !important;
  position: static !important; opacity: 1 !important;
  width: 17px !important; height: 17px !important;
  min-width: 17px !important; margin: 0 !important;
  accent-color: #e99a28; cursor: pointer;
}
.sf-root .sf-benefit-option input[type=checkbox]:focus-visible,
.sf-modal .sf-benefit-option input[type=checkbox]:focus-visible {
  outline: 2px solid #d88418 !important; outline-offset: 2px;
}
/* Precio: two equal, compact, horizontal options. */
.sf-root .sf-sort, .sf-modal .sf-sort { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.sf-root .sf-sort button, .sf-modal .sf-sort button {
  display: flex !important; align-items: center; justify-content: center;
  gap: 5px; text-align: center !important; white-space: normal !important;
  border: 0 !important; border-radius: 0 !important;
  padding: 5px 2px !important; font-size: 13px !important; font-weight: 400 !important;
  color: #727272 !important; background: #fff !important;
}
.sf-root .sf-sort button span:first-child, .sf-modal .sf-sort button span:first-child {
  font-size: 19px !important; font-weight: 650 !important; flex: 0 0 auto;
  line-height: 1 !important; margin-right: 2px;
}
/* Normal = blanco/gris sin borde. Activo = suave resaltado naranja,
   sin cambiar las dimensiones, el espaciado ni el orden de los botones.
   El estado seleccionado conserva el color durante hover y focus. */
.sf-root .sf-sort button:hover:not(.sf-selected),
.sf-modal .sf-sort button:hover:not(.sf-selected) {
  background: #fafafa !important;
}
.sf-root .sf-sort button.sf-selected,
.sf-modal .sf-sort button.sf-selected,
.sf-root .sf-sort button.sf-selected:hover,
.sf-modal .sf-sort button.sf-selected:hover,
.sf-root .sf-sort button.sf-selected:focus,
.sf-modal .sf-sort button.sf-selected:focus {
  background: #fff6eb !important;
  color: #985000 !important;
  border: 0 !important;
  border-radius: 7px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}
/* Visual hierarchy mirrors Sebra mockup: no visible Tecnología parent. */
.sf-root .sf-category-list, .sf-modal .sf-category-list,
.sf-root .sf-category-children, .sf-modal .sf-category-children {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.sf-root .sf-category-children, .sf-modal .sf-category-children { padding: 4px 0 4px 14px !important; }
.sf-root .sf-category-children[hidden], .sf-modal .sf-category-children[hidden],
.sf-modal[hidden], .sf-filter-count[hidden] { display: none !important; }
.sf-root .sf-category-node, .sf-modal .sf-category-node { margin: 0 !important; padding: 0 !important; }
.sf-root .sf-category-line, .sf-modal .sf-category-line {
  display: flex !important; align-items: center; gap: 6px; min-width: 0; margin: 2px 0 !important;
}
.sf-root .sf-controls button.sf-all, .sf-modal .sf-controls button.sf-all {
  display: inline-flex; align-items: center; border-radius: 6px !important;
  border: 1px solid transparent !important; padding: 6px 10px !important;
  font-size: 13px !important; font-weight: 400 !important; margin: 0 0 7px !important;
}
.sf-root .sf-controls button.sf-category-choice, .sf-modal .sf-controls button.sf-category-choice {
  display: flex !important; align-items: center; gap: 12px;
  flex: 1 1 auto; width: 100%; font-size: 13px !important; font-weight: 400 !important;
  padding: 8px 4px !important; border-radius: 6px !important;
  background: #fff !important; color: #303030 !important; overflow-wrap: anywhere;
}
/* Radio-style circles in the mockup; category remains a toggle button for deselection. */
.sf-root .sf-controls button.sf-category-choice::before, .sf-modal .sf-controls button.sf-category-choice::before {
  content: ""; display: block; flex: 0 0 13px; width: 13px; height: 13px;
  border: 1.5px solid #c9c9c9; border-radius: 50%; background: #fff;
}
.sf-root .sf-controls button.sf-category-choice.sf-selected::before, .sf-modal .sf-controls button.sf-category-choice.sf-selected::before {
  border-color: #ed9e32; box-shadow: inset 0 0 0 3px #fff; background: #ed9e32;
}
.sf-root .sf-controls button.sf-all.sf-selected, .sf-modal .sf-controls button.sf-all.sf-selected,
.sf-root .sf-controls button.sf-category-choice.sf-selected, .sf-modal .sf-controls button.sf-category-choice.sf-selected {
  border-color: #f1a548 !important; background: #fff5e8 !important; color: #a65a00 !important;
  font-weight: 500 !important;
}
.sf-root .sf-controls button.sf-category-choice:hover, .sf-modal .sf-controls button.sf-category-choice:hover,
.sf-root .sf-controls button.sf-all:hover, .sf-modal .sf-controls button.sf-all:hover { background: #f7f7f7 !important; }
.sf-root .sf-controls button.sf-expand, .sf-modal .sf-controls button.sf-expand {
  display: grid !important; place-items: center; flex: 0 0 30px; width: 30px;
  height: 32px; padding: 0 !important; border: 1px solid #ededed !important;
  border-radius: 7px !important; background: #fff !important;
  color: #555 !important; font-size: 18px !important;
}
.sf-root .sf-expand[aria-expanded="true"] span, .sf-modal .sf-expand[aria-expanded="true"] span { transform: rotate(180deg); }
/* Brands: small white outlined chips, multiple selection. */
.sf-root .sf-brands, .sf-modal .sf-brands { display: flex !important; flex-wrap: wrap; gap: 7px; }
.sf-root .sf-controls button.sf-brand, .sf-modal .sf-controls button.sf-brand {
  width: auto !important; max-width: 100%; border: 1px solid #e1e1e1 !important;
  border-radius: 6px !important; padding: 6px 10px !important; font-size: 13px !important;
  background: #fff !important; color: #252525 !important; white-space: normal; font-weight: 400 !important;
}
.sf-root .sf-controls button.sf-brand.sf-selected, .sf-modal .sf-controls button.sf-brand.sf-selected {
  border-color: #eba148 !important; background: #fff3e6 !important; color: #a65a00 !important;
  font-weight: 500 !important;
}
.sf-root .sf-controls button.sf-brand:hover, .sf-modal .sf-controls button.sf-brand:hover { border-color: #eba148 !important; }
.sf-root .sf-controls button.sf-reset, .sf-modal .sf-controls button.sf-reset {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #ddd !important; border-radius: 7px !important;
  background: #fff !important; color: #686868 !important;
  font-size: 13px !important; font-weight: 400 !important; padding: 8px 11px !important;
}
.sf-root .sf-controls button.sf-reset:disabled, .sf-modal .sf-controls button.sf-reset:disabled {
  opacity: .42 !important; cursor: default;
}
.sf-root .sf-controls button:focus-visible, .sf-modal .sf-controls button:focus-visible,
.sf-mobile-trigger:focus-visible, .sf-drawer-header button:focus-visible { outline: 2px solid #d88418 !important; outline-offset: 2px; }
.sf-root .sf-notice, .sf-modal .sf-notice { color: #a65000; font-size: 12px; }
.sf-root .sf-status, .sf-modal .sf-status { font-size: 12px; color: #767676; margin: 5px 0 0; }
.sf-root.sf-loading .sf-controls button, .sf-root.sf-loading .sf-mobile-trigger { opacity: .7; }
.sf-grid-loading { opacity: .55; transition: opacity 120ms ease; }
/* Botón móvil dentro del shortcode. No se mueve al Loop Grid. */
.sf-mobile-trigger {
  display: none !important; width: 100%; min-height: 44px;
  padding: 10px 14px !important; border: 1px solid #dfdfdf !important; border-radius: 10px !important;
  background: #fff !important; color: #222 !important; box-shadow: none !important;
  align-items: center; justify-content: center; gap: 7px;
  font-family: inherit !important; font-size: 14px !important; font-weight: 650 !important;
  text-align: center !important; text-transform: none !important; cursor: pointer;
}
.sf-mobile-trigger > span:first-child { font-size: 19px; line-height: 1; }
/* Modal is placed in document.body, above Elementor fixed mobile nav. */
.sf-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; justify-content: flex-end; color: #202020; }
.sf-modal button.sf-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0,0,0,.58) !important; cursor: pointer; }
.sf-modal .sf-drawer {
  position: relative; height: 100%; height: 100dvh; width: min(390px, 92vw); max-width: 100%;
  background: #fff !important; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -8px 0 30px #0003; padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 20px);
}
.sf-modal .sf-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; }
.sf-modal .sf-drawer-header strong { font-size: 18px; font-weight: 700; color: #202020; }
.sf-modal .sf-drawer-header button { background: #fff !important; color: #222 !important; border: 0 !important; box-shadow: none !important; font-size: 25px !important; padding: 2px 8px !important; cursor: pointer; }
.sf-modal .sf-drawer .sf-controls { padding: 0 !important; margin: 0 !important; border-radius: 0; }
.sf-modal .sf-controls button.sf-apply {
  display: block; width: 100%; text-align: center !important; margin: 17px 0 0;
  padding: 13px 15px !important; border-radius: 9px !important;
  border: 1px solid #111 !important; background: #111 !important; color: #fff !important;
  font-size: 14px !important; font-weight: 650 !important;
}
body.sf-modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.sf-mode-movil .sf-desktop { display: none !important; }
.sf-mode-movil .sf-mobile-trigger { display: flex !important; }
.sf-mode-escritorio .sf-mobile-trigger { display: none !important; }
@media (max-width: 767px) {
  .sf-mode-auto .sf-desktop { display: none !important; }
  .sf-mode-auto .sf-mobile-trigger { display: flex !important; }
}
@media (min-width: 768px) {
  .sf-mode-auto .sf-desktop { display: block !important; }
  .sf-mode-auto .sf-mobile-trigger { display: none !important; }
}

/* Active selections use weight 500; unselected options remain 400. */
.sf-root .sf-controls button.sf-all.sf-selected, .sf-modal .sf-controls button.sf-all.sf-selected { font-weight: 500 !important; }

/* Precio: ningún subrayado, incluyendo selección, hover y foco. */
.sf-root .sf-sort button, .sf-root .sf-sort button *,
.sf-modal .sf-sort button, .sf-modal .sf-sort button *,
.sf-root .sf-sort button:hover, .sf-root .sf-sort button:focus,
.sf-modal .sf-sort button:hover, .sf-modal .sf-sort button:focus {
  text-decoration: none !important;
}
