/* ============ ESTILOS DE BÚSQUEDA ============ */

.search-container {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 25px;
  padding: 5px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  border: 2px solid #e74c3c;
}

.search-container:focus-within {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.02);
}

.search-input {
  border: none !important;
  outline: none !important;
  padding: 8px 10px;
  font-size: 14px;
  width: 250px;
  background: transparent;
  box-shadow: none !important;
}

.search-input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.search-btn {
  background: #ff6b35;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  color: #000000;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.search-btn:hover {
  background: #e74c3c;
}

@media (max-width: 768px) {
  .search-container {
    flex-basis: 100%;
    width: 100%;
  }
}

.search-results {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  max-height: 70vh;
  overflow-y: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: none;
  padding: 20px;
}

.search-results.active {
  display: block;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.search-overlay.active {
  display: block;
}

.search-result-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: #f9f9f9;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  color: #ff6b35;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 18px;
}

.search-result-page {
  color: #999;
  font-size: 12px;
  margin-bottom: 5px;
}

.search-result-content {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.search-result-highlight {
  background: #ffeb3b;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
}

.no-results {
  text-align: center;
  color: #999;
  padding: 30px;
  font-size: 16px;
}

.close-search {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

.close-search:hover {
  color: #333;
}

.search-results-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b35;
  position: relative;
}

.search-results-header h3 {
  color: #ff6b35;
  margin: 0;
  font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .search-container {
    margin: 10px 0;
    width: 100%;
  }
  
  .search-input {
    width: 180px;
  }
  
  .search-results {
    width: 95%;
    top: 60px;
  }
}
