.menu-button-container {
  display: none;
}

.menu > li {
  overflow: hidden;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 2px;
  width: 20px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -5px;
}

.menu-button::after {
  content: "";
  margin-top: 5px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0;
  transform: rotate(45deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 1198px) {
  .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
  }

  .contact-container {
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    position: relative;
    margin-top: 8px;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    font-size: 18px;
    color: var(--primary);
    font-weight: 300;
    letter-spacing: 2px;
    transition: all 600ms cubic-bezier(0.77, 0, 0.175, 1);
    cursor: pointer;
    user-select: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo {
    padding: 0;
  }

  header:not(.show)::before {
    background-color: var(--dark2);
    opacity: 0.3;
  }

  header.show::before {
    background-color: var(--secondary);
    backdrop-filter: blur(12px);
    opacity: 0.8;
    height: 380px;
  }

  .menu-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-direction: column;
    margin-left: auto;
    width: 20px;
  }

  .menu {
    display: flex;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 30;
    background-color: transparent;
  }

  .menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked ~ .menu li {
    height: 4em;
    padding: 0.5em 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked ~ .menu li .nav-link {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: color 0.5s ease, transform 0.5s ease;
  }

  .menu > li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 100%;
    color: white;
  }

  .main {
    justify-content: center;
    padding: 0;
  }

  /* .menu li:hover .nav-link {
      color: var(--primary);
      transform: translateY(-2px);
    } */
}

@media (max-width: 510px) {
  .about .about-grid .about-info h2 {
    padding-bottom: 10px;
  }
}

@media (max-width: 680px) {
  .main p {
    text-align: start;
    color: var(--secondary);
    max-width: 600px;
    /* font-size: clamp(0.9rem, 1.5rem, 2rem); */
    font-size: clamp(16px, 1vw + 1rem, 1.5rem);
    text-wrap: wrap;
  }

  /* .about .about-grid .about-info p {} */
}

@media (max-width: 344px) {
  .service .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    min-width: fit-content;
    gap: 20px;
    margin: 0 auto;
  }

  .about .about-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    min-width: fit-content;
    gap: 20px;
    margin: 0 auto;
  }
}

/* Animaciones */

@keyframes Aparecer {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes AparecerNav {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

@keyframes Expand {
  from {
    width: 5%;
  }

  to {
    width: 100%;
  }
}

@keyframes UnExpand {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}
