/* ================================
   NAVBAR GLOBAL
================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ================================
   LOGO
================================= */

.navbar-logo img {
  height: 40px;
}

/* ================================
   MENU DESKTOP
================================= */

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar-menu li a:hover {
  color: #004e92;
}

/* ================================
   HAMBURGER ICON
================================= */

.menu-icon {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Hide checkbox input */
#menu-toggle {
  display: none;
}

/* ================================
   RESPONSIVE MENU (Mobile)
================================= */

@media (max-width: 768px) {
  .navbar-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 20px;
    border-radius: 0 0 5px 5px;
  }

  .navbar-menu li {
    margin-bottom: 15px;
  }

  .menu-icon {
    display: block;
  }

  /* Mostrar menú cuando el checkbox está checked */
  #menu-toggle:checked + .menu-icon + .navbar-menu {
    display: flex;
  }
}
