body {
  font-family: "Tilt Warp", system-ui, sans-serif;
  overflow-x: hidden;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  color: #ffff00;
  animation: cursorBlink 1.2s step-end infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 45%  { opacity: 1; }
  55%, 100% { opacity: 0; }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Torn paper effect on the header nav */
.torn-header {
  position: relative;
  z-index: 50;
}

.main-nav-row {
  min-height: 80px;
}

.brand-logo {
  display: block;
  transform: scale(1.14);
  transform-origin: left center;
}

.torn-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("../images/rip-yellow.svg") repeat-x bottom;
  background-size: 800px 600px;
  filter: drop-shadow(0 4px 0 #ffffff);
  pointer-events: none;
  z-index: 49;
}

.menu-toggle {
  position: relative;
  z-index: 60;
  display: flex;
  width: 52px;
  height: 52px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 2px solid #111111;
  border-radius: 14px;
  background: rgba(255, 255, 0, 0.38);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 24px;
  height: 3px;
  margin: 0 auto;
  background: #111111;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.25s ease;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-height: min(78vh, 640px);
  border-radius: 26px 26px 0 0;
  border-top: 2px solid rgba(255, 255, 0, 0.95);
  background: #070707;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.23, 0.94, 0.32, 1);
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.site-drawer::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 0, 0.75);
}

.site-drawer-content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow-y: auto;
  padding: 34px 22px 30px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 0, 0.55), inset 0 0 30px rgba(255, 255, 0, 0.14);
}

.menu-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #ffff00;
  font-size: clamp(1.2rem, 6vw, 1.55rem);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  opacity: 0.88;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 3px;
  background-color: #ffff00;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-link:hover::after,
.menu-link:focus-visible::after {
  width: calc(100% - 2px);
}

.menu-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 0, 0.2);
  font-size: 18px;
}

.menu-contact-btn {
  position: relative;
  margin-top: 30px;
  width: fit-content;
  border: 2px solid #ffff00;
  background: #111111;
  padding: 0.72rem 1.5rem;
  color: #ffff00;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-radius: 2px 6px 3px 5px/5px 3px 6px 2px;
  transition: opacity 0.2s ease;
}

.menu-contact-btn:hover,
.menu-contact-btn:focus-visible {
  opacity: 0.9;
}

.menu-watermark {
  pointer-events: none;
  position: absolute;
  right: 10px;
  bottom: 10px;
  opacity: 0.12;
  transform: rotate(10deg);
}

.menu-watermark .material-symbols-outlined {
  font-size: 96px;
  color: #ffff00;
}

.nav-open {
  overflow: hidden;
}

.nav-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-open .site-drawer {
  transform: translateY(0);
}

.nav-open .menu-toggle {
  border-color: #111111;
  background: #111111;
  transform: rotate(-2deg) scale(1.03);
}

.nav-open .menu-toggle-line {
  background: #ffff00;
}

.nav-open .menu-toggle-line-top {
  transform: translateY(9px) rotate(45deg);
}

.nav-open .menu-toggle-line-middle {
  opacity: 0;
}

.nav-open .menu-toggle-line-bottom {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 767.98px) {
  .main-nav-row {
    justify-content: center;
  }

  .brand-link {
    margin-inline: auto;
    transform: translateY(4px);
  }

  .menu-toggle {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border-color: rgba(17, 17, 17, 0.95);
    background: rgba(255, 255, 0, 0.94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  }

  .menu-toggle-line {
    width: 25px;
  }

  .site-drawer-content {
    padding-inline: 20px;
  }
}

@media (min-width: 768px) {
  .brand-logo {
    transform: scale(1.2);
  }

  .menu-backdrop,
  .site-drawer {
    display: none !important;
  }
}

.torn-proceso-top {
  position: relative;
  z-index: 1;
}

.torn-proceso-top::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("../images/rip-yellow.svg") repeat-x bottom;
  background-size: 800px 600px;
  transform: scaleY(-1);
  transform-origin: center;
  pointer-events: none;
  z-index: 3;
}

.torn-proceso-top::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  width: 100%;
  height: 50px;
  background: url("../images/rip-white.svg") repeat-x bottom;
  background-size: 800px 600px;
  transform: scaleY(-1);
  transform-origin: center;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

.hand-drawn-underline {
  position: relative;
}

.hand-drawn-underline::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #ffff00;
  border-radius: 2px;
}
