.nav {
  position: sticky; top: 0; z-index: 100;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: 72px;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 2rem, var(--page-max-width));
  margin-inline: auto; min-height: 72px;
}

.nav__logo-img { height: 36px; width: auto; display: block; }

/* Ocultar checkboxes */
.nav__toggle-input, .nav__mega-input { display: none; }

/* Botón hamburguesa (oculto en desktop) */
.nav__toggle { display: none; cursor: pointer; color: #fff; }

/* Menú Desktop */
.nav__list { display: flex; align-items: center; gap: 32px; list-style: none; padding: 0; margin: 0; }
.nav__list a, .nav__mega-trigger {
  color: #fff; text-decoration: none; font-family: inherit;
  font-weight: 500; font-size: 15px; padding: 8px 0;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s ease;
}
.nav__list a:hover, .nav__mega-trigger:hover { color: var(--color-studio-violet); }
.nav__actions .btn--white { padding: 10px 24px; font-size: 14px; font-weight: 600; }
.nav__mobile-action { display: none; }

/* Mega Menú (Desktop: Hover) */
.nav__has-mega { position: static; }
.nav__mega {
  position: absolute; top: 72px; left: 0; right: 0;
  background: #0a0a0a; border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: none;
}
@media (min-width: 901px) {
  .nav__has-mega:hover .nav__mega { display: block; }
}

/* Contenido del Mega Menú */
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: var(--page-max-width); margin: 0 auto; }
.mega-col-title { font-family: var(--font-ibm-plex-sans); font-size: 13px; font-weight: 600; color: var(--color-silver); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.mega-col-title span { display: block; width: 4px; height: 16px; background: var(--color-studio-violet); border-radius: 2px; }
.mega-item { display: flex; gap: 16px; padding: 12px; border-radius: 8px; text-decoration: none; transition: background 0.2s ease; margin-bottom: 8px; }
.mega-item:hover { background: rgba(255,255,255,0.05); }
.mega-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--color-silver); border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.mega-item strong { display: block; color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.mega-item span { display: block; color: var(--color-silver); font-size: 13px; line-height: 1.4; }
.soon-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #ffbd2e; border: 1px solid rgba(255, 189, 46, 0.3); padding: 2px 6px; border-radius: 4px; letter-spacing: 0.05em; margin-top: 4px; }

/* =========================================
   MODO TELÉFONO (CSS PURO)
   ========================================= */
@media (max-width: 900px) {
  /* Mostrar hamburguesa */
  .nav__toggle { display: block; }
  
  /* Ocultar menú por defecto */
  .nav__menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #0a0a0a; padding: 24px; flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }

  /* ABRIR MENÚ: Cuando el checkbox está checked, muestra el menú */
  .nav__toggle-input:checked ~ .nav__menu { display: flex; }
  
  /* Lista vertical */
  .nav__list { flex-direction: column; gap: 0; width: 100%; }
  .nav__list > li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav__list a, .nav__mega-trigger { display: flex; justify-content: space-between; width: 100%; padding: 16px 0; }
  
  /* Mega Menú en Móvil */
  .nav__mega { position: static; padding: 0 0 16px 16px; border: none; display: none; box-shadow: none; }
  
  /* ABRIR MEGA MENÚ: Cuando el checkbox del mega está checked */
  .nav__mega-input:checked ~ .nav__has-mega .nav__mega { display: block; }
  
  .mega-grid { grid-template-columns: 1fr; gap: 16px; }
  .mega-item { padding: 8px; }
  
  /* Botón Hablemos en móvil */
  .nav__actions { display: none; }
  .nav__mobile-action { display: block; margin-top: 24px; width: 100%; }
  .nav__mobile-action .btn { width: 100%; text-align: center; display: block; }
}