/* Contenedor del formulario de búsqueda */
.buscador-container, .buscador-container-mobile {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto; /* Esto centra el buscador horizontalmente */
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

/* Para asegurar que el contenedor del buscador esté centrado en la navbar */
.buscador-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 15px;
}

.buscador-container-mobile {
  margin-bottom: 10px;
}

.buscador-container:has(input:focus), 
.buscador-container-mobile:has(input:focus) {
  box-shadow: 0 8px 28px rgba(82, 87, 251, 0.15);
}

/* Campo input */
#buscador, #buscador-mobile {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 0;
  outline: none;
  color: #333;
  background-color: transparent;
}

/* Botón de búsqueda */
.header-search-form button {
  background: linear-gradient(135deg, #5257fb 0%, #25d366 100%);
  border: none;
  color: #fff;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.header-search-form button:hover {
  background: linear-gradient(135deg, #25d366 0%, #5257fb 100%);
  transform: scale(1.02);
}

/* Verificación adicional

También es importante asegurarse de que el contenedor de sugerencias tenga suficiente espacio y visibilidad para mostrar el mensaje:

/* Estilos para el contenedor de sugerencias */
.suggestions-box {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #eee;
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Estilos para dispositivos móviles */
@media (max-width: 992px) {
    .suggestions-box {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      max-width: 100%;
      width: 100%;
      border-radius: 12px;
      max-height: 60vh;
      z-index: 1050;
    }
    
    /* Ajuste para el buscador móvil */
    .buscador-container-mobile {
      max-width: 100%;
    }
    
    /* Ajuste para el botón de búsqueda en móvil */
    .header-search-form button {
      padding: 12px 18px;
      font-size: 0.9rem;
    }
}

.suggestion-section-title {
  font-weight: bold;
  font-size: 14px;
  padding: 8px 16px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: #f9f9f9;
}

.suggestion-image {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

/* Estilo para el mensaje de búsqueda sin resultados */
.no-results-message {
  padding: 25px;
  text-align: center;
  color: #666;
  font-size: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.no-results-message i {
  display: block;
  font-size: 32px;
  margin-bottom: 15px;
  color: #5257fb;
}

.no-results-message strong {
  color: #5257fb;
  font-weight: bold;
}

.no-results-message p {
  margin: 8px 0;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
}

.suggestion-name {
  font-weight: 600;
  font-size: 15px;
  color: #222;
}

.suggestion-category {
  font-size: 12px;
  color: #666;
}
