:root {
  --azt-bg-closed: transparent;
  --azt-bg-open: #183351;
  --azt-text-dark: #183351;
  --azt-text-light: #ffffff;
  --azt-text-accent: #2a4a6b;
  --azt-line-soft: rgba(24, 51, 81, 0.24);
  --azt-line-open: rgba(255, 255, 255, 0.28);
  --azt-note-open: rgba(255, 255, 255, 0.72);
  --azt-ease-main: cubic-bezier(.22, .9, .2, 1);
  --azt-ease-soft: cubic-bezier(.33, 1, .68, 1);
  --azt-ease-italic: cubic-bezier(.2, .8, .2, 1);
  --azt-dur-bg: 900ms;
  --azt-dur-shape: 1100ms;
  --azt-dur-reveal: 1000ms;
  --content-width: 100%;
}

body.azt-menu-open {
  overflow: hidden;
}

.azt-menu-header {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  font-family: "Montserrat", sans-serif;
  background: var(--azt-bg-closed);
  overflow: hidden;
  isolation: isolate;
  transition: background var(--azt-dur-bg) var(--azt-ease-main);
  pointer-events: none;
  z-index: 9999;
}

body.admin-bar .azt-menu-header {
  top: 32px;
  height: calc(100vh - 32px);
}

.azt-menu-header.open {
  background: var(--azt-bg-open);
  pointer-events: auto;
}

.azt-topbar {
  width: fit-content;
  position: absolute;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background: #17354b54;
  border-radius: 2rem;
  z-index: 10;
  color: var(--azt-text-dark);
  transition: color 300ms ease;
  pointer-events: auto;
}

.azt-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
}

.azt-logo svg {
  width: 22px;
  height: 22px;
}

.azt-menu-header.open .azt-topbar {
  color: var(--azt-text-light);
}

.azt-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.azt-toggle {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 0;
}

.azt-toggle,
.azt-toggle:hover,
.azt-toggle:focus,
.azt-toggle:active {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.azt-toggle::before,
.azt-toggle::after,
.azt-toggle span {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 99px;
  transition: transform 500ms var(--azt-ease-main), opacity 280ms ease, background 300ms ease;
}

.azt-menu-header.open .azt-toggle::before,
.azt-menu-header.open .azt-toggle::after,
.azt-menu-header.open .azt-toggle span {
  background: var(--azt-text-light);
}

.azt-toggle::before {
  transform: translateY(-7px);
}

.azt-toggle span {
  transform: translateY(0);
}

.azt-toggle::after {
  transform: translateY(7px);
}

.azt-menu-header.open .azt-toggle::before {
  transform: rotate(45deg);
}

.azt-menu-header.open .azt-toggle span {
  opacity: 0;
  transform: scaleX(.2);
}

.azt-menu-header.open .azt-toggle::after {
  transform: rotate(-45deg);
}

.azt-language-switcher {
  display: inline-flex;
  align-items: center;
  color: #fff;
}

.azt-language-switcher__list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.azt-language-switcher__item {
  display: inline-flex;
}

.azt-language-switcher__link {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: .72;
  transition: opacity 180ms ease, background 180ms ease;
}

.azt-language-switcher__link:hover,
.azt-language-switcher__link:focus-visible,
.azt-language-switcher__link.is-active {
  color: inherit;
  background: rgba(255, 255, 255, .16);
  opacity: 1;
  text-decoration: none;
}

.azt-reveal {
  position: absolute;
  inset: 0;
  background: var(--azt-bg-open);
  z-index: 2;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--azt-dur-reveal) var(--azt-ease-main);
}

.azt-menu-header.open .azt-reveal {
  transform: scaleY(1);
  transform-origin: top;
}

.azt-shape {
  position: absolute;
  pointer-events: none;
  transition: transform var(--azt-dur-shape) var(--azt-ease-main), opacity var(--azt-dur-shape) ease;
  z-index: 4;
}

.azt-wire {
  left: -120px;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50px, -50%) scale(.86);
  opacity: 0;
}

.azt-menu-header.open .azt-wire {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
  transition-delay: 250ms;
}

.azt-wire svg {
  display: block;
  width: 100%;
  height: 100%;
}

.azt-menu-shell {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.azt-menu {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 82px 72px 48px 200px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 520ms ease, transform 900ms var(--azt-ease-soft);
  transition-delay: 0ms;
  pointer-events: none;
}

.azt-menu-header.open .azt-menu {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 380ms;
  pointer-events: auto;
}

.azt-menu-grid {
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 56px;
  align-items: start;
}

.azt-col {
  display: grid;
  gap: 4px;
}

.azt-item {
  display: grid;
  grid-template-columns: 28px max-content 1fr;
  align-items: center;
  gap: 16px;
  color: var(--azt-text-dark);
  font-family: "Playfair Display", serif;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 700ms var(--azt-ease-soft), color 300ms ease;
  transition-delay: var(--item-delay, 470ms);
}

.azt-menu-header.open .azt-item {
  opacity: 1;
  transform: translateY(0);
  color: var(--azt-text-light);
}

.azt-n {
  font-size: 12px;
  opacity: .8;
  align-self: center;
}

.azt-item a {
  color: inherit;
  text-decoration: none;
}

.azt-label {
  display: inline-block;
  font-size: clamp(2.05rem, 4.5vw, 4rem);
  line-height: .92;
  font-weight: 600;
  white-space: nowrap;
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 420ms var(--azt-ease-italic), letter-spacing 420ms var(--azt-ease-italic);
}

.azt-item:hover .azt-label,
.azt-item a:hover .azt-label,
.azt-item a:focus-visible .azt-label {
  transform: translateX(8px) skewX(-10deg);
  letter-spacing: .01em;
}

.azt-dash {
  width: 100%;
  height: 1px;
  background: var(--azt-line-soft);
  min-width: 34px;
  margin-top: 6px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 620ms var(--azt-ease-main), background 300ms ease;
}

.azt-menu-header.open .azt-dash {
  transform: scaleX(1);
  background: var(--azt-line-open);
}

.azt-center-note {
  font-style: italic;
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, -50%);
  color: var(--azt-text-accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 180ms ease, color 300ms ease;
}

.azt-menu-header.open .azt-center-note {
  opacity: .9;
  color: var(--azt-note-open);
  transition-delay: 780ms, 0ms;
}

.azt-center-social {
  position: absolute;
  left: 50%;
  bottom: 4.8rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.azt-menu-header.open .azt-center-social {
  opacity: 1;
  transition-delay: 740ms;
}

.azt-center-social__link {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--azt-note-open);
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.azt-center-social__link:hover,
.azt-center-social__link:focus-visible {
  color: var(--azt-text-light);
  transform: translateY(-1px);
}

.azt-center-social__link svg {
  display: block;
  width: 24px;
  height: 24px;
}

.azt-center-social__link[title="Ir al perfil de LinkedIn"] svg {
  width: 21.6px;
  height: 21.6px;
}

.azt-hero-title {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 600ms ease, transform 900ms var(--azt-ease-soft);
}

.azt-menu-header.open .azt-hero-title {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  transition-delay: 300ms;
}

.azt-hero-big {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .85;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.azt-hero-small {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 820px) {
  .azt-menu {
    padding: 150px 26px 36px 26px;
  }

  .azt-wire {
    display: none;
  }

  .azt-menu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .azt-center-note {
    display: none;
  }

  .azt-center-social {
    display: none;
  }

  .azt-item {
    grid-template-columns: 20px max-content 1fr;
    gap: 12px;
  }

  .azt-label {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .azt-hero-title {
    right: 50%;
    top: 60px;
    transform: translateX(50%);
    align-items: center;
    text-align: center;
  }

  .azt-menu-header.open .azt-hero-title {
    transform: translateX(50%);
  }

  .azt-hero-big {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

@media (max-width: 782px) {
  body.admin-bar .azt-menu-header {
    top: 46px;
    height: calc(100vh - 46px);
  }
}
