/* ===============================
   MENÚ FIJO AL HACER SCROLL
================================ */

.navbar {
  position: relative;
  width: 100%;
  z-index: 999;
}


.menu-fijo {
  width: 100%;
  background-color: #082a5e;
  position: relative;
  z-index: 1000;
}

/* cuando baja */
.menu-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  transition: padding 0.3s ease;
  box-shadow: none; /* quitamos la sombra */
}

body {
  margin: 0;
}



/* CONTENEDOR DEL MENÚ AZUL */
.menu-fijo .nav {
  display: flex;
  justify-content: center;   /* centra horizontalmente */
  align-items: center;       /* centra verticalmente */
}

/* CONTENEDOR DE LOS BOTONES */
.menu-fijo .button {
  display: flex;
  justify-content: center;   /* centra los items */
  align-items: center;
  gap: 0px;                 /* espacio entre opciones */
}



.menu-fixed {
  padding: 0px 0;
  transition: padding 0.3s ease;
}

/* ===============================
   MENÚ RESPONSIVE - CELULAR
================================ */
@media (max-width: 768px) {

  .menu-fijo .nav {
    justify-content: space-around;
  }

  .dropdown {
    position: static;
  }

  .dropdown-content {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    z-index: 2000;
  }

  .dropdown-content a {
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
  }

}



/* AL PASAR EL MOUSE */
.menu-fijo .dropdown:hover .dropbtn {
  color: #ffcc00;
}




/* Quitar subrayado de enlaces del menú */
.menu-fijo a {
  text-decoration: none !important;
}

/* Evitar línea al hover y focus */
.menu-fijo a:hover,
.menu-fijo a:focus,
.menu-fijo a:active {
  text-decoration: none !important;
}


/* BOTONES DEL MENÚ */
.menu-fijo .dropbtn {
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  cursor: pointer;
  padding: 12px 16px;
  display: inline-block;
}

/* CAMBIO DE COLOR PARA TODOS LOS ITEMS DEL MENÚ */
.menu-fijo .dropbtn:hover {
  color: #ffcc00;
}





.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}


.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 300px;
  z-index: 9999;
  border: 1px solid #ccc;
}
