@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   RESULTADOS - ESTILO PROFESIONAL
   Consistente con index (Opción 3)
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overscroll-behavior-y: contain;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #141414;
  color: #fff;
  padding-top: 0;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.3s ease-out;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.page-exit {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Stagger animation for results cards */
.negocio-card {
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transform: translateY(14px);
  animation: cardStaggerIn 0.4s ease-out forwards;
}
.negocio-card:nth-child(1)  { animation-delay: 0.04s; }
.negocio-card:nth-child(2)  { animation-delay: 0.10s; }
.negocio-card:nth-child(3)  { animation-delay: 0.16s; }
.negocio-card:nth-child(4)  { animation-delay: 0.22s; }
.negocio-card:nth-child(5)  { animation-delay: 0.28s; }
.negocio-card:nth-child(6)  { animation-delay: 0.34s; }
.negocio-card:nth-child(7)  { animation-delay: 0.38s; }
.negocio-card:nth-child(8)  { animation-delay: 0.42s; }
.negocio-card:nth-child(9)  { animation-delay: 0.45s; }
.negocio-card:nth-child(10) { animation-delay: 0.48s; }
.negocio-card:nth-child(n+11) { animation-delay: 0.50s; }

@keyframes cardStaggerIn {
  to { opacity: 1; transform: translateY(0); }
}

.negocio-card:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s ease !important;
}

.back-link:active {
  transform: scale(0.88);
  transition: transform 0.08s ease;
}

/* ========================================
   HEADER PROFESIONAL
   ======================================== */

.search-header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nowdii-home-link {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.nowdii-home-link .logo-text { color: #fff; }
.nowdii-home-link .logo-accent { color: #ffe600; }

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 10px;
  color: #aaa;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.back-link:hover { background: #222; color: #fff; }

.back-link i { font-size: 0.85rem; }

/* Barra de búsqueda en header */
.header-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 50px;
  padding: 7px 14px;
  min-width: 0;
}

.header-search-box i { color: #444; font-size: 0.8rem; flex-shrink: 0; }

#resultadosTitulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chips de búsqueda dentro del header */
.search-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.search-info span {
  background: #242424;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #2e2e2e;
  white-space: nowrap;
}

.search-info span i {
  font-size: 0.65rem;
  color: #666;
}

/* ========================================
   CONTENEDOR DE RESULTADOS
   ======================================== */

.results-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 0 80px;
}

.results-count {
  font-size: 0.75rem;
  color: #444;
  margin-bottom: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px 0;
}

/* ========================================
   FILTRO DE SUGERENCIA
   ======================================== */

.filter-suggestion {
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.suggestion-text {
  font-size: 0.78rem;
  color: #555;
  font-weight: 500;
}

.btn-ver-todos {
  background: linear-gradient(135deg, #ffe600, #ffd000);
  color: #000;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 230, 0, 0.3);
}

.btn-ver-todos:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 230, 0, 0.4);
}

.btn-ver-todos .total-count {
  background: rgba(0,0,0,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* ========================================
   GRID DE RESULTADOS
   ======================================== */

/* grid definido en cards block */

/* ========================================
   CARDS V4 — Grid 2 cols, foto con overlays
   ======================================== */

/* Grid resultados — 2 columnas en móvil */
#resultadosContenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px;
}

/* Card base */
.negocio-card {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
}

/* Glow de estado — sombra envolvente en toda la card */
.negocio-card.glow-abierto {
  box-shadow: 0 0 0 2.5px #1DB954, 0 0 16px rgba(29,185,84,0.25), 0 4px 16px rgba(0,0,0,0.6);
}
.negocio-card.glow-cerrado {
  box-shadow: 0 0 0 2.5px rgba(120,120,120,0.3), 0 0 18px rgba(120,120,120,0.06), 0 4px 16px rgba(0,0,0,0.6);
}
.negocio-card.glow-digital {
  box-shadow: 0 0 0 2.5px rgba(167,139,250,0.5), 0 0 16px rgba(167,139,250,0.15), 0 4px 16px rgba(0,0,0,0.6);
}

.negocio-card:hover { background: #1e1e1e; border-color: #2a2a2a; }
.negocio-card:active { transform: scale(0.98); }

/* Premium — borde sutil amarillo */
.negocio-card.premium,
.negocio-card.premium-plus {
  border-color: transparent;
}

/* === FOTO CONTAINER === */
.negocio-foto-container {
  width: 100%;
  height: 130px;
  background: #111;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.negocio-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.negocio-card:hover .negocio-foto { transform: scale(1.04); }

/* Gradiente sobre la foto */
.foto-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}

/* Estado abierto/cerrado — arriba izquierda */
.negocio-estado {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  z-index: 3;
}

.estado-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.negocio-estado.abierto { color: #1DB954; }
.negocio-estado.abierto .estado-dot { background: #1DB954; }
.negocio-estado.cerrado { color: #888; }
.negocio-estado.cerrado .estado-dot { background: #555; }
.negocio-estado.digital { color: #a78bfa; }
.negocio-estado.digital .estado-dot { background: #a78bfa; }
.negocio-estado.sin-horario { color: #f59e0b; }
.negocio-estado.sin-horario .estado-dot { background: #f59e0b; }

/* Badge destacado — arriba derecha */
.plan-badge {
  background: #ffe600;
  color: #000;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: flex-start;
}

.plan-badge i { font-size: 0.55rem; }

/* Categoría — abajo sobre la foto */
.cat-overlay {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.6rem;
  color: #ccc;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.cat-overlay i { font-size: 0.58rem; }

/* === INFO CONTENT === */
.negocio-info-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.negocio-nombre-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.negocio-nombre {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   SISTEMA DE VERIFICACIÓN — 3 NIVELES
   ======================================== */

/* Base compartida */
.verificado-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.58rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Círculo check base */
.verificado-check {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── NIVEL 01 — AZUL ── */
.verificado-azul {
  background: rgba(29, 155, 240, 0.12);
  border: 1px solid rgba(29, 155, 240, 0.4);
  color: #1d9bf0;
}
.verificado-azul .verificado-check {
  background: #1d9bf0;
  color: #fff;
}

/* ── NIVEL 02 — DORADO ── */
.verificado-dorado {
  background: rgba(197, 160, 50, 0.12);
  border: 1px solid rgba(197, 160, 50, 0.45);
  color: #c5a032;
}
.verificado-dorado .verificado-check {
  background: linear-gradient(135deg, #c5a032, #e8c547);
  color: #fff;
}

/* ── NIVEL 03 — METÁLICO (Plateado · valor 'top' en DB) ── */
@keyframes shimmer-badge {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.verificado-top {
  background: #000;
  padding: 1.5px;
  /* Borde metálico animado via gradiente exterior */
  background: linear-gradient(135deg, #555, #ccc, #444, #bbb, #666);
  background-size: 200% auto;
  animation: shimmer-badge 3s linear infinite;
}

.verificado-top-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #000;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.58rem;
  font-weight: 700;
}

.verificado-top-inner .verificado-check {
  background: #000;
  border: 1px solid #444;
  position: relative;
  overflow: visible;
}

.verificado-top-inner .verificado-check::after {
  content: "✓";
  position: absolute;
  font-size: 7px;
  font-weight: 900;
  background: linear-gradient(90deg, #888, #fff, #aaa, #fff, #777);
  background-size: 200% auto;
  animation: shimmer-badge 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verificado-top-inner .metal-text {
  background: linear-gradient(90deg, #777, #ccc, #fff, #ccc, #777);
  background-size: 200% auto;
  animation: shimmer-badge 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dirección / municipio */
.negocio-direccion {
  font-size: 0.68rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.negocio-direccion i {
  font-size: 0.6rem;
  color: #444;
  flex-shrink: 0;
}

/* === BTN (no-results) === */
.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20bd5a, #1da851);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
  font-size: 1.2rem;
}

/* Teléfono */
.btn-telefono {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-telefono:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}


/* Badge flotante */
/* (estilos viejos eliminados) */

/* ========================================
   SIN RESULTADOS
   ======================================== */

.no-results {
  text-align: center;
  padding: 5rem 2rem;
  grid-column: 1 / -1;
}

.no-results-icon {
  font-size: 4rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.no-results h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.no-results p {
  color: #999;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ========================================
   SUGERENCIAS (no-results)
   ======================================== */
.sugerencias-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
  padding: 12px 0;
  text-align: left;
}

.sugerencias-cat-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sugerencias-cat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sugerencias-cat-title i {
  font-size: 11px;
}

.sugerencias-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sugerencia-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 6px 14px;
  color: #bbb;
  font-size: 12.5px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sugerencia-chip:hover {
  background: #1e1e1e;
  color: #fff;
  transform: translateY(-1px);
}

/* Colores hover por categoría */
.sugerencia-chip[data-cat="alimentos"]:hover { border-color: #FF6B35; color: #FF6B35; }
.sugerencia-chip[data-cat="belleza"]:hover { border-color: #E91E8C; color: #E91E8C; }
.sugerencia-chip[data-cat="salud"]:hover { border-color: #00BFA5; color: #00BFA5; }
.sugerencia-chip[data-cat="servicios"]:hover { border-color: #2196F3; color: #2196F3; }
.sugerencia-chip[data-cat="compras"]:hover { border-color: #FFE600; color: #FFE600; }
.sugerencia-chip[data-cat="eventos"]:hover { border-color: #FF5252; color: #FF5252; }
.sugerencia-chip[data-cat="activate"]:hover { border-color: #76FF03; color: #76FF03; }
.sugerencia-chip[data-cat="aprende"]:hover { border-color: #7C4DFF; color: #7C4DFF; }
.sugerencia-chip[data-cat="hogar"]:hover { border-color: #8D6E63; color: #8D6E63; }
.sugerencia-chip[data-cat="servicios_moviles"]:hover { border-color: #00BCD4; color: #00BCD4; }

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */
@media (max-width: 768px) {
  /* Filter suggestion */
  .filter-suggestion {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .btn-ver-todos {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Grid — 2 columnas en móvil */
  #resultadosContenedor {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px;
  }

  .negocio-card { border-radius: 14px; }
  .negocio-foto-container { height: 110px; }
  .negocio-info-content { padding: 8px 10px; gap: 3px; }
  .negocio-nombre { font-size: 0.82rem; }
  .negocio-direccion { font-size: 0.65rem; }
  .negocio-estado { font-size: 0.55rem; padding: 2px 6px; }
  .plan-badge { font-size: 0.52rem; padding: 2px 6px; }
  .cat-overlay { font-size: 0.55rem; padding: 2px 6px; }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO
   ======================================== */
@media (max-width: 480px) {
  #resultadosContenedor { gap: 6px; padding: 6px 10px; }
  .negocio-foto-container { height: 100px; }
  .negocio-nombre { font-size: 0.78rem; }
}
/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 1024px) {

  /* Header con ancho máximo */
  .search-header {
    padding: 12px 2rem;
  }

  .search-header-content {
    max-width: 900px;
    margin: 0 auto;
  }

  /* Contenedor principal */
  .results-container {
    max-width: 960px;
    padding: 10px 0 80px;
  }

  .results-count {
    padding: 10px 0 0;
  }

  .filter-suggestion {
    margin: 8px 0;
  }

  /* Grid — 3 columnas en desktop */
  #resultadosContenedor {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px 0;
  }

  /* Cards más altas */
  .negocio-foto-container {
    height: 160px;
  }
}

@media (min-width: 1400px) {
  .search-header-content {
    max-width: 1100px;
  }

  .results-container {
    max-width: 1140px;
  }

  /* 4 columnas en pantallas muy grandes */
  #resultadosContenedor {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   FILTROS — Botón + Bottom Sheet
   ======================================== */
.filtros-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #1a1a1a;
  background: #141414;
}

.btn-filtros {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #242424;
  background: #1a1a1a;
  color: #888;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-filtros:active { transform: scale(0.95); }
.btn-filtros i { font-size: 12px; }
.btn-filtros.has-filters {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.filter-count {
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini chips de filtros activos */
.filtros-activos {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.filtros-activos::-webkit-scrollbar { display: none; }

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ddd;
  flex-shrink: 0;
}
.mini-chip .remove {
  font-size: 9px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.mini-chip .remove:active { opacity: 1; }

/* Bottom Sheet overlay */
.filter-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.filter-overlay.active { opacity: 1; pointer-events: auto; }

/* Bottom Sheet panel */
.filter-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 201;
  background: #1e1e1e;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  max-height: 80vh;
  overflow-y: auto;
}
.filter-sheet.active { transform: translateY(0); }
.filter-sheet::-webkit-scrollbar { display: none; }

.filter-handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: #555;
  margin: 0 auto 20px;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.filter-section { margin-bottom: 18px; }
.filter-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 10px;
}

.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #242424;
  background: #141414;
  color: #888;
  transition: all 0.2s;
}
.filter-option:active { transform: scale(0.96); }
.filter-option i { font-size: 13px; }
.filter-option.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* Estilos específicos por filtro — colores siempre visibles */

/* Abierto ahora — franja verde izquierda */
.filter-option[data-filtro="abierto"] {
  border-left: 3px solid #1DB954;
  color: #1DB954;
}
.filter-option[data-filtro="abierto"] i { color: #1DB954; }
.filter-option[data-filtro="abierto"].active {
  background: rgba(29,185,84,0.15);
  border-color: rgba(29,185,84,0.4);
  border-left: 3px solid #1DB954;
}

/* Urgencias — franja roja izquierda */
.filter-option[data-filtro="urgencias"] {
  border-left: 3px solid #e53935;
  color: #e53935;
}
.filter-option[data-filtro="urgencias"] i { color: #e53935; }
.filter-option[data-filtro="urgencias"].active {
  background: rgba(229,57,53,0.15);
  border-color: rgba(229,57,53,0.4);
  border-left: 3px solid #e53935;
}

/* 24/7 — contorno mitad amarillo mitad negro */
.filter-option[data-filtro="24h"] {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  color: #ffe600;
}
.filter-option[data-filtro="24h"] i { color: #ffe600; }
.filter-option[data-filtro="24h"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1.5px;
  background: linear-gradient(90deg, #ffe600 50%, #333 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.filter-option[data-filtro="24h"].active {
  background: rgba(255,230,0,0.12);
}

/* Acepta tarjeta — icono verde */
.filter-option[data-filtro="tarjeta"] i { color: #4CAF50; }
.filter-option[data-filtro="tarjeta"] { color: #aaa; }
.filter-option[data-filtro="tarjeta"].active {
  background: rgba(76,175,80,0.12);
  border-color: rgba(76,175,80,0.35);
  color: #fff;
}

/* Transferencia — icono azul */
.filter-option[data-filtro="transferencia"] i { color: #42A5F5; }
.filter-option[data-filtro="transferencia"] { color: #aaa; }
.filter-option[data-filtro="transferencia"].active {
  background: rgba(66,165,245,0.12);
  border-color: rgba(66,165,245,0.35);
  color: #fff;
}

/* Se desplaza — iconos naranja */
.filter-option[data-filtro="desplaza"] i { color: #FF9800; margin-right: -4px; }
.filter-option[data-filtro="desplaza"] { color: #aaa; }
.filter-option[data-filtro="desplaza"].active {
  background: rgba(255,152,0,0.12);
  border-color: rgba(255,152,0,0.35);
  color: #fff;
}

/* Zona grid en el sheet */
.zona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.zona-option {
  padding: 12px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #242424;
  background: #141414;
  color: #888;
  text-align: center;
  transition: all 0.2s;
}
.zona-option:active { transform: scale(0.96); }
.zona-option.active {
  background: rgba(255,230,0,0.12);
  border-color: #ffe600;
  color: #ffe600;
}

.btn-aplicar-filtros {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #ffe600;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}
.btn-aplicar-filtros:active { transform: scale(0.98); }

.btn-limpiar-filtros {
  width: 100%;
  padding: 12px;
  border: 1px solid #242424;
  border-radius: 12px;
  background: transparent;
  color: #888;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

/* ========================================
   BOTÓN "CARGAR MÁS" (paginación UI)
   ======================================== */
.btn-cargar-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  margin: 16px 0 24px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 230, 0, 0.25);
  border-radius: 14px;
  color: #ffe600;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, transform .12s ease, background .18s ease;
}
.btn-cargar-mas:hover {
  border-color: #ffe600;
  background: linear-gradient(135deg, #242424 0%, #141414 100%);
}
.btn-cargar-mas:active { transform: scale(0.98); }
.btn-cargar-mas i { font-size: 15px; }
.btn-cargar-mas .cargar-mas-count {
  color: #888;
  font-weight: 600;
  font-size: 12.5px;
}

/* ========================================
   LOADER DE RESULTADOS (carga inicial + re-filtrado)
   ======================================== */
.filtro-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 10px 16px 6px;
  background: rgba(255, 230, 0, 0.06);
  border: 1px solid rgba(255, 230, 0, 0.22);
  border-radius: 12px;
  color: #ffe600;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.filtro-loader.visible { display: flex; }
.filtro-loader i { font-size: 15px; }

/* Atenuar cards viejas mientras se re-filtra para que el spinner
   sea el foco visual y los clicks no disparen navegación a cards
   que están por reemplazarse. */
.resultados-dim {
  opacity: 0.45;
  transition: opacity .18s ease;
  pointer-events: none;
}
.btn-limpiar-filtros:active { color: #fff; }