/* ── BUSCADOR PREMIUM ────────────────────────────────── */
.nav-search-container { margin-left: auto; margin-right: 1.5rem; display: flex; align-items: center; }
.search-trigger { cursor: pointer; font-size: 1.3rem; padding: 0.5rem; transition: transform 0.2s; color: var(--text); }
.search-trigger:hover { transform: scale(1.1); color: var(--red); }

.search-modal { 
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
  background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(8px); 
  z-index: 2000; padding: 2rem; align-items: flex-start; justify-content: center;
}
.search-modal.active { display: flex; animation: fadeIn 0.3s ease; }

.search-inner { 
  width: 100%; max-width: 600px; background: #fff; border-radius: 20px; 
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 1.5rem; overflow: hidden; margin-top: 10vh;
}

.search-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.search-modal input { 
  flex: 1; border: none; font-family: inherit; font-size: 1.2rem; outline: none; 
  color: var(--text); background: var(--bg-alt); padding: 1rem 1.5rem; border-radius: 12px;
}
.search-close { cursor: pointer; font-size: 1.5rem; color: var(--text-muted); padding: 0.5rem; transition: 0.2s; }
.search-close:hover { color: var(--red); transform: rotate(90deg); }

#search-results { margin-top: 1rem; max-height: 60vh; overflow-y: auto; }
.search-result-item { 
  display: block; padding: 1.2rem; border-radius: 12px; text-decoration: none; 
  color: var(--text); margin-bottom: 0.5rem; transition: all 0.2s; border-left: 4px solid transparent;
}
.search-result-item:hover { background: var(--bg-alt); border-left-color: var(--red); transform: translateX(5px); }
.res-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.res-cat { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; font-weight: 500; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .nav-search-container { margin-right: 0.5rem; }
  .search-modal { padding: 1rem; }
  .search-inner { margin-top: 2vh; }
  .search-modal input { font-size: 1rem; padding: 0.8rem 1rem; }
}
