/* === NAVBAR === */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  position: relative;
  top: 0;
  z-index: 1000;
  gap: 15px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #0d47a1;
  /* background-color: brown; */
}
.navLinkLogo{
  color: #0d47a1;
  text-decoration: none;
}

.navbar-logo img {
  height: 40px;
}

/* Categorías + Megamenú */
.dropdown-wrapper {
  position: relative;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  /* background-color: aqua; */
}



.navbar-links li {
  position: relative;
}

.navbar-links li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.navbar-links li:hover > a {
  color: #0d47a1;
}

/* Mostrar menú al hacer hover en el wrapper */
.dropdown {
  position: relative;
}

/* Ocupa todo el ancho visible de la ventana */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffff;
  border-top: 2px solid #0d47a1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  justify-content: start;
  gap:3rem;
  padding: 2rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}



.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}


.dropdown-column {
  width: 270px;
  /* background-color: yellow; */
}

.dropdown-column h4 {
  margin-bottom: 0.5rem;
  color: #0d47a1;
  font-size: 1rem;
}

.dropdown-column a {
  display: block;
  text-decoration: none;
  color: #333;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  text-align: justify;
}

.dropdown-column a:hover {
  color: #0d47a1;
}

/* === SEARCH === */
.navbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* background-color: greenyellow; */
  width: 100%;
  
}

.navbar-search input[type="text"] {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.95rem;
  width: 100%;
}

.navbar-search button {
  background-color: #0d47a1;
  border: none;
  color: white;
  padding: 0.45rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
}

.navbar-search button i {
  font-size: 0.95rem;
}

/* === AUTH === */
.navbar-auth {
  display: flex;
  gap: 1rem;
  
}

.navbar-auth a {
  text-decoration: none;
  font-weight: bold;
  color: #0d47a1;
}
.user-name {
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}
.user-dropdown {
  position: relative;
  display: inline-block;
  /* background-color: yellow; */
 
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #0d47a1;
  font-weight: bold;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* === Menu de Usuario === */
.user-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background-color: #111;
    border: 1px solid #0d47a1;
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 250px;
    z-index: 1001;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 15px;
}

.avatar-in-menu img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    color: white;
}



.user-email {
    font-size: 0.9rem;
    color: #bbb;
}

hr {
    margin: 0.4rem 0;
    border: none;
    border-top: 1px solid #444;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s;
    font-size: 1rem;
}

.user-menu a:hover {
    background-color: #0d47a1;
}

.user-menu i {
    color: #fff;
    width: 20px;
    text-align: center;
}

/* Ajuste en el tamaño de los íconos */
.user-menu a i {
    font-size: 18px;
}

.navbar-notifications {
  position: relative;

}
.navbar-notifications button {
  background: #0d47a1;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  position: relative;
  cursor: pointer;
}
.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 50%;
}


.navtop{
  /* background-color: orange; */
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 15px;
}