/* Header nav hover effects — SPEC 0162. Transversal a todos los layouts. */
:root {
  --tkm-nav-color: #181816;
  --tkm-nav-hover: #7A582B;
  --tkm-nav-accent: #B8935A;
}

/* Base: colores concretos del panel con prioridad sobre el preset visual.
   WP marca TODAS las anclas como current-menu-item: se neutraliza y el estado
   activo real lo decide el IntersectionObserver del pack mediante .is-active. */
.tkm-header nav a,
.tkm-header .tkm-el-menu a,
.tkm-header .tkm-inst-menu a,
.tkm-header .tkm-nav-menu a,
.tkm-header .current-menu-item > a { color: var(--tkm-nav-color) !important; text-decoration: none !important; border-bottom: 0 !important; }
.tkm-header nav a:hover,
.tkm-header nav a:focus-visible,
.tkm-header nav a.is-active,
.tkm-header .tkm-el-menu a:hover,
.tkm-header .tkm-el-menu a.is-active { color: var(--tkm-nav-hover) !important; border-bottom: 1px solid var(--tkm-nav-accent); }

/* underline-slide */
.tkm-nav-fx--underline-slide nav a,
.tkm-nav-fx--underline-slide .tkm-el-menu a { position: relative; }
.tkm-nav-fx--underline-slide nav a::after,
.tkm-nav-fx--underline-slide .tkm-el-menu a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2.5px; border-radius: 2px; background: var(--tkm-nav-accent);
  transform: scaleX(0); transform-origin: left center; opacity: 0;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
.tkm-nav-fx--underline-slide nav a:hover,
.tkm-nav-fx--underline-slide .tkm-el-menu a:hover,
.tkm-nav-fx--underline-slide .tkm-el-menu a.is-active { background: rgba(184,147,90,.08); padding: 6px 10px; border-radius: 6px; }
.tkm-nav-fx--underline-slide nav a:hover::after,
.tkm-nav-fx--underline-slide .tkm-el-menu a:hover::after,
.tkm-nav-fx--underline-slide .tkm-el-menu a.is-active::after { transform: scaleX(1); opacity: 1; }

/* underline-center */
.tkm-nav-fx--underline-center nav a,
.tkm-nav-fx--underline-center .tkm-el-menu a { position: relative; }
.tkm-nav-fx--underline-center nav a::after,
.tkm-nav-fx--underline-center .tkm-el-menu a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2.5px;
  background: var(--tkm-nav-accent); transform: scaleX(0); transform-origin: center; opacity: 0;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
.tkm-nav-fx--underline-center nav a:hover::after,
.tkm-nav-fx--underline-center .tkm-el-menu a:hover::after,
.tkm-nav-fx--underline-center .tkm-el-menu a.is-active::after { transform: scaleX(1); opacity: 1; }

/* pill-soft */
.tkm-nav-fx--pill-soft nav a,
.tkm-nav-fx--pill-soft .tkm-el-menu a {
  padding: 6px 12px; border-radius: 999px; background: transparent;
  transition: background-color .28s ease, color .28s ease;
}
.tkm-nav-fx--pill-soft nav a:hover,
.tkm-nav-fx--pill-soft .tkm-el-menu a:hover,
.tkm-nav-fx--pill-soft .tkm-el-menu a.is-active { background: color-mix(in srgb, var(--tkm-nav-accent) 22%, transparent); }

/* top-bar */
.tkm-nav-fx--top-bar nav a,
.tkm-nav-fx--top-bar .tkm-el-menu a { position: relative; }
.tkm-nav-fx--top-bar nav a::before,
.tkm-nav-fx--top-bar .tkm-el-menu a::before {
  content: ''; position: absolute; left: 0; top: -6px; width: 100%; height: 2.5px;
  background: var(--tkm-nav-accent); transform: scaleX(0); transform-origin: left center; opacity: 0;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
.tkm-nav-fx--top-bar nav a:hover::before,
.tkm-nav-fx--top-bar .tkm-el-menu a:hover::before,
.tkm-nav-fx--top-bar .tkm-el-menu a.is-active::before { transform: scaleX(1); opacity: 1; }

/* text-shift */
.tkm-nav-fx--text-shift nav a,
.tkm-nav-fx--text-shift .tkm-el-menu a {
  display: inline-block;
  transition: color .28s ease, transform .28s cubic-bezier(.22,1,.36,1), font-weight .2s ease;
}
.tkm-nav-fx--text-shift nav a:hover,
.tkm-nav-fx--text-shift .tkm-el-menu a:hover,
.tkm-nav-fx--text-shift .tkm-el-menu a.is-active { transform: translateY(-2px); font-weight: 700; }

/* none: solo color */

/* SPEC 0164 — fondos personalizados (sólo cuando el usuario los activa). */
body.tkm-nav-bg-custom .tkm-header nav a:hover,
body.tkm-nav-bg-custom .tkm-header nav a.is-active,
body.tkm-nav-bg-custom .tkm-el-menu a:hover,
body.tkm-nav-bg-custom .tkm-el-menu a.is-active,
body.tkm-nav-bg-custom .tkm-inst-menu a:hover,
body.tkm-nav-bg-custom .tkm-inst-menu a.is-active {
  background: var(--tkm-nav-item-hover-bg);
  padding: 6px 10px;
  border-radius: 6px;
}
body.tkm-header-bg-custom .tkm-header,
body.tkm-header-bg-custom .tkm-l1,
body.tkm-header-bg-custom .tkm-l2,
body.tkm-header-bg-custom .tkm-header-editorial-light,
body.tkm-header-bg-custom .tkm-header-executive-drawer {
  background: var(--tkm-header-bg) !important;
}

/* SPEC 0165 — densidad, ancho, scroll, submenús y tipografía de marca. */
body.tkm-header-density-64 .tkm-header { min-height: 64px; }
body.tkm-header-density-64 .tkm-header .tkm-inst-row,
body.tkm-header-density-64 .tkm-header .tkm-ed-bar { min-height: 64px; }
body.tkm-header-density-80 .tkm-header { min-height: 80px; }
body.tkm-header-density-96 .tkm-header { min-height: 96px; }
body.tkm-header-density-96 .tkm-header .tkm-inst-row,
body.tkm-header-density-96 .tkm-header .tkm-ed-bar { min-height: 96px; }
body.tkm-header-container-content .tkm-header .tkm-container { max-width: 1280px; margin-left: auto; margin-right: auto; }
body.tkm-header-container-full .tkm-header .tkm-container { max-width: none; }
body.tkm-header-scroll-shadow.tkm-header--scrolling .tkm-header,
body.tkm-header-scroll-shadow.tkm-header--scrolling-up .tkm-header {
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .35);
  border-bottom: 1px solid rgba(184, 147, 90, .35);
}
.tkm-header .sub-menu,
.tkm-header .tkm-el-menu .sub-menu,
.tkm-header .tkm-inst-menu .sub-menu {
  background: var(--tkm-header-bg, #fff);
  border: 1px solid rgba(184, 147, 90, .3);
}
.tkm-header .sub-menu a,
.tkm-header .sub-menu .current-menu-item > a { color: var(--tkm-nav-color, #181816) !important; }
.tkm-header .sub-menu a:hover,
.tkm-header .sub-menu a:focus-visible { color: var(--tkm-nav-hover, #7A582B) !important; background: var(--tkm-nav-item-hover-bg, transparent); padding: 6px 10px; border-radius: 6px; }
body.tkm-brand-font-serif .tkm-header strong,
body.tkm-brand-font-serif .tkm-el-brand-copy strong,
body.tkm-brand-font-serif .tkm-inst-brand-copy strong { font-family: 'Newsreader', Georgia, serif; }
body.tkm-brand-font-sans .tkm-header strong,
body.tkm-brand-font-sans .tkm-el-brand-copy strong,
body.tkm-brand-font-sans .tkm-inst-brand-copy strong { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
body.tkm-brand-sub-uppercase .tkm-el-brand-copy small,
body.tkm-brand-sub-uppercase .tkm-inst-brand-copy small { text-transform: uppercase; letter-spacing: .14em; }
@media (max-width: 1024px) {
  body.tkm-mobile-drawer-1024 .tkm-el-nav,
  body.tkm-mobile-panel-1024 .tkm-el-nav { display: none; }
}
@media (max-width: 1200px) {
  body.tkm-mobile-drawer-1200 .tkm-el-nav,
  body.tkm-mobile-panel-1200 .tkm-el-nav { display: none; }
  body.tkm-mobile-drawer-1200 .tkm-el-toggle,
  body.tkm-mobile-panel-1200 .tkm-el-toggle { display: flex; }
}

