.main{
  margin-top: 100px;
}
.barra{
    background-color: whitesmoke;
    text-align: center;
    /*align-items: center;*/
    padding: 0 px;
    margin: 0;
    width: 100%;
    position:fixed;
    top: 0;
    left: 0;
    z-index: 1;
}
.logo_barra{
  margin: 0;
  animation:  logo_metsal linear both;
  animation-timeline: scroll();
  animation-range: entry 1% cover 20%;
}
.barra li {
    display: inline-block;
    min-width: 5em;
    margin: 0 0.5em;
  }
 .barra a {
    text-decoration: none;
    display: block;
    font-family:Arial;
    position: relative;
    color: black;
    padding:.5em 0
  }
 .barra a:hover {
    color: #a1da69;
  }
  
 .barra a:hover:before {
    left: 0;
    width: 100%;
  }
 .barra a:before {
    position: absolute;
    width: 0;
    /*height: .5px;*/
    background-color: #a1da69;
    bottom: calc(-1px);
    right: 0;
    transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  }
  .sub-barra{
    position:absolute;
    background-color: whitesmoke;
    text-align: start;
    transition: all;
    animation: mostrar_menu linear both;
    animation-duration: 300ms;
    display: none;
  }
  .sub-barra-borde{
    border-color: #a1da69 !important;
    border-left: 4px;
    border-top:0px;
    border-bottom: 0px;
    border-right: 0px;
    border-style: solid;
  }
  .sub-barra-borde a:hover{
    margin-left: 12px;
  }
  .tarjeta{
    animation: tarjetas linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 25%;
  }
  @keyframes mostrar_menu {
    0% {
        opacity: 0;
        display: none !important;
        }
    100% {
        opacity: 1;
        display: block !important;
    }
  }
  @keyframes tarjetas{
    0% {
      opacity: 0;
      translate: 0 100px;
    }
    100% {
      opacity: 1;
      translate: 0 0;
    }
  }
  @keyframes logo_metsal{
    0%{
      scale: 1;
    }
    100%{
      scale: .6;
    }
  }
  