@font-face {
  font-family: 'Montserrat-Regular';
  src: url('../recursos/Montserrat-Regular.ttf') format('opentype');
}

#menu3 {
  position: fixed;
  z-index: 110;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 9vh;
  background-color: white;
  align-items: center;
  padding: 0 20px;
}

#menu3img {
  height: 30%;
  width: 6.5%;
  display: flex;
  align-items: center;
}

#menu3list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  background-color: #ffffff;
  flex-grow: 1;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  font-family: 'Montserrat-Regular';
}

#menu3list .scroll-container li {
  list-style-type: none;
  margin: 0 10px;
  position: relative;
}

#PTA_M3 {
  height: 40px;
  width: auto;
  cursor: pointer;
}

/* Estilos del submenu */
.submenu3 {
  display: none;
  position: fixed;
  background-color: #ffffff;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 120;
}

.menuPagar3:hover .submenu3,
.menuTransparencia3:hover .submenu3 {
  display: block;
}

body {
  margin: 0;
  padding: 0;
}

#hamburger-icon {
  display: none;
  /* Solo mostrar en móviles */
  font-size: 1.5em;
  cursor: pointer;
  margin-left: auto;
}

.m3img {
  height: 50%;
  width: auto;
  margin-left: 20px;
}

@media (max-width: 768px) {
  #menu3 {
    flex-direction: row;
    height: 8%;
    align-items: center;
    justify-content: center;
  }

  #menu3img {
     display: flex;
    width: auto;       /* Deja que el ancho se ajuste al logo */
    height: 40%;       /* Antes estaba en 50%, lo reducimos */
    justify-content: center;
  }

  #menu3img img {
    height: 100%;      /* Ajusta al nuevo alto del contenedor */
    width: auto;       /* Mantiene proporción */
  }

  #hamburger-icon {
    display: block;
  }

  /* Ocultar el menú de opciones en dispositivos móviles */
  #menu3list {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: fixed;
    top: 8vh;
    /* Ajuste debajo del encabezado */
    width: 100%;
    height: auto;
    z-index: 120;
  }

  /* Mostrar el menú cuando esté en modo activo */
  #menu3list.active {
    display: flex;
  }

  .scroll-container {
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    font-family: 'Montserrat-Regular';
  }

  #PTA_M3 {
    height: 30px;
    width: 90%;
    cursor: pointer;
    margin-top: 10px;
  }

  .m3img {
    height: 60%; /* antes estaba 100%, así reducimos tamaño */
    width: auto;
    margin-left: 10px; /* menos margen para móviles */
  }
}

@media (max-width: 480px) {
  #menu3img {
    height: 70%;       /* Más pequeño en móviles muy pequeños */
  }
}

@media (max-width: 480px) {
  .m3img {
    height: 45%; /* más pequeño en pantallas muy pequeñas */
    width: auto;
    margin-left: 5px;
  }
}



@media (max-width: 900px) {
  #PTA_M3 {
    height: 30px;
    width: 90%;
    cursor: pointer;
    margin-top: 10px;
  }
}

/* Orientación vertical para tabletas */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  .m3img {
    height: 20%;
    width: auto;
    margin-left: 0px;
  }

  #PTA_M3 {
    height: 70%;
    width: auto;
    cursor: pointer;
  }
}