* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background: #fff;

  /* M3/Elevation Light/1 */
  box-shadow:
    0 1px 2px 0 rgba(0, 0, 0, 0.3),
    0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.nav-row {
  width: 100%;
  max-width: 1563px;
  margin: auto;
  padding: 0 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 136px;
}

nav.primary-nav a {
  border-radius: 48px;
  border: 0.5px solid var(--df-grad-1-vivactis, #82368c);
  display: flex;
  padding: 10px;

  /* texte */
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 140.069%; /* 28.014px */
  background: var(
    --df-grad-1-vivactis,
    radial-gradient(65% 65% at 62.38% 35%, #82368c 0%, #273475 88.94%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

nav.primary-nav a.active,
nav.primary-nav a:hover {
  border-radius: 48px;
  border: 0.5px solid var(--df-grad-1-vivactis, #82368c);
  background: var(
    --df-grad-1-vivactis,
    radial-gradient(65% 65% at 62.38% 35%, #82368c 0%, #273475 88.94%)
  );

  color: var(--blanc, #fff);

  /* texte */
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 140.069%; /* 28.014px */
  -webkit-text-fill-color: white;
}

/* Botón hamburguesa: oculto en desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bleu-1-vivactis, #000082);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Animación a "X" cuando el menú está abierto */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 40;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer lateral: oculto fuera de la pantalla por defecto */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  max-width: 80vw;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 125px 24px 24px;
  gap: 20px;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--bleu-1-vivactis, #000082);
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 48px;
  border: 0.5px solid var(--df-grad-1-vivactis, #82368c);
}

.mobile-nav a.active {
  background: var(
    --df-grad-1-vivactis,
    radial-gradient(65% 65% at 62.38% 35%, #82368c 0%, #273475 88.94%)
  );
  color: #fff;
}

/* Breakpoint: por debajo de 992px se oculta el nav de escritorio
   y aparece la hamburguesa */
@media (max-width: 992px) {
  nav.primary-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}
