/* =====================================================================
   cx-menu · menú principal de conexiatec.com (todas las páginas)
   Componente autónomo: clases con prefijo cxm- y variables propias, para
   no chocar con las hojas globales (cx-v2, cx-design-v3…). Va fijo arriba
   como el menú anterior y ajusta --cx-nav-h, que la web usa para dejarle hueco.
   Patrones de Moxen (Corredor, Repliegue) adaptados: ver MOXEN_COMPONENTS.md.
   ===================================================================== */
:root { --cx-nav-h: 72px; }
html { scroll-padding-top: calc(var(--cx-nav-h) + 12px); }
/* Heredado de cx-drawer.css (menú anterior): en pantallas estrechas, lo que se sale de ancho en
   algunas páginas (tarjetas, carruseles) no debe crear desplazamiento lateral. */
@media (max-width: 1024px) {
  html, body { overflow-x: clip; max-width: 100vw; }
  @supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
}

.cxm-cab, .cxm-cajon, .cxm-velo {
  --cxm-fondo: rgba(255, 255, 255, .94);
  --cxm-papel: #ffffff;
  --cxm-niebla: #f1f5f7;
  --cxm-linea: #d9e2e8;
  --cxm-texto: #0f2233;
  --cxm-texto-2: #46586a;
  --cxm-acento: #006f78;
  --cxm-acento-2: #00575f;
  --cxm-tinte: #e3f3f4;
  --cxm-sombra: 0 18px 40px -18px rgba(7, 26, 46, .35), 0 2px 6px rgba(7, 26, 46, .06);
  --cxm-curva: cubic-bezier(.2, .7, .2, 1);
  --cxm-f: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cxm-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
[data-theme="dark"] .cxm-cab, [data-theme="dark"] .cxm-cajon {
  --cxm-fondo: rgba(10, 22, 34, .94);
  --cxm-papel: #0f1d2b;
  --cxm-niebla: #182a3b;
  --cxm-linea: #22394d;
  --cxm-texto: #e8eef3;
  --cxm-texto-2: #a7b7c5;
  --cxm-acento: #6fd3da;
  --cxm-acento-2: #9be3e8;
  --cxm-tinte: #12313c;
  --cxm-sombra: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.cxm-logo__oscuro { display: none !important; }
[data-theme="dark"] .cxm-logo__claro { display: none !important; }
[data-theme="dark"] .cxm-logo__oscuro { display: block !important; }

/* Reinicio local: la web aplica estilos globales a header, nav, ul, a y button */
.cxm-cab *, .cxm-cajon * { box-sizing: border-box; }
.cxm-cab ul, .cxm-cajon ul { list-style: none; margin: 0; padding: 0; }
/* el modo oscuro de la web pinta fondos y bordes en nav/ul/li: aquí no */
.cxm-cab nav, .cxm-cab ul, .cxm-cab li, .cxm-cajon nav, .cxm-cajon ul, .cxm-cajon li { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.cxm-cab p, .cxm-cajon p { margin: 0; }
.cxm-cab a, .cxm-cajon a { text-decoration: none; }
.cxm-cab button, .cxm-cajon button { font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; }
.cxm-cab :focus-visible, .cxm-cajon :focus-visible { outline: 3px solid #1ca4af; outline-offset: 2px; border-radius: 4px; }

/* ---------- Barra ---------- */
.cxm-cab {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: var(--cx-nav-h); margin: 0; padding: 0;
  background: var(--cxm-fondo); border-bottom: 1px solid var(--cxm-linea);
  font: 400 15px/1.4 var(--cxm-f); color: var(--cxm-texto);
}
@supports (backdrop-filter: blur(1px)) { .cxm-cab { backdrop-filter: saturate(1.4) blur(10px); } }
.cxm-cab__in {
  height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px);
  display: flex; align-items: center; gap: 22px;
}
.cxm-logo { flex: none; display: block; }
.cxm-logo img { width: 132px; height: auto; display: block; }
.cxm-nav { height: 100%; }
.cxm-nav__lista { display: flex; height: 100%; align-items: stretch; gap: 2px; }
.cxm-nav__elem { position: relative; display: flex; align-items: center; }
.cxm-nav__boton, .cxm-nav__enlace {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 11px; margin: 0;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--cxm-texto); font: 500 15px/1 var(--cxm-f); white-space: nowrap;
}
.cxm-nav__boton::after {
  content: ''; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg); opacity: .6; transition: transform .18s var(--cxm-curva);
}
.cxm-nav__boton[aria-expanded="true"]::after { transform: translateY(3px) rotate(225deg); }
.cxm-nav__boton:hover, .cxm-nav__enlace:hover, .cxm-nav__boton[aria-expanded="true"] { background: var(--cxm-niebla); color: var(--cxm-texto); }
.cxm-nav__elem.is-actual > .cxm-nav__boton, .cxm-nav__elem.is-actual > .cxm-nav__enlace { box-shadow: inset 0 -2px 0 var(--cxm-acento); border-radius: 6px 6px 0 0; }

/* ---------- Desplegables ---------- */
.cxm-mm {
  position: absolute; top: calc(100% - 6px); left: -12px; z-index: 10010;
  min-width: 540px; padding: 18px; background: var(--cxm-papel); color: var(--cxm-texto);
  border: 1px solid var(--cxm-linea); border-radius: 12px; box-shadow: var(--cxm-sombra);
}
.cxm-mm[hidden] { display: none; }
.cxm-mm.is-entrando { animation: cxm-entra .16s var(--cxm-curva); }
@keyframes cxm-entra { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.cxm-mmestrecho { min-width: 300px; }
.cxm-mmder { left: auto; right: -12px; }
.cxm-mm__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.cxm-mm__rejilla3 { grid-template-columns: repeat(3, minmax(180px, 1fr)); min-width: 600px; }
.cxm-mm__grupo { margin: 4px 10px 6px !important; font: 500 11.5px/1.2 var(--cxm-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cxm-texto-2); }
.cxm-mm__lista a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--cxm-texto); }
.cxm-mm__lista a:hover, .cxm-mm__lista a:focus-visible, .cxm-mm__lista a[aria-current="page"] { background: var(--cxm-niebla); }
.cxm-mm__lista a[aria-current="page"] b { color: var(--cxm-acento); }
.cxm-mm__lista b { display: block; font: 600 15px/1.3 var(--cxm-f); }
.cxm-mm__lista span { display: block; margin-top: 1px; font: 400 13.5px/1.4 var(--cxm-f); color: var(--cxm-texto-2); }
.cxm-mm__lista2 { display: grid; grid-template-columns: 1fr 1fr; }
.cxm-mm__pie, .cxm-mm__enlace { display: block; color: var(--cxm-acento); font: 600 15px/1.3 var(--cxm-f); }
.cxm-mm__pie { margin-top: 12px; padding: 12px 10px 2px; border-top: 1px solid var(--cxm-linea); }
.cxm-mm__enlace { margin-top: 6px; padding: 8px 10px; }
.cxm-mm__pie:hover, .cxm-mm__enlace:hover { color: var(--cxm-acento-2); text-decoration: underline; }

/* ---------- Versión visual: iconos y tarjeta destacada ---------- */
.cxm-mm { display: flex; gap: 22px; align-items: stretch; }
.cxm-mm[hidden] { display: none; }
.cxm-mm__cuerpo { flex: 1 1 auto; min-width: 0; }
.cxm-mm { min-width: 0; }
.cxm-mm__cuerpo > .cxm-mm__rejilla { min-width: 540px; }
.cxm-mm__cuerpo > .cxm-mm__rejilla3 { min-width: 620px; }
.cxm-mmestrecho .cxm-mm__cuerpo { min-width: 300px; }
.cxm-mm__cuerpo > .cxm-mm__lista2 { min-width: 420px; }
.cxm-mm__lista a, .cxm-mm__lista b, .cxm-mm__lista span { min-width: 0; white-space: normal; word-break: normal; overflow-wrap: normal; hyphens: manual; }
.cxm-mm__lista a { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.cxm-mm__lista a:has(> span) { align-items: start; }
.cxm-mm__lista a > b, .cxm-mm__lista a > span { grid-column: 2; }
.cxm-glifo {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  grid-row: 1 / span 2; width: 32px; height: 32px; padding: 7px; border-radius: 8px;
  background: var(--cxm-tinte); color: var(--cxm-acento); flex: none;
  transition: background-color .15s ease, color .15s ease;
}
.cxm-mm__lista a:hover .cxm-glifo, .cxm-mm__lista a:focus-visible .cxm-glifo, .cxm-mm__lista a[aria-current="page"] .cxm-glifo { background: var(--cxm-acento); color: var(--cxm-papel); }
.cxm-mm__pie, .cxm-mm__enlace { display: flex; align-items: center; gap: 8px; }
.cxm-mm__pie .cxm-glifo, .cxm-mm__enlace .cxm-glifo { width: 22px; height: 22px; padding: 3px; background: none; }
.cxm-mm__lista2 a { grid-template-columns: 28px minmax(0, 1fr); }
.cxm-mm__lista2 .cxm-glifo { width: 28px; height: 28px; padding: 6px; }

.cxm-dest {
  flex: 0 0 240px; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px;
  background: var(--cxm-niebla); color: var(--cxm-texto); border: 1px solid transparent;
  transition: border-color .15s ease, transform .18s var(--cxm-curva);
}
.cxm-dest:hover, .cxm-dest:focus-visible { border-color: var(--cxm-acento); }
.cxm-dest:hover .cxm-dest__foto img { transform: scale(1.03); }
.cxm-dest__foto { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 4px; overflow: hidden; border-radius: 7px; background: #0c2440; }
.cxm-dest__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--cxm-curva); }
.cxm-dest__fotoapp img { object-position: 50% 8%; }
.cxm-dest__ia { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(7, 26, 46, .72); color: #fff; font: 500 10.5px/1.3 var(--cxm-f); }
.cxm-dest__logo { display: grid; place-items: center; height: 72px; margin-bottom: 4px; border-radius: 7px; background: #fff; }
.cxm-dest__logo img { max-width: 70%; max-height: 52px; width: auto; height: auto; }
.cxm-dest__eti { font: 500 11px/1.3 var(--cxm-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--cxm-acento); }
.cxm-dest b { font: 700 16px/1.25 'Inter Tight', var(--cxm-f); letter-spacing: -.01em; }
.cxm-dest > span:not([class]) { font: 400 13.5px/1.45 var(--cxm-f); color: var(--cxm-texto-2); }
.cxm-dest__ir { margin-top: auto; padding-top: 6px; color: var(--cxm-acento); font: 600 14px/1.3 var(--cxm-f); }
.cxm-destcaso { background: #00393f; color: #fff; }
.cxm-destcaso > span:not([class]) { color: #cfe7ea; }
.cxm-destcaso .cxm-dest__eti, .cxm-destcaso .cxm-dest__ir { color: #6fd3da; }
.cxm-destapp .cxm-dest__logo { background: var(--cxm-papel); }
.cxm-destapp .cxm-dest__logo img { max-height: 48px; }
@media (max-width: 1319.98px) { .cxm-dest { flex-basis: 210px; } }
@media (prefers-reduced-motion: reduce) { .cxm-dest:hover .cxm-dest__foto img { transform: none; } }

/* ---------- Acciones ---------- */
.cxm-acciones { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.cxm-clientes { display: inline-flex; align-items: center; gap: 6px; color: var(--cxm-texto); font: 500 15px/1 var(--cxm-f); white-space: nowrap; }
.cxm-clientes:hover { color: var(--cxm-acento); }
.cxm-cta, .cxm-linea {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px;
  border-radius: 8px; font: 600 15px/1.2 var(--cxm-f); white-space: nowrap; transition: background-color .15s, transform .14s var(--cxm-curva);
}
.cxm-cta { background: #006f78; color: #fff !important; border: 1px solid transparent; }
.cxm-cta:hover { background: #00575f; }
.cxm-cta:active, .cxm-linea:active { transform: scale(.97); }
.cxm-ctaancho { width: 100%; min-height: 48px; }
.cxm-linea { width: 100%; min-height: 48px; background: var(--cxm-papel); color: var(--cxm-texto) !important; border: 1px solid var(--cxm-linea); }
.cxm-menu {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; margin: 0;
  border: 1px solid var(--cxm-linea); background: var(--cxm-papel); color: var(--cxm-texto); border-radius: 8px; cursor: pointer; font: 600 15px/1 var(--cxm-f);
}

/* «Consulta la cobertura»: acción destacada en escritorio y en el cajón móvil */
.cxm-mm__pie.cxm-cobertura {
  margin-top: 14px; padding: 12px 14px; border-top: 0; border-radius: 10px;
  background: var(--cxm-tinte); color: var(--cxm-acento); font-weight: 700;
}
.cxm-mm__pie.cxm-cobertura:hover { background: var(--cxm-acento); color: var(--cxm-papel); text-decoration: none; }
.cxm-mm__pie.cxm-cobertura .cxm-glifo { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--cxm-acento); color: var(--cxm-papel); }
.cxm-mm__pie.cxm-cobertura:hover .cxm-glifo { background: var(--cxm-papel); color: var(--cxm-acento); }
.cxm-mm__pie.cxm-cobertura > span[aria-hidden] { margin-left: auto; }
.cxm-cajon__lista a.cxm-cobertura {
  display: flex; align-items: center; gap: 10px; margin: 10px 4px 4px; padding: 13px 14px; border-radius: 10px;
  background: var(--cxm-acento); color: #fff; font: 600 15.5px/1.3 var(--cxm-f);
}
.cxm-cajon__lista a.cxm-cobertura:hover { background: var(--cxm-acento-2); }
.cxm-cajon__lista a.cxm-cobertura svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Selector de idioma (marcado de cx-i18n.js) */
.cxm-lang { position: relative; }
.cxm-lang .cx-nav__lang-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px; margin: 0; border: 0; border-radius: 6px;
  background: none; cursor: pointer; color: var(--cxm-texto); font: 600 14px/1 var(--cxm-mono); letter-spacing: .04em;
}
.cxm-lang .cx-nav__lang-btn:hover, .cxm-lang .cx-nav__lang-btn[aria-expanded="true"] { background: var(--cxm-niebla); }
.cxm-lang .cx-nav__lang-chev { opacity: .6; }
.cxm-lang .cx-nav__lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 10020; min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: var(--cxm-papel); border: 1px solid var(--cxm-linea); border-radius: 10px; box-shadow: var(--cxm-sombra);
}
.cxm-lang .cx-nav__lang-menu[hidden] { display: none; }
.cxm-cab .cxm-lang .cx-nav__lang-menu { background: var(--cxm-papel) !important; border: 1px solid var(--cxm-linea) !important; box-shadow: var(--cxm-sombra) !important; }
.cxm-cab .cxm-lang .cx-nav__lang-opt { color: var(--cxm-texto) !important; background: transparent; }
.cxm-cab .cxm-lang .cx-nav__lang-opt:hover { background: var(--cxm-niebla); }
.cxm-cab .cxm-lang .cx-nav__lang-opt[aria-current="true"] { color: var(--cxm-acento) !important; }
.cxm-lang .cx-nav__lang-opt { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left; font: 400 15px/1.2 var(--cxm-f); color: var(--cxm-texto); }
.cxm-lang .cx-nav__lang-opt:hover { background: var(--cxm-niebla); }
.cxm-lang .cx-nav__lang-opt[aria-current="true"] { font-weight: 600; color: var(--cxm-acento); }

@media (max-width: 1399.98px) {
  .cxm-cab__in { gap: 16px; }
  .cxm-acciones { gap: 10px; }
  .cxm-nav__boton, .cxm-nav__enlace { padding: 0 9px; }
  .cxm-clientes span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cxm-clientes { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
  .cxm-clientes:hover { background: var(--cxm-niebla); }
}
@media (max-width: 1239.98px) {
  .cxm-nav, .cxm-clientes { display: none; }
  .cxm-menu { display: inline-flex; }
}
@media (max-width: 639.98px) {
  .cxm-acciones .cxm-cta { display: none; }
  .cxm-cab__in { gap: 10px; }
}

/* ---------- Cajón móvil (patrón de Repliegue, Moxen) ---------- */
.cxm-velo { position: fixed; inset: 0; z-index: 2147483600; background: rgba(7, 26, 46, .5); opacity: 0; }
.cxm-velo[hidden] { display: none; }
.cxm-cajon {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147483601; width: min(380px, 90vw);
  display: flex; flex-direction: column; background: var(--cxm-papel); color: var(--cxm-texto);
  box-shadow: -20px 0 40px rgba(7, 26, 46, .2); transform: translateX(100%); touch-action: pan-y;
  font: 400 16px/1.4 var(--cxm-f);
}
.cxm-cajon[hidden] { display: none; }
.cxm-cajon__cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--cxm-linea); }
.cxm-cajon__cab img { width: 120px; height: auto; }
.cxm-cajon__cerrar { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--cxm-texto); cursor: pointer; }
.cxm-cajon__cerrar:hover { background: var(--cxm-niebla); }
.cxm-cajon__nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 8px 16px; }
.cxm-cajon__grupo > button, .cxm-cajon__nav > a {
  display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 12px; margin: 0;
  border: 0; background: none; cursor: pointer; font: 600 17px/1.2 var(--cxm-f); color: var(--cxm-texto); text-align: left;
}
.cxm-cajon__grupo > button::after { content: '+'; font: 400 22px/1 var(--cxm-f); color: var(--cxm-texto-2); }
.cxm-cajon__grupo > button[aria-expanded="true"]::after { content: '−'; }
.cxm-cajon__lista { padding: 0 0 10px 12px; }
.cxm-cajon__lista[hidden] { display: none; }
.cxm-cajon__lista a { display: block; padding: 10px 12px; color: var(--cxm-texto); border-radius: 6px; font: 400 15.5px/1.3 var(--cxm-f); }
.cxm-cajon__lista a:hover, .cxm-cajon__lista a[aria-current="page"] { background: var(--cxm-niebla); }
.cxm-cajon__lista .cxm-mm__grupo { margin: 10px 12px 2px !important; }
.cxm-cajon__pie { display: grid; gap: 10px; padding: 16px 20px 24px; border-top: 1px solid var(--cxm-linea); }
.cxm-cajon__tel { text-align: center; color: var(--cxm-acento); font: 500 15px/1.3 var(--cxm-f); padding: 6px; }
html.cxm-con-cajon, html.cxm-con-cajon body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cxm-cab *, .cxm-cajon { animation: none !important; transition: none !important; }
}
