:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --accent:#0ea5e9;
  --ring:rgba(14,165,233,.25);
}

/* Header / layout */
#header{ background: var(--bg); }
#nav.menu_main{
  max-width:1200px; margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; gap:20px;
  border-bottom:1px solid rgba(2,6,23,.06);
}
.logo{ display:block; width:60px; height:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,.06)); transition:transform .2s; }
.logo-link:hover .logo{ transform: translateY(-1px) scale(1.02); }

/* Reset subrayado global dentro del nav */
#nav a{ border-bottom:0 !important; text-decoration:none; }

/* Menú de 1er nivel (usamos el UL que ya existe en tu HTML) */
#nav > ul{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap:18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  font-weight:500;
}
#nav > ul > li{ position:relative; }
#nav > ul > li > a{
  display:inline-block; padding:10px 6px; color:var(--text); line-height:1; transition:color .2s;
}
#nav > ul > li > a::after{
  content:""; display:block; height:2px; width:0; background:var(--accent);
  border-radius:1px; transition:width .25s; margin-top:6px;
}
#nav > ul > li:hover > a{ color:var(--accent); }
#nav > ul > li:hover > a::after{ width:100%; }

/* Indicador de submenú en 1er nivel */
#nav > ul > li.has-sub > a::after{
  content:"▾"; font-size:.8em; margin-left:6px; color:var(--muted);
  transition:transform .2s, color .2s;
}
#nav > ul > li.has-sub:hover > a::after{ transform:rotate(180deg); color:var(--accent); }

/* ESTILO MINIMALISTA PARA DROPOtron (el verdadero submenú) */
.dropotron, .dropotron.level-0{
  background:#fff !important; color:var(--text) !important;
  border:1px solid rgba(2,6,23,.08) !important;
  border-radius:12px !important;
  box-shadow:0 8px 24px rgba(2,6,23,.08), 0 2px 6px rgba(2,6,23,.06) !important;
  padding:8px !important; min-width:220px !important; text-align:left !important;
}
.dropotron > li{ line-height:1; }
.dropotron > li > a{
  display:block; padding:10px 12px !important; border-radius:10px !important;
  color:var(--text) !important; white-space:nowrap;
}
.dropotron > li > a:hover{
  background:rgba(14,165,233,.06) !important; color:var(--accent) !important;
}
.dropotron a{ border:0 !important; }

/* Asegura que el menú flote encima de otros elementos */
#header, #nav{ position:relative; z-index:50; }

/* Responsive simple */
@media (max-width:900px){
  #nav.menu_main{ flex-wrap:wrap; }
  #nav > ul{ flex-wrap:wrap; gap:10px 16px; }
}

/* (Opcional) Mantener #header visible en móviles si el tema lo oculta */
@media (max-width:840px){
  #header{ display:block; }
}
