/* ==========================================================================
   MENU COMPARTIDO · Club de Empresarias Ambiciosas
   Lo cargan Home, Brujula, Consultoria, Podcast y Blog.
   Los enlaces se editan en /cea-menu.js. El aspecto, aqui.
   ========================================================================== */

/* Hueco reservado mientras carga el menu (evita saltos de la pagina) */
#cea-menu{background:#2c2713;min-height:60px}

/* Version sin JavaScript: enlaces simples, tambien visibles para buscadores */
.cea-fallback{box-sizing:border-box;max-width:1180px;margin:0 auto;padding:10px 26px;min-height:60px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;font:500 15px/1.3 'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif}
.cea-fallback a{color:#f3f0eb;text-decoration:none;padding:8px 0}
.cea-fallback a:first-child{margin-right:auto;font-weight:600;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase}

/* == Barra == */
.cea-nav,.cea-nav *,.cea-nav *::before,.cea-nav *::after{box-sizing:border-box}
.cea-nav{position:relative;z-index:150;background:#2c2713;color:#f3f0eb;border-bottom:1px solid rgba(203,143,23,.28);font-family:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:15px;font-weight:500;line-height:1.2;letter-spacing:.01em;text-align:left;-webkit-font-smoothing:antialiased}
.cea-nav__in{max-width:1180px;margin:0 auto;padding:0 26px;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:20px}

/* Marca: enlaza a la home */
.cea-nav .cea-nav__brand{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;color:#f3f0eb;text-decoration:none;font-family:inherit;font-size:12.5px;font-weight:500;letter-spacing:.14em;line-height:1.3;text-transform:uppercase;white-space:nowrap}
.cea-nav .cea-nav__brand b{display:inline;margin:0 0 0 .45em;font-family:inherit;font-size:inherit;font-weight:700;font-stretch:normal;letter-spacing:inherit;line-height:inherit;text-transform:inherit;color:#e8c878}

/* Listas y elementos: se anula cualquier estilo heredado de la pagina */
.cea-nav ul,.cea-nav li{list-style:none;margin:0;padding:0;border:0;background:none;position:static;font-size:inherit;line-height:inherit;color:inherit}
.cea-nav .cea-nav__list{display:flex;align-items:center;gap:6px}
.cea-nav .cea-nav__item{position:relative}

.cea-nav .cea-nav__link{-webkit-appearance:none;appearance:none;position:relative;display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:0;padding:0 14px;border:0;border-radius:6px;background:none;color:#f3f0eb;font:inherit;letter-spacing:inherit;text-decoration:none;text-transform:none;white-space:nowrap;cursor:pointer;box-shadow:none;transition:color .2s ease,background .2s ease;touch-action:manipulation}
.cea-nav .cea-nav__link:hover{color:#e8c878;background:rgba(243,240,235,.06);transform:none}
.cea-nav .cea-nav__link[aria-current="page"],
.cea-nav .cea-nav__link.is-active{color:#e8c878}
.cea-nav .cea-nav__link[aria-current="page"]::after,
.cea-nav .cea-nav__link.is-active::after{content:'';position:absolute;left:14px;right:14px;bottom:7px;height:1.5px;background:#cb8f17;border-radius:2px}

.cea-nav svg{display:block;flex:none;width:12px;height:12px;margin:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.cea-nav .cea-nav__link[aria-expanded="true"] svg{transform:rotate(180deg)}

/* Desplegables */
.cea-nav .cea-nav__sub{display:none;position:absolute;top:calc(100% + 8px);left:0;min-width:230px;padding:8px;background:#3a3318;border:1px solid rgba(203,143,23,.32);border-radius:10px;box-shadow:0 24px 48px -20px rgba(0,0,0,.55)}
.cea-nav .cea-nav__item:last-child .cea-nav__sub{left:auto;right:0}
.cea-nav .cea-nav__link[aria-expanded="true"] + .cea-nav__sub{display:block}
.cea-nav .cea-nav__sublink{display:flex;align-items:center;min-height:44px;margin:0;padding:0 14px;border-radius:6px;color:#f3f0eb;font:inherit;text-decoration:none;white-space:nowrap;transition:color .2s ease,background .2s ease}
.cea-nav .cea-nav__sublink:hover{color:#e8c878;background:rgba(243,240,235,.07)}
.cea-nav .cea-nav__sublink[aria-current="page"]{color:#e8c878;font-weight:600}
.cea-nav .cea-nav__sublink[aria-current="page"]::before{content:'';width:6px;height:6px;margin-right:10px;border-radius:50%;background:#cb8f17;flex:none}

/* Foco visible con teclado */
.cea-nav a:focus-visible,.cea-nav button:focus-visible{outline:2px solid #e8c878;outline-offset:2px;border-radius:6px}

/* Boton de menu (solo movil) */
.cea-nav .cea-nav__toggle{-webkit-appearance:none;appearance:none;display:none;align-items:center;justify-content:center;width:44px;height:44px;margin:0 -10px 0 0;padding:0;border:0;border-radius:8px;background:none;color:#f3f0eb;cursor:pointer;flex:none;touch-action:manipulation}
.cea-nav .cea-nav__toggle svg{width:24px;height:24px;stroke-width:1.7;transform:none}
.cea-nav .cea-nav__toggle .cea-ico-close{display:none}
.cea-nav .cea-nav__toggle[aria-expanded="true"] .cea-ico-open{display:none}
.cea-nav .cea-nav__toggle[aria-expanded="true"] .cea-ico-close{display:block}

/* == Movil y tablet estrecha == */
@media (max-width:760px){
  #cea-menu{min-height:56px}
  .cea-nav__in{min-height:56px;padding:0 18px;gap:12px}
  .cea-nav .cea-nav__brand{font-size:11.5px;letter-spacing:.11em}
  .cea-nav .cea-nav__toggle{display:inline-flex}
  .cea-nav .cea-nav__panel{display:none;position:absolute;top:100%;left:0;right:0;padding:8px 10px 14px;background:#2c2713;border-top:1px solid rgba(243,240,235,.1);border-bottom:1px solid rgba(203,143,23,.32);box-shadow:0 28px 40px -24px rgba(0,0,0,.6)}
  .cea-nav .cea-nav__panel.is-open{display:block}
  .cea-nav .cea-nav__list{display:block}
  .cea-nav .cea-nav__link{display:flex;justify-content:space-between;width:100%;min-height:50px;padding:0 10px;font-size:16.5px;white-space:normal}
  .cea-nav .cea-nav__link[aria-current="page"]::after,
  .cea-nav .cea-nav__link.is-active::after{display:none}
  .cea-nav svg{width:14px;height:14px}
  .cea-nav .cea-nav__sub{position:static;min-width:0;margin:0 0 6px;padding:0 0 0 12px;background:none;border:0;border-left:1.5px solid rgba(203,143,23,.45);border-radius:0;box-shadow:none}
  .cea-nav .cea-nav__item .cea-nav__sub{margin-left:12px}
  .cea-nav .cea-nav__sublink{min-height:48px;padding:0 10px;font-size:16px;white-space:normal}
  .cea-fallback{padding:10px 18px;min-height:56px}
}
@media (max-width:370px){
  .cea-nav .cea-nav__brand{font-size:10.5px;letter-spacing:.08em}
}
@media (prefers-reduced-motion:reduce){
  .cea-nav .cea-nav__link,.cea-nav .cea-nav__sublink,.cea-nav svg{transition:none}
}

/* La marca ya va en el menu: se oculta el rotulo duplicado que flotaba sobre la cabecera
   de la home y de consultoria. Solo actua si el menu se ha cargado. Para recuperarlo, borrar esta regla. */
html.cea-nav-on .topbar .wordmark{display:none}
