#logoAR * { transition: transform .3s; }
#logoAR .n { transform-origin: center; }
.logo .circle-black { transform: scale(0); transform-origin: center; }
.logo:hover #logoAR .n { transform: scale(1); }
.logo:hover #logoAR .bg-black { opacity: 0; transition: opacity .2s; }
.logo:hover #logoAR .blue { fill: #3dbfef; }
.logo:hover #logoAR .white { fill: #fff; }
.logo:hover #logoAR .yellow { fill: #f7ab14; }
.logo #logoAR use {
  opacity:0;
  transition: opacity .2s;
}
.logo:hover #logoAR use {
  opacity:1
}
.logo:hover .circle-black { transform: scale(1); }
#logoAR use:nth-child(2) { transition-delay: .02s; }
#logoAR use:nth-child(3) { transition-delay: .04s; }
#logoAR use:nth-child(4) { transition-delay: .06s; }
#logoAR use:nth-child(5) { transition-delay: .08s; }
#logoAR use:nth-child(6) { transition-delay: .1s; }
#logoAR use:nth-child(7) { transition-delay: .12s; }
#logoAR use:nth-child(8) { transition-delay: .14s; }
#logoAR use:nth-child(9) { transition-delay: .16s; }
#logoAR use:nth-child(10) { transition-delay: .18s; }

.top-nav {
  padding-block-start: .5rem;
  position: relative;
  left: 1.5vw;
  transition: background-color ease .2s, width ease .3s;
  z-index: 5;
}
.top-nav.fixed, .index-page .top-nav.fixed {
  background-color: transparent;
  padding-block: 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
}
.logo {
  position: relative;
  width: 150px;
  z-index: 9;
}

.top-nav {
  align-items: center;
  display: flex;
  width: calc(100% - 3vw);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
}
.site-nav li { align-self: center; color: white; margin: .5rem; }
#menu-toggle .site-nav a {
  color: white;
  font-family: var(--title-font);
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: -.02em;
  line-height: 1;
  text-decoration: none;
}
#menu-toggle .site-nav li.site-link a:focus { color: var(--nerd-blue); }
#menu-toggle .site-nav li.site-link a.active { color: var(--nerd-blue); }
#menu-toggle {
  background: black;
  padding: .6rem .6rem .1rem;
  border-radius: 4px;
  position: fixed;
  right: 20px;
  top: 45px;
  height: 47px;
  width: 53px;
}

#menu-toggle:hover,#menu-toggle:focus { color: var(--nerd-yellow); }

#menu-toggle input {
  cursor: pointer;
  display: block;
  opacity: 0;
  position: fixed;
  right: 18px;
  top: 40px;
  height: 50px;
  width: 50px;
  z-index: 9
}

#menu-toggle span {
  background: var(--nerd-gray);
  border-radius: .3em;
  display: block;
  margin-block-end: .5rem;
  position: relative;
  transition: transform .5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity .5s ease;
  height: 4px;
  width: 34px;
  z-index: 8
}
#menu-toggle ul {
  background-color: black;
  display: flex;
  flex-direction: column;
  margin:0;
  max-height: max-content;
  position: fixed;
  left: 0;
  top: 0;
  padding: 2rem;
  transform: translate(0, -200%);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  text-align: center;
  width: 100%;
  z-index: 7
}
#menu-toggle input:checked ~ ul { transform: none }
#menu-toggle input:checked ~ span {
  transform: rotate(45deg);
  position: fixed;
  right: 30px;
  top: 70px;
}
#menu-toggle input:checked ~ span:nth-child(2) { transform: rotate(-45deg) }
#menu-toggle input:checked ~ span:nth-child(3) {
  opacity: 0;
  transform: scale(0.2, 0.2)
}

.index-page .top-nav { position: absolute; }
.top-nav.fixed .site-nav li { color: white; padding-block: .5rem 0;}
.site-nav .language { display: inline-flex; gap: .5rem; }

#logoAR {
  position: absolute;
}
.top-nav #menu-toggle .site-nav li.btn-registro a.btn{ 
  color: black;
  font-size: 1.4rem;
  padding: .2rem .6rem;
  pointer-events: all;
  width: fit-content; 
}

@media screen and (min-width: 56.25em) {
  .top-nav .site-nav li.btn-registro .btn {
    color: black;
    opacity: 0;
    pointer-events: none;
    transition: opacity ease .2s;
  }
  .top-nav .site-nav li.btn-registro { opacity: 0; width: 0; }
  .top-nav.top-nav.fixed .site-nav li.btn-registro { opacity: 1; width: fit-content; }

  .top-nav.fixed li.btn-registro .btn {
    opacity: 1;
    pointer-events: all;
  }
  #logoAR {
    top: -52px;
  }
  .top-nav.fixed .logo #logoAR {
    position: absolute;
    top: -30px;
  }
  .top-nav.fixed .logo:hover .years text, .top-nav.fixed .logo:focus .years text {
    transform: translate(74px, 80px);
  }
  .top-nav.fixed .logo:hover .years .year2, .top-nav.fixed .logo:focus .years .year2 {
    transform: translate(284px, 80px);
  }
  .top-nav.fixed, .index-page .top-nav.fixed {
    background-color: rgba(0, 0, 0, 0.8);
  }
  #menu-toggle {
    background: transparent;
    padding: 0;
    border-radius: 0;
    position: fixed;
    top: 60px;
    position: initial;
    height: initial;
		width: 100%;
  }
  #menu-toggle input,#menu-toggle span { display: none }
  .top-nav.fixed #menu-toggle ul { justify-content: flex-start; min-height: 0; }
  .site-nav li { margin-block: 0 .5rem; }
  .site-nav .language { margin-inline-start: auto;}
  .top-nav.fixed #menu-toggle .site-nav li:last-child { display: none; }
  .index-page .site-nav li { color: black; }

  #menu-toggle ul {
      background-color: transparent;
      flex-direction: row;
      justify-content: space-between;
      min-height: 115px;
      padding: 0;
      position: relative;
      transform: none;
  }
  .top-nav.top-nav.fixed .site-nav li.btn-registro { margin-inline: auto 2rem; }
  .index-page #menu-toggle .site-nav .site-link a { 
    color: black; 
    background: linear-gradient(90deg, 
    var(--nerd-green) 0%, 
    var(--nerd-green) 33.33%, 
    var(--nerd-red) 33.33%, 
    var(--nerd-red) 66.66%, 
    var(--nerd-black) 66.66%, 
    var(--nerd-black) 100%);
    background-position: 100% 0;
    background-size: 300%;
    transition: background-position .3s ease-in-out;
  }
  #menu-toggle .site-nav .site-link a, .top-nav.fixed #menu-toggle .site-nav .site-link a { 
    color: white;
    background: linear-gradient(90deg, 
    var(--nerd-green) 0%, 
    var(--nerd-green) 33.33%, 
    var(--nerd-red) 33.33%, 
    var(--nerd-red) 66.66%, 
    #FFF 66.66%, 
    #FFF 100%);
    background-position: 100% 0;
    background-size: 300%;
    transition: background-position .3s ease-in-out;
  }
  @supports ((background-clip: text) and (-webkit-background-clip: text)) {
    .index-page #menu-toggle .site-nav .site-link a, #menu-toggle .site-nav .site-link a, .top-nav.fixed #menu-toggle .site-nav .site-link a { 
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }
  }
  #menu-toggle .site-nav .site-link a:hover, .top-nav.fixed #menu-toggle .site-nav .site-link a:hover {
    background-position: 0 0;
  }
  .index-page .top-nav.fixed #menu-toggle .site-nav li .btn { color: black;}
  .top-nav.fixed #menu-toggle .site-nav li.site-link a.active {
    color: var(--nerd-blue);
  }
}

