.madimi-one-regular {
  font-family: "Madimi One", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Paleta QHSEproTools para el menú */
:root {
  --qhse-surface: #171328;
  --qhse-surface-soft: #211b3b;
  --qhse-primary: #955CAF;
  --qhse-primary-strong: #7c4b95;
  --qhse-accent-blue: #5CA8FF;
  --qhse-ok: #44E27C;
  --qhse-text-main: #E4DDFF;
  --qhse-text-muted: #B3A9E6;
  --qhse-border-soft: rgba(255, 255, 255, 0.12);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  /* antes: #207483 */
  background: linear-gradient(90deg,
    #171328 0%,
    #211b3b 40%,
    #171328 100%);
  padding: 0px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  border-bottom: 1px solid var(--qhse-border-soft);
}

.header .logo {
  height: auto;
  width: 250px;
  max-width: 30%;
  transition: all 0.3s ease;
}

/* =========================
   MENÚ ESCRITORIO
   ========================= */
@media (min-width: 1025px) {
  .nav-mobile {
    display: none !important;   /* ocultar menú móvil */
  }

  #toggle,
  .header label {
    display: none !important;   /* ocultar checkbox y burger */
  }

  .navigation {
    display: block !important;  /* mostrar menú escritorio */
  }

  /* ---- Navegación principal (ESCRITORIO) ---- */
  .navigation ul {
    list-style: none;
  }

  .header .navigation ul li {
    float: left;
    position: relative;
  }

  .header .navigation ul li a {
    font-size: 1.2rem;
    color: var(--qhse-text-main);
    text-decoration: none;
    padding: 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 999px;
  }

  .header .navigation ul li a:hover {
    /* antes: fondo beige + texto negro */
    background-color: rgba(228, 221, 255, 0.12);
    color: #ffffff;
  }

  /* ---- Submenús escritorio ---- */
  .header .navigation ul li ul {
    position: absolute;
    right: 0;
    width: 300px;
    /* antes: #5BC2BC */
    background-color: #141027;
    display: none;
    border-radius: 14px;
    border: 1px solid var(--qhse-border-soft);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  .header .navigation ul li ul li a {
    font-size: 1rem;
    text-transform: capitalize;
    color: var(--qhse-text-main);
  }

  .header .navigation ul li ul li a:hover {
    background-color: rgba(149, 92, 175, 0.18);
    color: #ffffff;
  }

  .header .navigation ul li ul li ul {
    /* antes: #83D8C1 */
    background-color: #1f1839;
    position: absolute;
    top: 0;
    right: 300px;
  }

  .header .navigation ul li ul li ul li ul {
    /* antes: #FCCF88 */
    background-color: #271e4b;
  }

  .header .navigation ul li ul li {
    width: 100%;
  }

  .header .navigation ul li:hover > ul {
    display: initial;
  }

  .menu {
    width: 45px;
    height: 35px;
  }
}

/* =========================
   MENÚ MÓVIL
   ========================= */
@media (max-width: 1024px) {

  /* Ocultar menú de escritorio en móvil */
  .navigation {
    display: none !important;
  }

  /* Checkbox sigue oculto (sólo para controlar el menú) */
  #toggle {
    display: none;
  }

  /* Icono hamburguesa visible */
  .header label {
    display: block;
    cursor: pointer;
  }

  .menu {
    width: 32px;
    height: 26px;
  }

  .header {
    padding: 10px 5%;
  }

  .header .logo {
    max-width: 55%;
  }

  /* CONTENEDOR DEL MENÚ MÓVIL */
  .nav-mobile {
    position: absolute;
    top: 100%;              /* justo debajo del header */
    left: 0;
    right: 0;
    /* antes: #c5ced1 */
    background: #141027;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 12px 14px;
    display: none;          /* se abre con el checkbox */
    z-index: 999;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 18px 18px;
    border-top: 1px solid var(--qhse-border-soft);
  }

  /* Mostrar menú solo cuando el burger está activo */
  #toggle:checked ~ .nav-mobile {
    display: block;
  }

  /* LISTA PRINCIPAL DEL MENÚ */
  .mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
  }

  .mobile-menu ul ul {
    margin-top: 4px;
    border-left: 2px solid rgba(149, 92, 175, 0.25);
    padding-left: 8px;
  }

  /* ITEM GENERAL */
  .menu-item {
    margin: 4px 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .menu-item:last-child {
    border-bottom: none;
  }

  .menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--qhse-text-main);
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 999px;             /* efecto "pill" */
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  }

  .menu-item > a:hover {
    /* antes: fondo turquesa clarito + texto verde */
    background-color: rgba(149, 92, 175, 0.16);
    color: #ffffff;
    transform: translateX(2px);
  }

  /* PUNTO DE COLOR POR NIVEL */
  .menu-item::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
  }

  /* NIVEL 1 */
  .menu-item.level-1 {
    margin-top: 8px;
  }

  .menu-item.level-1::before {
    background-color: var(--qhse-primary);   /* morado */
  }

  .menu-item.level-1 > a {
    font-weight: 600;
    padding-left: 4px;
  }

  /* NIVEL 2 */
  .menu-item.level-2::before {
    background-color: var(--qhse-accent-blue);   /* azul neón */
  }

  .menu-item.level-2 > a {
    padding-left: 20px;
    font-weight: 500;
  }

  /* NIVEL 3 */
  .menu-item.level-3::before {
    background-color: var(--qhse-ok);   /* verde OK */
  }

  .menu-item.level-3 > a {
    padding-left: 36px;
    font-weight: 400;
  }

  /* ESTADO ACTIVO (si quieres reutilizar la clase active también en móvil) */
  .menu-item.active > a {
    background: linear-gradient(135deg, var(--qhse-primary) 0%, var(--qhse-primary-strong) 100%);
    color: #ffffff;
    font-weight: 600;
  }
}





