/* NM Visual Studio (clásico) — chrome (cabecera/pie/nav/formularios) — SIEMPRE
   Refactor estilos en línea -> clases. Declaraciones VERBATIM. Cargado tras
   nm.css. NO re-ejecutar /tmp/nmvs_build/compile_partials.py (obsoleto). */

.nm-accent-cb { accent-color: var(--nm-gold-500); }
.nm-cookielink { color: var(--nm-gold-400); text-decoration: underline; text-underline-offset: 2px; }
.nm-filter-label { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-accent); margin-right: 8px; }
.nm .nm-foot-h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--nm-gold-400); margin: 0 0 18px; font-weight: 600; }
.nm-foot-link { color: var(--text-on-dark-muted); font-size: 14px; text-decoration: none; transition: color .3s; }
.nm-foot-widget { margin-bottom: 18px; }
.nm .nm-ft-div-1 { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 48px; padding-block: clamp(52px, 6vw, 84px); }
.nm .nm-ft-div-2 { border-top: 1px solid var(--border-on-dark); padding-block: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-on-dark-muted); }
.nm .nm-ft-footer-1 { position: relative; background: var(--nm-navy-900); color: var(--text-on-dark); }
.nm .nm-ft-img-1 { height: 44px; width: auto; display: block; margin-bottom: 24px; }
.nm .nm-ft-kit { display: flex; justify-content: center; padding-block: 6px 32px; }
.nm .nm-ft-kit-inner { display: inline-flex; background: #fff; border-radius: 12px; padding: 12px 22px; box-shadow: 0 6px 18px rgba(0,0,0,.16); max-width: 100%; }
.nm .nm-ft-kit-img { display: block; width: 620px; max-width: 100%; height: auto; }
.nm .nm-ft-li-1 { color: var(--text-on-dark-muted); font-size: 14px; }
.nm .nm-ft-li-2 { display: flex; align-items: center; gap: 10px; color: var(--text-on-dark-muted); font-size: 14px; }
.nm .nm-ft-p-1 { color: var(--text-on-dark-muted); font-size: 14px; line-height: 1.7; max-width: 34ch; font-weight: 300; margin: 0; }
.nm .nm-ft-path-1 { fill: var(--surface-soft); }
.nm .nm-ft-span-1 { display: flex; align-items: center; gap: 18px; }
.nm .nm-ft-span-2 { letter-spacing: .04em; }
.nm .nm-ft-legal { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.nm .nm-ft-legal-nav { display: flex; flex-wrap: wrap; align-items: center; }
.nm .nm-ft-legal-nav a { font-size: 12px; }
.nm .nm-ft-legal-nav a:not(:last-child)::after { content: "\00b7"; margin: 0 10px; color: var(--border-on-dark); }
.nm .nm-ft-ul-1 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.nm .nm-hd-a-1 { display: flex; align-items: center; text-decoration: none; }
.nm .nm-hd-a-2 { display: inline-flex; align-items: center; gap: 10px; background: var(--nm-navy-900); color: var(--nm-white); font-size: 13px; font-weight: 500; letter-spacing: .04em; padding: 13px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: transform .32s cubic-bezier(.16,1,.3,1); }
.nm .nm-hd-div-1 { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; }
.nm .nm-hd-img-1 { height: 40px; width: auto; display: block; }
.nm .nm-hd-nav-1 { display: flex; align-items: center; gap: 36px; }
.nm .nm-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: transparent; border-bottom: 1px solid transparent; transition: background .4s cubic-bezier(.16,1,.3,1), border-color .4s cubic-bezier(.16,1,.3,1); }
.nm-linkbtn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.nm-navlink { font-size: 13px; color: var(--text-body); text-decoration: none; letter-spacing: .02em; transition: color .3s; }
.nm-navlink--active { font-weight: 500; color: var(--text-strong); position: relative; }
.nm-navlink__bar { position: absolute; left: 0; right: 0; bottom: -7px; height: 1.5px; background: var(--nm-gold-500); }
.nm-newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.nm-nl-btn { background: var(--nm-gold-500); color: var(--nm-navy-900); border: none; border-radius: 999px; padding: 13px 22px; font-weight: 600; cursor: pointer; }
.nm-nl-consent { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-on-dark-muted); }
.nm-pcard2 { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.nm-pcard2-arrow { color: var(--text-strong); margin-top: 4px; transition: transform .3s cubic-bezier(.16,1,.3,1), color .3s; }
.nm-pcard2-cat { font-size: 13px; color: var(--text-accent); margin: 7px 0 0; } /* a11y: categoría de tarjeta (13px) sobre claro → 4.5:1 */
.nm-pcard2-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--nm-stone-300); }
.nm-pcard2-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.nm-pcard2-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-strong); margin: 0; }
.nmvs-cookies { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; width: min(680px, calc(100% - 32px)); background: var(--nm-navy-900); color: var(--text-on-dark); border: 1px solid var(--border-on-dark); border-radius: 18px; box-shadow: 0 18px 48px rgba(15,29,43,.35); padding: 22px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nmvs-cookies-accept { background: var(--nm-gold-500); color: var(--nm-navy-900); border: none; border-radius: 999px; padding: 11px 22px; font-size: 13px; font-weight: 600; cursor: pointer; }
.nmvs-cookies-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nmvs-cookies-reject { background: transparent; color: var(--text-on-dark); border: 1px solid var(--border-on-dark); border-radius: 999px; padding: 11px 20px; font-size: 13px; cursor: pointer; }
.nmvs-cookies-text { margin: 0; flex: 1; min-width: 240px; font-size: 13.5px; line-height: 1.6; color: var(--text-on-dark-muted); font-weight: 300; }

/* El header llevaba position:fixed en línea (especificidad máxima), que ganaba
   al #nmHeader{position:relative} del CSS adicional del Customizer. Recuperamos
   esa precedencia con #nmHeader.nm-header (1,1,0) para que siga siendo fijo. */
#nmHeader.nm-header { position: fixed; }

/* ===========================================================================
   Selector de idioma — desplegable on-brand (escritorio)
   ======================================================================== */
.nm-langs { position: relative; display: inline-flex; }
.nm-langs-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  color: var(--text-body); cursor: pointer;
  background: transparent; border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 9px 14px;
  transition: color .3s, border-color .3s, background .3s;
}
.nm-langs-toggle:hover,
.nm-langs-toggle[aria-expanded="true"] { color: var(--text-strong); border-color: var(--nm-gold-400); }
.nm-langs-globe { color: var(--nm-gold-600); }
.nm-langs-current { display: inline-block; min-width: 1.4em; }
.nm-langs-caret { color: var(--text-muted); transition: transform .32s cubic-bezier(.16,1,.3,1); }
.nm-langs-toggle[aria-expanded="true"] .nm-langs-caret { transform: rotate(180deg); }

.nm-langs-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 188px; margin: 0; padding: 7px; list-style: none;
  background: var(--nm-white); border: 1px solid var(--border-faint);
  border-radius: 14px; box-shadow: 0 18px 48px rgba(15, 29, 43, .16);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .26s cubic-bezier(.16,1,.3,1), transform .26s cubic-bezier(.16,1,.3,1), visibility .26s;
  z-index: 90;
}
.nm-langs.is-open .nm-langs-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.nm-langs-opt {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--text-body); transition: background .22s, color .22s;
}
.nm-langs-opt:hover { background: var(--nm-beige-50); color: var(--text-strong); }
.nm-langs-code {
  min-width: 24px; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-accent); /* a11y: código de idioma (11px) en desplegable blanco → 4.5:1 */
}
.nm-langs-name { flex: 1; font-size: 13.5px; }
.nm-langs-opt.is-active { color: var(--text-strong); }
.nm-langs-opt.is-active .nm-langs-name { font-weight: 500; }
.nm-langs-check { margin-left: auto; color: var(--nm-gold-500); }

/* Selector de idioma — fila en línea (panel del menú móvil) */
.nm-langi {
  display: flex; align-items: center; gap: 4px;
  margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border-faint);
}
.nm-langi-globe { color: var(--nm-gold-600); margin-right: 8px; }
.nm-langi-opt {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; color: var(--text-muted); text-decoration: none;
  padding: 9px 13px; border-radius: 999px; transition: color .3s, background .3s;
}
.nm-langi-opt:hover { color: var(--text-strong); }
.nm-langi-opt.is-active { color: var(--nm-white); background: var(--nm-navy-900); }
