:root {
  --red: #D31900;
  --redL: #D93B26;
}

.apertura {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.apertura img {
  max-height: 60vh;
}

.apertura h1 {
  font-size: 12px;
  line-height: 23px;
  letter-spacing: 0;
  font-family: MajritTx,serif;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  max-width: 222px;
  margin: 0 auto 35px;
  padding-bottom: 6px;
  position: relative;
  filter: blur(2px);
  opacity: 0;
  visibility: visible;
  animation: desenfoque 3s forwards 0.5s, opacidad 1s forwards 0.5s;
}

.apertura h1 strong {
  display: block;
  font-size: 50px;
  line-height: 50px;
  letter-spacing: -2.5px;
  font-weight: 900;
  margin-top: -5px;
}

.apertura h1:after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: black;
  position: absolute;
  bottom: 0;
  left: 0;
  animation: width 1s forwards 1s;
}

.apertura h1:before {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: black;
  position: absolute;
  bottom: 0;
  left: 0;
  animation: width45 1s forwards 2s;
}

.apertura div {
  text-align: center;
}

.apertura .bajar {
  display: inline-block;
  margin: 0 auto auto;
  opacity: 0;
  visibility: visible;
  animation: bajar 3s infinite 2s, opacidad 1s forwards 2s;
}

.apertura .bajar span {
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  width: 15px;
  height: 15px;
  border-top: 1px solid black;
  border-right: 1px solid black;
  transform: rotate(135deg);
}

.apertura .credito {
  font-family: MarcinAntB,sans-serif;
  font-size: 10px;
  line-height: 10px;
  color: black;
  display: inline-block;
  margin: 0 auto;
  transform: translateY(-15px);
  opacity: 0;
  visibility: visible;
  animation: opacidad 1s forwards 2s;
}

.a .a_c > h1 {
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.68px;
  text-align: center;
  text-transform: uppercase;
  padding-bottom: 0;
  margin-top: 70px;
  margin-bottom: 5px;
}

.a .a_c > h1:after {
  content: none;
  display: none;
}

.a .a_c > h2 {
  font-size: 19px;
  line-height: 22px;
  letter-spacing: -0.38px;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  max-width: 245px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  padding-bottom: 17px;
}

.a .a_c > h2:after {
  background: var(--red);
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 48px;
}

.a .a_c > h3 {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.06px;
  text-align: center;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 45px;
}

.a .a_c > h3:after {
  content: none;
  display: none;
}

.menu {
  text-align: center;
  position: relative;
}

.menu > span {
  display: none;
}

.menu > a {
  display: block;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.06px;
  font-family: MajritTx,serif;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--redL);
  display: block;
  padding: 15px 50px 15px 10px;
  position: relative;
}

.menu > a:after {
  content: '';
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  width: 10px;
  height: 10px;
  border-top: 1px solid black;
  border-right: 1px solid black;
  transform: rotate(135deg);
  position: absolute;
  right: 10px;
  top: 13px;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 1s;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  background: white;
  z-index: 10;
}

.menu.active ul {
  max-height: 500px;
}

.menu ul li {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.07px;
  font-family: MajritTx,serif;
  font-weight: 900;
  text-align: left;
  margin-bottom: 6px;
}

.menu ul li:nth-of-type(1) {
  margin-top: 20px;
}

.menu ul li:last-child {
  margin-bottom: 18px;
}

.menu ul:after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background: var(--redL);
}

.menu ul li a {
  color: black;
  display: block;
  padding: 6px 10px;
  text-decoration: none;
}

.boton-subir {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: black;
  border-radius: 100%;
  border: none;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  opacity: 0;
  visibility: hidden;
  transition: 0.75s all;
  z-index: 155;
  text-transform: uppercase;
  font-size: 9.5px;
  font-family: 'Marcin Ant B';
  font-weight: normal;
  color: #ffffff;
}

.boton-subir.activo {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px){
  
  .a .a_e_txt {
    position: relative;
  }
  
  .a .a_e_txt:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--red);
    position: absolute;
    bottom: 0;
    left: 0;
  }
  
  .a .a_c > .a_m .a_m_p {
    border-bottom-color: var(--redL);
  }
  
}

@media (min-width: 1001px){
  
  .apertura {
    flex-direction: row;
  }
  
  .apertura img {
    max-width: 645px;
    max-height: 90vh;
  }
  
  .apertura h1 {
    font-size: 26px;
    line-height: 34px;
    text-align: left;
    max-width: 490px;
    margin-bottom: 40px;
    padding-bottom: 26px;
  }

  .apertura h1 strong {
    font-size: 110px;
    line-height: 80px;
    letter-spacing: -5.13px;
    font-weight: 900;
    margin-top: 5px;
  }
  
  .apertura h1 span {
    margin-left: 35px;
  }

  .apertura h1:before {
    animation: width90 1s forwards 2s;
  }
  
  .apertura .credito {
    transform: translateY(-30px);
  }
  
  .a .a_c > h1 {
    font-size: 50px;
    line-height: 60px;
    letter-spacing: -1px;
    margin-top: 110px;
    margin-bottom: 3px;
  } 
  
  .a .a_c > h2 {
    font-size: 22px;
    line-height: 24px;
    letter-spacing: 0;
    max-width: 300px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  
  .a .a_c > h3 {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.07px;
  }
  
  .menu {
    max-width: 624px;
    margin: 0 auto;
  }
  
  .menu > a {
    display: none;
  }
  
  .menu > span {
    display: block;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -0.06px;
    font-family: MajritTx,serif;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 4px solid var(--red);
    display: inline-block;
    padding: 6px 8px;
  }
  
  .menu ul {
    border-top: 1px solid var(--red);
    border-bottom: 1px solid var(--red);
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    background: transparent;
  }
  
  .menu ul:after {
    content: none;
    display: none;
  }
  
  .menu ul li,
  .menu ul li:nth-of-type(1),
  .menu ul li:last-child {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.08px;
    margin: 0;
    padding: 28px 0;
  }
  
  .menu ul li a {
    padding: 0;
  }
  
}

@keyframes bajar {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-0.5rem);
  }
  50% {
    transform: translateY(0rem);
  }
  75% {
    transform: translateY(-0.25rem);
  } 
}

@keyframes desenfoque {
  100% {
    filter: blur(0);
  }
}

@keyframes opacidad {
  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes width {
  100% {
    width: 100%;
  }
}

@keyframes width45 {
  100% {
    width: 45px;
  }
}

@keyframes width90 {
  100% {
    width: 90px;
  }
}
