/* 🔄 INDICADORES DE CARGA Y ESTADOS DEL BUSCADOR */

/* OVERLAY DE CARGA PARA NAVEGACIÓN */
.search-navigation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Poppins', 'Roboto', sans-serif;
}

.search-navigation-overlay.active {
  display: flex;
}

.search-overlay-content {
  text-align: center;
  max-width: 400px;
  padding: 40px;
}

.search-overlay-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #f7921e;
  border-radius: 50%;
  animation: search-overlay-spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes search-overlay-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search-overlay-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.search-overlay-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.search-overlay-query {
  font-size: 18px;
  color: #f7921e;
  font-weight: 500;
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid #f7921e;
  display: inline-block;
}

.search-overlay-progress {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}

.search-overlay-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f7921e, #ff6600);
  border-radius: 2px;
  animation: search-progress 2s ease-in-out infinite;
}

@keyframes search-progress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* Estados de error mejorados para resultados */
.error-state {
  background: #fff5f5 !important;
  border-left: 4px solid #dc3545 !important;
}

.error-state .item-title {
  color: #dc3545 !important;
  font-weight: 600;
}

.error-state .item-meta {
  color: #6c757d;
}

/* No results state */
.no-results {
  background: #f8f9fa !important;
  border-left: 4px solid #6c757d !important;
}

.no-results .item-title {
  color: #495057 !important;
  font-weight: 600;
}

.no-results .item-meta {
  color: #6c757d;
}

/* Botón de loading para "Ver más resultados" */
.ver-mas-resultados.loading {
  position: relative;
  color: transparent !important;
}

.ver-mas-resultados.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff40;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
