/* ===== RESET BÁSICO ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Menú Superior con Efecto Glass ===== */
.menu-bar {
  position: fixed;     
  top: 5px;
  left: 10px;
  width: calc(100% - 20px);
  height: 60px;
  background: rgba(255, 255, 255, 0.3);  
  backdrop-filter: blur(10px);           
  -webkit-backdrop-filter: blur(10px);    
  isolation: isolate;                    
  z-index: 1000;                         
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 0px;
  color: #333;
  border-radius: 15px;
  font-family: 'Helvetica', sans-serif;  /* Se fuerza el uso de Helvetica */
}

@media (min-width: 1024px) {
  .menu-bar {
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
  }
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
}

.menu-left button,
.menu-right button {
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  margin-right: 15px;
  cursor: pointer;
}

.menu-center {
  flex: 1;
  margin: 0 0px;
  /* En móvil se usará todo el ancho, pero en escritorio se ajustará en el media query */
}

/* ===== BUSCADOR ===== */
.input-container {
  position: relative;
  /* Fondo, borde y blur se definirán en el media query para escritorio */
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #888;
  pointer-events: none;
}

/* ===== MENÚ LATERAL ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  z-index: 1001;
  padding-top: 60px;
  font-family: 'Helvetica', sans-serif;  /* Se fuerza el uso de Helvetica */

}

.side-menu.active {
  left: 0;
}

.side-menu ul {
  list-style: none;
}

.side-menu ul li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}

.side-menu ul li a i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #4e54c8;
}

.side-menu ul li a:hover {
  background: #f5f5f5;
}

/* ===== MENÚ DESPLEGABLE DEL USUARIO ===== */
.user-dropdown {
  position: absolute;
  top: calc(100% + 5px);  /* Justo debajo del contenedor de usuario */
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1002;
  display: none;  /* Se muestra al agregar la clase 'active' */
  min-width: 150px; /* Ajusta el ancho mínimo según necesites */
  padding: 5px 0;
}

.user-dropdown.active {
  display: block;
}

.user-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-dropdown ul li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.user-dropdown ul li a:hover {
  background: #f5f5f5;
}

/* ===== RESULTADOS DEL BUSCADOR ===== */
.search-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-result-item:hover {
  background: #f5f5f5;
}

.search-result-item img {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.search-result-item span {
  font-size: 0.9rem;
  color: #333;
}


/* ===== MEDIA QUERY PARA ESCRITORIO ===== */
@media (min-width: 1024px) {
  .menu-center {
    width: 70%;
    margin: 0 auto;
  }
  
  .input-container {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 5px 10px;
  }
}

