/* Estilos de la Navbar */
:root {
    --navbar-height: 70px;
    --navbar-bg: #ffffff;
    --navbar-color: #2c3e50;
    --accent-color: #3498db;
    --hover-color: #2980b9;
  }
  
  .navbar {
    height: var(--navbar-height);
    background: var(--navbar-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .navbar-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navbar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--navbar-color);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .navbar-logo:hover {
    color: var(--accent-color);
  }
  
  .navbar-menu {
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
  }
  
  .nav-link {
    color: var(--navbar-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
  }
  
  .nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
  }
  
  .nav-link:hover:after {
    width: 100%;
  }
  
  .navbar-auth {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  
  .nav-button {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
  }
  
  .nav-button:hover {
    background: var(--hover-color);
  }
  
  .user-menu {
    position: relative;
    display: none; /* Se muestra cuando el usuario está logueado */
  }
  
  .profile-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navbar-color);
    padding: 0.5rem;
  }

  
  
  .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    padding: 0.5rem 0;
  }
  
  .dropdown-menu.active {
    display: block;
  }
  
  .dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--navbar-color);
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .dropdown-item:hover {
    background: #f5f5f5;
  }
  
  .dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
  }
  
  .text-danger {
    color: #e74c3c;
  }
  
  .navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .toggle-bar {
    width: 25px;
    height: 2px;
    background: var(--navbar-color);
    transition: 0.3s;
  }



.profile-pic {
    width: 40px; /* Tamaño de la imagen */
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}




  
  @media (max-width: 768px) {
    .navbar-toggle {
      display: flex;
    }
  
    .navbar-menu {
      position: absolute;
      top: var(--navbar-height);
      left: 0;
      right: 0;
      background: var(--navbar-bg);
      padding: 1rem;
      flex-direction: column;
      gap: 1rem;
      display: none;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
  
    .navbar-menu.active {
      display: flex;
    }
  
    .navbar-auth {
      display: none;
    }
  
    .navbar-auth.active {
      display: flex;
      flex-direction: column;
      padding: 1rem;
      background: var(--navbar-bg);
    }
  }