/* ============================================
   FIX DEFINITIVO - AISLAR EL BUSCADOR
   Especificidad máxima para evitar conflictos
============================================ */

/* CONTENEDOR PRINCIPAL - AISLADO */
section#buscador-remapping {
  all: initial !important;
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100vw !important;
  padding: 2rem 1rem !important;
  margin: 2rem 0 !important;
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%) !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #ffffff !important;
}

section#buscador-remapping::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* WRAPPER */
section#buscador-remapping .buscador-wrap {
  display: block !important;
  position: relative !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 0.5rem !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
}

/* ============================================
   HEADER - FORZAR COMO DIV NORMAL
============================================ */
section#buscador-remapping .buscador-header {
  /* RESETEAR TODO */
  all: unset !important;
  
  /* FORZAR DISPLAY BLOCK */
  display: block !important;
  
  /* POSICIONAMIENTO ESTÁTICO (NO FLOTANTE) */
  position: static !important;
  float: none !important;
  clear: both !important;
  
  /* ANCHO Y ESPACIADO */
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 0.5rem !important;
  
  /* BOX MODEL */
  box-sizing: border-box !important;
  
  /* ALINEACIÓN */
  text-align: center !important;
  
  /* SIN TRANSFORMACIONES */
  transform: none !important;
  translate: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  
  /* Z-INDEX BAJO */
  z-index: 1 !important;
  
  /* SIN ESTILOS DEL HEADER GLOBAL */
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

section#buscador-remapping .buscador-title {
  /* RESETEAR TODO */
  all: unset !important;
  
  /* DISPLAY */
  display: block !important;
  
  /* TIPOGRAFÍA */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
  
  /* ESPACIADO */
  width: 100% !important;
  margin: 0 0 0.75rem 0 !important;
  padding: 0 !important;
  
  /* POSICIONAMIENTO */
  position: static !important;
  float: none !important;
  clear: both !important;
  
  /* TEXTO */
  text-align: center !important;
  word-wrap: break-word !important;
  white-space: normal !important;
  
  /* SIN TRANSFORMACIONES */
  transform: none !important;
  top: auto !important;
  
  /* BOX MODEL */
  box-sizing: border-box !important;
}

section#buscador-remapping .buscador-title::after {
  content: '';
  display: block !important;
  width: 50px !important;
  height: 2px !important;
  background: linear-gradient(90deg, #0066FF, #00D9FF) !important;
  margin: 0.5rem auto 0 auto !important;
}

section#buscador-remapping .buscador-subtitle {
  /* RESETEAR TODO */
  all: unset !important;
  
  /* DISPLAY */
  display: block !important;
  
  /* TIPOGRAFÍA */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #b0b0b0 !important;
  
  /* ESPACIADO */
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  
  /* POSICIONAMIENTO */
  position: static !important;
  float: none !important;
  
  /* TEXTO */
  text-align: center !important;
  word-wrap: break-word !important;
  white-space: normal !important;
  
  /* BOX MODEL */
  box-sizing: border-box !important;
}

/* ============================================
   PANEL DE FILTROS
============================================ */
section#buscador-remapping .filters-panel {
  display: block !important;
  position: relative !important;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95)) !important;
  border: 1px solid rgba(0, 102, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin: 0 0 1.5rem 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

section#buscador-remapping .filters-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0066FF, transparent);
}

section#buscador-remapping .filters-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

section#buscador-remapping .filter-item {
  display: block !important;
  width: 100% !important;
}

section#buscador-remapping .filter-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #00D9FF !important;
  text-transform: uppercase !important;
  margin: 0 0 0.4rem 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

section#buscador-remapping .filter-icon {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

section#buscador-remapping .filter-select {
  display: block !important;
  width: 100% !important;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem !important;
  font-size: 0.85rem !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2300D9FF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  border: 1px solid rgba(0, 102, 255, 0.3) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
}

section#buscador-remapping .filter-select:focus {
  outline: none !important;
  border-color: #0066FF !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
}

section#buscador-remapping .filter-select:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

section#buscador-remapping .filter-select option {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

section#buscador-remapping .filters-actions {
  display: flex !important;
  justify-content: center !important;
  margin: 1rem 0 0 0 !important;
}

section#buscador-remapping .btn-reset {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(0, 102, 255, 0.3) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

section#buscador-remapping .btn-reset:hover {
  background: rgba(0, 102, 255, 0.1) !important;
  border-color: #0066FF !important;
}

section#buscador-remapping .btn-reset svg {
  width: 14px !important;
  height: 14px !important;
}

/* ============================================
   RESULTADOS
============================================ */
section#buscador-remapping #results-container {
  display: block !important;
  position: relative !important;
  margin: 1.5rem 0 0 0 !important;
  width: 100% !important;
}

section#buscador-remapping .results-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

section#buscador-remapping .stage-card {
  display: block !important;
  position: relative !important;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95)) !important;
  border: 1px solid rgba(0, 102, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  box-sizing: border-box !important;
}

section#buscador-remapping .stage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066FF, #00D9FF);
}

section#buscador-remapping .stage-card h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #00D9FF !important;
  margin: 0 0 1rem 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

section#buscador-remapping .stage-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

section#buscador-remapping .stage-info-item {
  display: flex !important;
  justify-content: space-between !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  font-size: 0.85rem !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

section#buscador-remapping .stage-info-item:last-child {
  border-bottom: none !important;
}

section#buscador-remapping .stage-info-label {
  color: #b0b0b0 !important;
}

section#buscador-remapping .stage-info-value {
  color: #ffffff !important;
  font-weight: 700 !important;
}

section#buscador-remapping .no-results {
  text-align: center !important;
  padding: 2rem 1rem !important;
  color: #b0b0b0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ============================================
   TABLET (768px+)
============================================ */
@media (min-width: 768px) {
  section#buscador-remapping {
    padding: 3rem 1.5rem !important;
  }

  section#buscador-remapping .buscador-header {
    margin-bottom: 2rem !important;
  }

  section#buscador-remapping .buscador-title {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }

  section#buscador-remapping .buscador-subtitle {
    font-size: 1rem !important;
  }

  section#buscador-remapping .filters-panel {
    padding: 1.5rem !important;
  }

  section#buscador-remapping .filters-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  section#buscador-remapping .results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================
   DESKTOP (1024px+)
============================================ */
@media (min-width: 1024px) {
  section#buscador-remapping {
    padding: 4rem 2rem !important;
  }

  section#buscador-remapping .buscador-title {
    font-size: 2.5rem !important;
  }

  section#buscador-remapping .buscador-subtitle {
    font-size: 1.1rem !important;
  }

  section#buscador-remapping .filters-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
  }

  section#buscador-remapping .results-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================================
   PANTALLAS GRANDES (1440px+)
============================================ */
@media (min-width: 1440px) {
  section#buscador-remapping .results-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}