/* ===============================
   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;
}

/* MENÚ CUANDO BAJA CON EL SCROLL */
.menu-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  transition: padding 0.3s ease;
  box-shadow: none;
}

body {
  margin: 0;
}


/* ===============================
   CONTENEDOR DEL MENÚ
================================ */

.menu-fijo .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}


/* ===============================
   CONTENEDOR DE LOS BOTONES
================================ */

.menu-fijo .button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}


/* ===============================
   BOTONES DEL MENÚ
================================ */

.menu-fijo .dropbtn {
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  cursor: pointer;
  padding: 12px 16px;
  display: inline-block;
  text-decoration: none !important;
}


/* ===============================
   HOVER DE TODOS LOS BOTONES
================================ */

.menu-fijo .dropbtn:hover {
  color: #ffcc00;
  text-decoration: none !important;
}

.menu-fijo .dropbtn:focus,
.menu-fijo .dropbtn:active {
  text-decoration: none !important;
}


/* ===============================
   ENLACES DEL MENÚ
================================ */

.menu-fijo a {
  text-decoration: none !important;
}

.menu-fijo a:hover,
.menu-fijo a:focus,
.menu-fijo a:active {
  text-decoration: none !important;
}


/* ===============================
   DROPDOWN - ACTIVIDADES
================================ */

.dropdown {
  position: relative;
  display: inline-block;
}


/* ===============================
   CONTENEDOR DEL DROPDOWN
================================ */

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  background-color: #ffffff;

  min-width: 300px;
  max-height: 300px;

  overflow-y: auto;
  overflow-x: hidden;

  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

  border: 1px solid #ccc;

  z-index: 9999;

  box-sizing: border-box;
}


/* ===============================
   ENLACES DEL DROPDOWN
================================ */

.dropdown-content a {
  display: block;

  padding: 10px;

  text-decoration: none !important;

  color: #333;

  font-size: 14px;

  box-sizing: border-box;
}


/* HOVER DEL DROPDOWN */

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #333;
}


/* ===============================
   CAMBIO DE COLOR SOLO AL PASAR
   SOBRE ACTIVIDADES
================================ */

.menu-fijo .dropdown:hover .dropbtn {
  color: #ffcc00;
}


/* ===============================
   MENÚ RESPONSIVE - CELULAR
================================ */

@media (max-width: 768px) {

  /* Barra azul ocupa todo el teléfono */
  .menu-fijo {
    width: 100%;
  }


  /* Contenedor principal */
  .menu-fijo .nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }


  /* Opciones del menú */
  .menu-fijo .button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
  }


  /* Cada opción */
  .menu-fijo .button > .dropbtn,
  .menu-fijo .button > .dropdown {
    flex: 1;
    text-align: center;
  }


  /* Texto de los botones */
  .menu-fijo .dropbtn {
    padding: 10px 4px;
    font-size: 11px;

    white-space: nowrap;

    width: 100%;
    box-sizing: border-box;
  }


  /* ===============================
     DROPDOWN DE ACTIVIDADES
  ================================ */

  .dropdown {
    position: relative;
    display: block;
  }


  /* Menú que aparece al presionar
     ACTIVIDADES */
  .dropdown-content {
    display: none;

    position: absolute;

    top: 100%;

    left: auto;
    right: 0;

    width: 220px;

    min-width: 0;

    max-width: 75vw;

    max-height: 300px;

    overflow-y: auto;
    overflow-x: hidden;

    background-color: #ffffff;

    border: 1px solid #ccc;

    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

    z-index: 9999;

    box-sizing: border-box;
  }


  /* Enlaces de Actividades */
  .dropdown-content a {
    display: block;

    width: 100%;

    padding: 10px;

    text-align: left;

    font-size: 11px;

    color: #333;

    border-bottom: 1px solid #eee;

    box-sizing: border-box;
  }


  /* Hover de actividades */
  .dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #333;
  }

}


/* ===============================
   TELÉFONOS MUY PEQUEÑOS
================================ */

@media (max-width: 400px) {

  .menu-fijo .dropbtn {
    padding: 9px 2px;
    font-size: 10px;
  }

  .dropdown-content {
    width: 210px;
    max-width: 75vw;
  }

  .dropdown-content a {
    font-size: 10px;
    padding: 9px;
  }

}


