body {
    width: 100%;
    height: 100vh;
    font-family: "Be Vietnam Pro", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #EFEAF1;
    background-repeat: repeat-x;
    background-size: cover;
    background-position: top; 
    margin: 0;
    padding: 0;
    
  }
  
/* Estilos base de la navegación */
.nav-container {
  width: 100%;
  background-image: linear-gradient(to left, #ecbcff, #d89efd, #be82fd, #9e67fd, #724fff);
  position: relative;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

li {
  display: flex;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 16px 10px;
  text-decoration: none;
  font-size: medium;
  position: relative;
  overflow: hidden;
}

/* Efecto de subrayado */
li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 6px;
  background-color: #FFC8C8;
  transition: width 0.3s ease;
}

li a:hover::after {
  width: 100%;
}

/* Estilos específicos */
.active::after {
  display: none;
}

.active {
  font-family: "Arima", system-ui;
  font-style: normal;
  font-size: x-large;
  letter-spacing: 3px;
  padding: 7.5px 40px;
}

.active:hover {
  color: #FFC8C8;
  transition: color 0.5s;
}

.logout {
  margin-left: auto;
}

/* Hamburger menu */
.hamburger {
  display: none;
  color: white;
  font-size: 1.5rem;
  padding: 14px 16px;
  text-decoration: none;
  position: absolute;
  right: 0;
  top: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  ul {
      flex-direction: column;
      align-items: stretch;
  }
  
  #myLinks li:not(:first-child) {
      display: none;
  }
  
  #myLinks.show li {
      display: flex;
  }
  
  .hamburger {
      display: block;
      padding: 12px 10px;
  }
  
  .logout {
      margin-left: 0;
  }
  
  .active {
      font-size: larger;
      padding: 10px 20px;
  }
  
  li a {
      padding: 12px 10px;
  }
  
  .brand {
      padding-right: 50px; /* Espacio para el botón hamburguesa */
  }
}
  
  
  @keyframes appearAnimation {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

/* Estilos responsive */
@media (max-width: 768px) {
    .container-wrapper {
        flex-direction: column; /* Apila los elementos en pantallas pequeñas */
    }

    h1 {
        font-size: 40px; /* Reduce el tamaño del título en pantallas pequeñas */
    }
    h3{
        margin: 2%;
    }
    .encabezado{
        gap: 0em;
    }
    .encabezado-arriba{
        gap: 0.1em;
    }
    .container-wrapper {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .encabezado-abajo h3{
        min-width: 0px;
        margin: 2%;
    }
}
  


@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
        /*margin: 15px 0;*/
    }

    .micromotor-sub {
        flex-direction: column;
    }

    .encabezado-abajo{
        min-width: none;
        max-width: 100%; 
    }
}
