/* =========================================================
   Norux — réplica de la plataforma (src/site/norux.mjs)
   Estructura y color de Norux (barra navy, tarjetas blancas, KPIs con
   tinte); tipografía, radios y ritmo de FleTrack.
   ========================================================= */

.nx, .nx-screen, .nx-embed {
  --nx-blue: #2563eb; --nx-navy: #061847; --nx-bg: #f2f5fa; --nx-line: #e6ebf2; --nx-ink: #0f172a; --nx-mute: #5b6577;
  color: var(--nx-ink); text-align: left;
}
.nx {
  container-type: inline-size;
  display: flex; width: 100%; height: 100%;
  overflow: hidden; border-radius: inherit; background: var(--nx-bg);
}

/* Barra lateral */
.nx-side {
  flex: none; width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 22px 14px; overflow: hidden;
  background: radial-gradient(125% 42% at 8% 0%, rgba(37, 99, 235, .32) 0%, rgba(37, 99, 235, 0) 62%), linear-gradient(102deg, #0b34ae -8%, #082068 34%, #061847 62%, #041030 84%, #020818 100%);
  color: rgba(255, 255, 255, .78);
}
.nx-side img { width: 112px; height: auto; margin: 0 0 18px 8px; }
.nx-side p { margin: 12px 0 4px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.nx-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nx-side li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nx-side li.is-on { background: var(--nx-blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .9); }
.nx-side svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nx-main { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; overflow: hidden; }

/* Encabezado */
.nx-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--nx-line); }
.nx-head small { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-blue); }
.nx-head small svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.nx-head b { display: block; margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.nx-head > div:first-child > span { display: block; margin-top: 2px; font-size: 13px; color: var(--nx-mute); }
.nx-comm { display: flex; align-items: center; gap: 12px; flex: none; }
.nx-comm b { font-size: 13.5px; margin: 0; } .nx-comm small { display: block; font-size: 12px; color: var(--nx-mute); letter-spacing: 0; text-transform: none; font-weight: 400; }
.nx-ring {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(#22c55e calc(var(--p) * 1%), #e6ebf2 0);
  animation: nx-ring 1.4s var(--ease-out) .6s both;
}
.nx-ring b { display: block; width: 100%; margin: 0 !important; font-size: 12.5px !important; font-weight: 600; line-height: 1; text-align: center; letter-spacing: -.02em; }
@keyframes nx-ring { from { opacity: 0; transform: scale(.7); } }

/* KPIs */
.nx-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.nx-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nx-kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--nx-line);
  --t: #2563eb; --tb: #eaf1fe;
}
.nx-kpi--teal { --t: #0d9488; --tb: #e2f6f3; } .nx-kpi--violet { --t: #7c3aed; --tb: #f0eafe; } .nx-kpi--amber { --t: #c2620c; --tb: #fdf1e3; }
.nx-kpi--red { --t: #dc2626; --tb: #fdecec; border-color: #f6d4d4; } .nx-kpi--green { --t: #15803d; --tb: #e5f6ea; }
.nx-kpi__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nx-kpi small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-mute); line-height: 1.3; }
.nx-kpi__top span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--tb); }
.nx-kpi__top svg { width: 17px; height: 17px; fill: none; stroke: var(--t); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-kpi b { font-size: 24px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-kpi em { font-style: normal; font-size: 12px; color: var(--nx-mute); }
.nx-kpi--red b { color: #dc2626; }
.nx-trend { font-size: 12px; font-weight: 600; } .nx-trend.is-good { color: #15803d; } .nx-trend.is-bad { color: #dc2626; }
.is-live .nx-kpi { animation: fade-up .6s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + .5s); }

/* Tarjetas */
.nx-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.nx-grid--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.nx-card { min-width: 0; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--nx-line); }
.nx-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nx-card__head b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.nx-card__head small { font-size: 12px; color: var(--nx-mute); white-space: nowrap; }

/* Requiere atención / alertas */
.nx-attn ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nx-attn li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff7ed; border-left: 3px solid #f59e0b; }
.nx-attn li.is-bad { background: #fef2f2; border-left-color: #ef4444; }
.nx-attn li > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: #fff; }
.nx-attn li svg { width: 16px; height: 16px; fill: none; stroke: #c2620c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nx-attn li.is-bad svg { stroke: #dc2626; }
.nx-attn b { display: block; font-size: 13.5px; font-weight: 600; }
.nx-attn small { display: block; font-size: 12px; color: var(--nx-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-attn div { min-width: 0; }
.is-live .nx-attn li { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms + .9s); }
.nx-attn li.is-bad > span { animation: nx-alarm 1.6s ease-in-out 2s infinite; }
@keyframes nx-alarm { 50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, .2); } }

/* Estado de flota */
.nx-fleet__total { display: flex; align-items: baseline; gap: 8px; }
.nx-fleet__total b { font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
.nx-fleet__total span { font-size: 13px; color: var(--nx-mute); }
.nx-fleet__bar { display: flex; gap: 3px; height: 10px; margin: 12px 0 14px; }
.nx-fleet__bar i { width: var(--w); border-radius: 99px; background: var(--c); transform-origin: 0 50%; }
.is-live .nx-fleet__bar i { animation: v-grow-x .9s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms + 1s); }
.nx-fleet__legend, .nx-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.nx-fleet__legend li, .nx-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nx-mute); }
.nx-fleet__legend span, .nx-legend span { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.nx-fleet__legend b, .nx-legend b { margin-left: auto; color: var(--nx-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.nx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.nx-legend--col { flex-direction: column; flex-wrap: nowrap; gap: 10px; margin: 0; min-width: 0; flex: 1; }

/* Actividad 7 días: las pestañas cambian solas cada 4 s */
.nx-act__tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.nx-act__tabs span { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--nx-line); font-size: 12px; font-weight: 600; color: var(--nx-mute); animation: nx-tab 16s infinite; animation-delay: calc(var(--k) * 4s - 16s); }
@keyframes nx-tab { 0%, 24% { background: #eaf1fe; border-color: #bcd2fb; color: var(--nx-blue); } 25%, 100% { background: transparent; border-color: var(--nx-line); color: var(--nx-mute); } }
.nx-act__plot { position: relative; }
.nx-act__plot svg { display: block; width: 100%; height: 150px; overflow: visible; }
.nx-act__plot line { stroke: var(--nx-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nx-act__s { opacity: 0; animation: nx-series 16s infinite; animation-delay: calc(var(--k) * 4s - 16s); }
@keyframes nx-series { 0% { opacity: 0; } 2%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
.nx-act__area { fill: rgba(37, 99, 235, .12); }
.nx-act__line { fill: none; stroke: var(--nx-blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.nx-act__s circle { fill: #fff; stroke: var(--nx-blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.nx-act__x { display: flex; justify-content: space-between; margin-top: 6px; }
.nx-act__x small { font-size: 11px; font-weight: 600; color: var(--nx-mute); }

/* Mapa operativo */
.nx-map { display: flex; flex-direction: column; }
.nx-map__box { position: relative; flex: 1; min-height: 180px; overflow: hidden; border-radius: 12px; }
.nx-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-map__route { stroke-dasharray: 900; stroke-dashoffset: 900; animation: nx-route 2.4s var(--ease-out) 1s forwards; }
@keyframes nx-route { to { stroke-dashoffset: 0; } }
.nx-map__car { offset-rotate: 0deg; animation: drive 12s linear 1.6s infinite; }
.nx-map__ping { animation: sc-node 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.nx-map__pop { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 12px 26px -14px rgba(15, 23, 42, .45); animation: fade-up .6s var(--ease-out) 1.8s both; }
.nx-map__pop .live__status { align-self: flex-start; }
.nx-map__pop b { font-size: 13px; } .nx-map__pop small { font-size: 11.5px; color: var(--nx-mute); }

/* Combustible+: barras + línea de nivel */
.nx-combo { position: relative; display: flex; align-items: stretch; gap: 8px; height: 170px; padding-bottom: 20px; }
.nx-combo__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nx-combo__bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; background: #fffaf2; border-radius: 6px; }
.nx-combo__bars i { width: 40%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: #4ade80; transform-origin: 50% 100%; }
.nx-combo__bars i.is-drain { background: #f87171; }
.is-live .nx-combo__bars i { animation: v-grow 1s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms + .3s); }
.nx-combo__col small { font-size: 10.5px; font-weight: 600; color: var(--nx-mute); }
.nx-combo__line { position: absolute; left: 0; right: 0; top: 0; bottom: 26px; width: 100%; height: calc(100% - 26px); overflow: visible; }
.nx-combo__line polyline { fill: none; stroke: #f59e0b; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.is-live .nx-combo__line { animation: v-clip 1.6s var(--ease-out) .9s both; }

/* Barras de nivel / vida / ranking */
.nx-levels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nx-levels p { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.nx-levels b { font-weight: 600; } .nx-levels p span { color: var(--nx-mute); font-variant-numeric: tabular-nums; }
.nx-bar { display: block; height: 8px; border-radius: 99px; background: #edf1f6; overflow: hidden; }
.nx-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: #22c55e; transform-origin: 0 50%; }
.nx-bar.is-low i { background: #ef4444; } .nx-bar.is-life i { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.is-live .nx-bar i { animation: v-grow-x 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 100ms + .4s); }
.nx-levels li, .nx-rank li { --i: inherit; }
.nx-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nx-rank li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 70px; align-items: center; gap: 12px; font-size: 13px; }
.nx-rank em { font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Dona de mantenimientos */
.nx-donut-wrap { display: flex; align-items: center; gap: 22px; }
.nx-donut {
  position: relative; display: grid; place-items: center; align-content: center; flex: none; width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 64%, transparent 66%), conic-gradient(#22c55e 0 calc(var(--a) * 1%), #f59e0b 0 calc((var(--a) + var(--b)) * 1%), #ef4444 0);
}
.nx-donut b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.nx-donut small { font-size: 12px; color: var(--nx-mute); }
.is-live .nx-donut { animation: nx-ring 1.2s var(--ease-out) .5s both; }

/* Tabla de salud de flota */
.nx-table { padding: 6px 0; overflow-x: auto; }
.nx-table__row { display: grid; grid-template-columns: 1.3fr .7fr .8fr .9fr .9fr .8fr .7fr; align-items: center; gap: 10px; min-width: 620px; padding: 12px 18px; border-top: 1px solid var(--nx-line); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.nx-table__row--head { border-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-mute); }
.is-live .nx-table__row:not(.nx-table__row--head) { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + .3s); }
.nx-score, .nx-chip { display: inline-grid; place-items: center; min-width: 36px; padding: 3px 8px; border-radius: 8px; font-style: normal; font-weight: 600; font-size: 12.5px; justify-self: start; }
.is-ok.nx-score, .is-ok.nx-chip { background: #e5f6ea; color: #15803d; }
.is-warn.nx-score, .is-warn.nx-chip { background: #fdf1e3; color: #b45309; }
.is-bad.nx-score, .is-bad.nx-chip { background: #fdecec; color: #b91c1c; }

/* Encabezado de pantalla de módulo */
.nx-shead { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--nx-line); border-left: 4px solid var(--t, #2563eb); --t: #2563eb; --tb: #eaf1fe; }
.nx-shead--amber { --t: #ea7a12; --tb: #fdf1e3; } .nx-shead--violet { --t: #7c3aed; --tb: #f0eafe; } .nx-shead--teal { --t: #0d9488; --tb: #e2f6f3; }
.nx-shead > span { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--tb); }
.nx-shead svg { width: 22px; height: 22px; fill: none; stroke: var(--t); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-shead small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t); }
.nx-shead b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.nx-shead em { display: block; font-style: normal; font-size: 13px; color: var(--nx-mute); }

/* Tarjeta de Norux dentro de los paneles de soluciones */
.nx-embed .nx-card { padding: 0; border: 0; background: none; }
.nx-embed .nx-card__head small { display: none; }
.bento__panel .nx-embed .nx-combo { height: 150px; }

/* ---------- Página de Norux: vitrina de módulos ---------- */
.nx-show { margin-top: 40px; }
.nx-show__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nx-show__tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid rgba(17, 19, 22, .1); font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nx-show__tabs button:hover { border-color: rgba(17, 19, 22, .3); color: var(--ink); }
.nx-show__tabs button[aria-selected="true"] { background: #061847; border-color: #061847; color: #fff; }
.nx-show__tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-show__tabs button { position: relative; overflow: hidden; }
.nx-show__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #acc6ff; transform-origin: 0 50%; animation: nx-timer 7s linear both; }
.nx-show.is-paused .nx-show__tabs button::after { animation: none; opacity: 0; }
@keyframes nx-timer { from { transform: scaleX(0); } }
.nx-screen { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 28px; background: var(--nx-bg); border: 1px solid rgba(17, 19, 22, .05); }
.nx-screen[hidden] { display: none; }
.nx-screen:not([hidden]) { animation: fade-up .5s var(--ease-out) both; }

/* ---------- Encajes: hero de Norux, inicio ---------- */
.pp-hero__stage--nx { padding: 0; place-items: stretch; min-height: 600px; background: var(--brand); }
.pp-hero__stage--nx .pm { display: block; height: 100%; }
.pp-hero__stage--nx .nx { position: absolute; inset: 22px; width: auto; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero__media--nx { height: auto; aspect-ratio: auto; background: #061847; padding: 0; }
.hero__media--nx .live { position: relative; inset: auto; height: 620px; }
.hero__media--nx .nx { border-radius: 0; }

/* La consola se adapta a su propio ancho */
@container (max-width: 980px) {
  .nx-kpi b { font-size: 20px; }
  .nx-kpi { padding: 12px 14px; }
  .nx-kpis:not(.nx-kpis--4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-kpis:not(.nx-kpis--4) .nx-kpi:nth-child(n+4) { display: none; }
}
@container (max-width: 760px) {
  .nx-side { width: 64px; padding: 18px 10px; } .nx-side img, .nx-side p, .nx-side span { display: none; }
  .nx-side li { justify-content: center; padding: 10px 0; }
  .nx-comm { display: none; }
  .nx-grid { grid-template-columns: 1fr; } .nx--hero .nx-grid .nx-attn, .nx--home .nx-grid .nx-attn { display: none; }
  .nx--hero .nx-grid { display: none; }
  .nx-kpi small { font-size: 10px; letter-spacing: .04em; }
  .nx-act__plot svg { height: 110px; }
}
@container (max-width: 640px) {
  .nx-kpis:not(.nx-kpis--4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-kpis:not(.nx-kpis--4) .nx-kpi:nth-child(n+3) { display: none; }
  .nx-card__head { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@container (max-width: 520px) {
  .nx-side { display: none; }
  .nx-main { padding: 12px; gap: 10px; }
  .nx-kpis:not(.nx-kpis--4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-kpis:not(.nx-kpis--4) .nx-kpi:nth-child(n+3) { display: none; }
  .nx-head { padding: 14px; } .nx-head b { font-size: 19px; } .nx-head > div:first-child > span { display: none; }
  .nx-kpi b { font-size: 20px; }
}
@media (max-width: 1100px) {
  .nx-grid--wide { grid-template-columns: 1fr; }
  .nx-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hero__media--nx .live { height: 520px; }
  .pp-hero__stage--nx { min-height: 520px; }
  .pp-hero__stage--nx .nx { inset: 12px; }
  .nx-screen { padding: 12px; border-radius: 22px; }
  .nx-donut-wrap { flex-direction: column; align-items: flex-start; }
  .nx-rank li { grid-template-columns: 84px minmax(0, 1fr) 62px; }
  .nx-show__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .nx-show__tabs button { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nx *, .nx-screen * { animation: none !important; }
  .nx-act__s { opacity: 0; } .nx-act__s:first-of-type { opacity: 1; }
  .nx-act__tabs span:first-child { background: #eaf1fe; color: var(--nx-blue); }
  .nx-map__route { stroke-dashoffset: 0; }
}

/* =========================================================
   Sección "Así lo ves en Norux" (soluciones e industrias)
   ========================================================= */
.nxs__grid { display: flex; flex-direction: column; gap: 44px; }
.nxs__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 16px; align-items: start; }
.nxs__text > :not(.nxs__points) { grid-column: 1; justify-self: start; }
.nxs__points { grid-column: 2; grid-row: 1 / span 4; align-self: center; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.nxs__points li { display: flex; gap: 14px; align-items: flex-start; }
.nxs__points li > span { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: #eaf1fe; }
.nxs__points svg { width: 21px; height: 21px; fill: none; stroke: #1d4ed8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nxs__points b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.nxs__points small { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.nxs__win { min-width: 0; padding: 14px; border-radius: 30px; background: linear-gradient(160deg, #0b34ae 0%, #061847 55%, #020818 100%); box-shadow: 0 40px 80px -40px rgba(6, 24, 71, .7); }
.nx--window { height: auto; border-radius: 20px; }

/* Rastreo en vivo */
.nx-track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; }
.nx-track__list { display: flex; flex-direction: column; gap: 10px; }
.nx-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-filters span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--nx-line); font-size: 11.5px; font-weight: 600; color: var(--nx-mute); }
.nx-filters span.is-on { background: var(--nx-ink); border-color: var(--nx-ink); color: #fff; }
.nx-unit { padding: 12px; border-radius: 12px; border: 1px solid var(--nx-line); border-left: 3px solid var(--nx-blue); display: flex; flex-direction: column; gap: 4px; }
.nx-unit p { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-unit b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.nx-unit small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--nx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-unit svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-unit__meta { justify-content: space-between; font-variant-numeric: tabular-nums; }
.is-live .nx-unit { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms + .4s); }
.nx-track__map { display: flex; padding: 8px; } .nx-track__map .nx-map__box { min-height: 260px; }
.is-info.nx-chip { background: #eaf1fe; color: #1d4ed8; }

/* Video */
.nx-cam { display: flex; flex-direction: column; gap: 10px; }
.nx-cam__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-cam__tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--nx-line); font-size: 12px; font-weight: 600; color: var(--nx-mute); }
.nx-cam__tabs span.is-on { background: #fdecec; border-color: #f6caca; color: #b91c1c; }
.nx-cam__tabs i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: sc-blink 1.2s steps(1) infinite; }
.nx-cam__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; background: #1a2130; }
.nx-cam__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-cam__rec { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; font-weight: 600; }
.nx-cam__rec i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: sc-blink 1.2s steps(1) infinite; }
.nx-cam__tag { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 8px; background: #9bff03; color: #111316; font-size: 11.5px; font-weight: 700; animation: fade-up .6s var(--ease-out) 1.2s both; }
.nx-cam__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.nx-cam__foot span { color: var(--nx-mute); }
.nx-events li { padding-right: 10px; }
.nx-events li > div { flex: 1; }
.nx-events .nx-chip { flex: none; }

/* Horas trabajadas */
.nx-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nx-hours li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: 13px; }
.nx-hours b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-hours em { font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.nx-hours__bar { display: flex; gap: 3px; height: 12px; }
.nx-hours__bar i { width: var(--w); border-radius: 99px; background: #2563eb; transform-origin: 0 50%; }
.nx-hours__bar i.is-idle { background: #f59e0b; }
.is-live .nx-hours__bar i { animation: v-grow-x 1s var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + .4s); }

/* Temperatura */
.nx-temp { position: relative; }
.nx-temp svg { display: block; width: 100%; height: 170px; overflow: visible; }
.nx-temp__lim { stroke: #22c55e; stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.nx-temp__line { fill: none; stroke: #0f172a; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nx-temp__dot { fill: #ef4444; stroke: #fff; stroke-width: 2; }
.is-live .nx-temp svg { animation: v-clip 1.6s var(--ease-out) .3s both; }
.nx-temp__tip { position: absolute; right: 18%; top: 0; padding: 4px 9px; border-radius: 8px; background: #fdecec; color: #b91c1c; font-size: 12px; font-weight: 600; animation: fade-up .5s var(--ease-out) 1.8s both; }
.nx-sensors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nx-sensors li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--nx-line); }
.nx-sensors b { display: block; font-size: 13px; } .nx-sensors small { display: block; font-size: 11.5px; color: var(--nx-mute); }
.is-live .nx-sensors li { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + .5s); }

/* Tablas de eventos y viajes */
.nx-table__row--ev { grid-template-columns: 2.2fr .9fr 1.4fr .6fr .9fr; min-width: 640px; }
.nx-table__row--trip { grid-template-columns: 1fr 1.3fr 1.3fr .8fr .9fr .6fr; min-width: 640px; }
.nx-ev { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.nx-ev svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--nx-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Geocercas */
.nx-geo { padding: 8px; } .nx-geo .nx-map__box { min-height: 280px; }

/* Ventana angosta */
@container (max-width: 820px) {
  .nx-grid--wide, .nx-track { grid-template-columns: 1fr; }
  .nx-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-hours li { grid-template-columns: 120px minmax(0, 1fr) 48px; }
  .nx-track__map { display: none; }
}
@media (max-width: 1100px) { .nxs__text { grid-template-columns: 1fr; } .nxs__points { grid-column: 1; grid-row: auto; } }
@media (max-width: 600px) { .nxs__points { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .nxs__win { padding: 8px; border-radius: 22px; } }

/* =========================================================
   Todo dato del sitio con aspecto de Norux (tarjetas de cada página)
   ========================================================= */
.vw { --nx-blue: #2563eb; --nx-line: #e6ebf2; --nx-ink: #0f172a; --nx-mute: #5b6577; }
.nx-src { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 10px 5px 8px; border-radius: 99px; background: #f2f5fa; border: 1px solid var(--nx-line, #e6ebf2); font-size: 11.5px; font-weight: 600; color: #5b6577; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.nx-src img { height: 10px; width: auto; }
.nx-src i { width: 1px; height: 12px; background: #cfd6e2; }

/* Encabezado de dato */
.vhead small, .vring__text > small, .vlist__label, .vsteps__head small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5b6577; }
.vhead__row b { font-size: 26px; }
.vt--ok { background: #e5f6ea; color: #15803d; } .vt--warn { background: #fdf1e3; color: #b45309; }
.vt--bad { background: #fdecec; color: #b91c1c; } .vt--info { background: #eaf1fe; color: #1d4ed8; }

/* Línea y barras en azul Norux */
.vline__area { fill: rgba(37, 99, 235, .12); }
.vline__path { stroke: #2563eb; }
.vline__dot { background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .25); }
.vline__tip { background: #0f172a; }
.vbars__bar { background: #dbe6fd; border-radius: 7px 7px 3px 3px; }
.vbars__col.is-hi .vbars__bar { background: #2563eb; }
.vring__arc { stroke: #22c55e; } .vring__track { stroke: #e6ebf2; }
.vsteps li.is-done .vsteps__node, .vsteps__line i { background: #2563eb; }
.vsteps li.is-now .vsteps__node { box-shadow: inset 0 0 0 2px #2563eb, 0 0 0 5px rgba(37, 99, 235, .2); }

/* Listas como filas de alerta de Norux */
.vlist ul { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.vlist li { padding: 10px 12px; border: 0; border-radius: 12px; background: #f6f8fb; border-left: 3px solid #cfd6e2; }
.vlist li:last-child { padding-bottom: 10px; }
.vlist li:has(.vt--ok) { border-left-color: #22c55e; } .vlist li:has(.vt--warn) { background: #fff7ed; border-left-color: #f59e0b; }
.vlist li:has(.vt--bad) { background: #fef2f2; border-left-color: #ef4444; } .vlist li:has(.vlist__dot.vt--info) { border-left-color: #3b82f6; }

/* Paneles de tarjeta = tarjeta de Norux */
.bento__panel { border: 1px solid #e6ebf2; border-bottom: 0; box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .3); }
.bento__card--wide .bento__panel { border-bottom: 1px solid #e6ebf2; }
.stage__card .nx-src { margin-bottom: 10px; }
.nx-commcard { display: flex; align-items: center; gap: 14px; }
.nx-commcard b { display: block; font-size: 14px; } .nx-commcard small { display: block; font-size: 12px; color: #5b6577; }
.nx-embed .nx-commcard { padding: 0; }

/* Ventana de Norux en las secciones "Una misma plataforma…" / "El ecosistema…" */
.dsplit__media--nx, .esplit__media--nx { min-height: 0; align-self: center; padding: 18px; background: linear-gradient(160deg, #0b34ae 0%, #061847 55%, #020818 100%); }
.dsplit__media--nx { border-radius: 28px 0 0 28px; padding-right: 0; }
.esplit__media--nx { border-radius: 0 28px 28px 0; padding-left: 0; }
.dsplit__media--nx .nx { border-radius: 18px 0 0 18px; }
.esplit__media--nx .nx { border-radius: 0 18px 18px 0; }
@media (max-width: 1024px) {
  .dsplit__media--nx, .esplit__media--nx { border-radius: 24px; padding: 10px; }
  .dsplit__media--nx .nx, .esplit__media--nx .nx { border-radius: 16px; }
}
.bento__panel .nx-embed .nx-card__head { display: none; }

/* Maquetas de otros productos (ioMaq, Trayectus, Movilística) dentro de las secciones */
.pm-media { display: grid; place-items: center; padding: 28px; }
.dsplit__media--prod, .esplit__media--prod { min-height: 0; align-self: center; }
.dsplit__media--prod { border-radius: 28px 0 0 28px; } .esplit__media--prod { border-radius: 0 28px 28px 0; }
.pm-media--iomaq { background: #f7941d; } .pm-media--trayectus { background: #065e52; } .pm-media--movilistica { background: #fe773d; }
.pm-media .pm-win { max-width: 640px; }
@media (max-width: 1024px) { .dsplit__media--prod, .esplit__media--prod { border-radius: 24px; } .pm-media { padding: 14px; } }

/* =========================================================
   IoT Connect (video) — interfaz blanca, azul, barra de íconos
   ========================================================= */
.iot { container-type: inline-size; display: flex; width: 100%; overflow: hidden; border-radius: 18px; background: #f7f8fa; color: #0f172a; text-align: left; }
.iot-side { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; background: #fff; border-right: 1px solid #e8ebf0; }
.iot-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #1e3a8a; line-height: 1; }
.iot-logo small { font-size: 5px; letter-spacing: .2em; margin-top: 2px; }
.iot-side span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #475569; }
.iot-side span.is-on { background: #2563eb; color: #fff; }
.iot-side svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.iot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iot-head b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; } .iot-head small { font-size: 12.5px; color: #64748b; }
.iot-btn { padding: 7px 12px; border-radius: 9px; border: 1px solid #dbe1ea; background: #fff; font-size: 12.5px; font-weight: 600; color: #1d4ed8; }
.iot-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.iot-kpis > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e8ebf0; }
.iot-kpis b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .iot-kpis small { font-size: 11.5px; color: #64748b; }
.iot-kpis i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #2563eb; }
.iot-kpis i svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-live .iot-kpis > div { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + .4s); }
.iot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.iot-card { min-width: 0; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e8ebf0; }
.iot-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.iot-card__head b { font-size: 14.5px; font-weight: 600; } .iot-card__head small { font-size: 12px; color: #64748b; }
.iot-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.iot-big div { padding: 10px; border-radius: 10px; background: #f1f5fb; text-align: center; }
.iot-big b { display: block; font-size: 22px; font-weight: 600; } .iot-big small { font-size: 11px; color: #64748b; }
.iot-inc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.iot-inc li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.iot-inc__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #eef2ff; }
.iot-inc__ico svg { width: 16px; height: 16px; fill: none; stroke: #4338ca; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iot-inc__ico--ai { background: #fdecec; } .iot-inc__ico--ai svg { stroke: #b91c1c; }
.iot-inc b { display: block; font-size: 13px; } .iot-inc small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.iot-inc em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #334155; }
.iot-inc__bar { display: block; height: 5px; margin-top: 5px; border-radius: 99px; background: #e8ebf0; overflow: hidden; }
.iot-inc__bar i { display: block; height: 100%; width: var(--w); background: #2563eb; transform-origin: 0 50%; }
.is-live .iot-inc__bar i { animation: v-grow-x 1s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms + .5s); }
.iot-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.iot-clip { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.is-live .iot-clip { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms + .5s); }
.iot-clip__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 9px; background: #151b26; margin-bottom: 4px; }
.iot-clip__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.iot-clip__frame em { position: absolute; right: 6px; top: 6px; padding: 2px 6px; border-radius: 5px; background: #facc15; color: #111316; font-style: normal; font-size: 10px; font-weight: 700; }
/* Botón de video en la esquina, para que no tape la escena */
.iot-clip__frame i { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px 0 5px; border-radius: 5px; background: rgba(0, 0, 0, .55); color: #fff; font-style: normal; }
.iot-clip__frame i svg { position: static; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.iot-clip__frame i small { font-size: 9.5px; font-weight: 600; color: #fff; }
.iot-clip b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iot-clip small { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iot-clip small.iot-tag { align-self: flex-start; padding: 1px 6px; border-radius: 5px; background: #eef2ff; color: #4338ca; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
@container (max-width: 760px) {
  .iot-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iot-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Movilística (panel web) — navegación superior, acentos naranja
   ========================================================= */
.mv { container-type: inline-size; width: 100%; overflow: hidden; border-radius: 18px; background: #fff; color: #1f2937; text-align: left; }
.mv-top { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 2px solid #ffd7c4; }
.mv-top img { height: 20px; width: auto; flex: none; }
.mv-top nav { display: flex; gap: 14px; flex: 1; min-width: 0; overflow: hidden; }
.mv-top nav span { font-size: 12.5px; font-weight: 500; color: #374151; white-space: nowrap; }
.mv-top nav span.is-on { color: #c2410c; font-weight: 600; }
.mv-user { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; flex: none; }
.mv-user svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mv-main { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; background: #fffaf7; }
.mv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mv-kpis > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1.5px solid #ffc9b0; }
.mv-kpis svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #f26b2a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mv-kpis b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; } .mv-kpis small { font-size: 11.5px; color: #6b7280; }
.is-live .mv-kpis > div { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + .4s); }
.mv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.mv-card { min-width: 0; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1.5px solid #ffe0d1; }
.mv-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mv-card__head b { font-size: 14px; font-weight: 600; } .mv-card__head small { font-size: 11.5px; color: #9a5b3a; white-space: nowrap; }
.mv-route { position: relative; padding: 10px 12px; margin-top: 8px; border-radius: 10px; border-left: 4px solid #22c55e; background: #fafafa; }
.is-live .mv-route { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms + .5s); }
.mv-route p { display: flex; justify-content: space-between; gap: 8px; }
.mv-route p b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-route p span { flex: none; padding: 1px 7px; border-radius: 6px; background: #fff0e8; color: #c2410c; font-size: 11px; font-weight: 600; }
.mv-route small { display: block; margin-top: 3px; font-size: 11.5px; color: #6b7280; }
.mv-route small b { color: #111827; }
.mv-bar { display: block; height: 7px; margin-top: 8px; border-radius: 99px; background: #eef0f3; overflow: hidden; }
.mv-bar i { display: block; height: 100%; width: var(--w); background: #22c55e; border-radius: inherit; transform-origin: 0 50%; }
.is-live .mv-bar i { animation: v-grow-x 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 120ms + .7s); }
.mv-route em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; font-weight: 600; color: #374151; }
.mv-chart { display: flex; align-items: stretch; gap: 8px; height: 150px; padding: 8px; border-radius: 10px; background: #fffbeb; }
.mv-chart > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mv-chart > div > span { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mv-chart i { width: 50%; max-width: 18px; border-radius: 4px 4px 0 0; background: #22c55e; transform-origin: 50% 100%; }
.mv-chart i.is-forced { background: #ef4444; }
.is-live .mv-chart i { animation: v-grow .9s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms + .4s); }
.mv-chart small { font-size: 10.5px; color: #6b7280; }
.mv-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 14px; }
.mv-legend li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b7280; }
.mv-legend span { width: 9px; height: 9px; border-radius: 3px; }
@container (max-width: 760px) {
  .mv-top nav { display: none; }
  .mv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-grid { grid-template-columns: 1fr; }
}

/* Contenedores de estas ventanas en las secciones */
.pm-media--iot { background: linear-gradient(160deg, #1e3a8a 0%, #0f172a 100%); }
.pm-media--movi { background: #fe773d; }
.nx-src--iot b { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #1e3a8a; }
.nx-embed .iot-card, .nx-embed .mv-card { padding: 0; border: 0; background: none; }
.bento__panel .nx-embed .iot-card__head, .bento__panel .nx-embed .mv-card__head { display: none; }
/* "Estado actual de la flota": la leyenda pasa a una columna cuando la tarjeta es angosta (sin cifras encimadas) */
.nx-fleet__legend { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.nx-fleet__legend li { min-width: 0; white-space: nowrap; }
.nx-fleet__legend li > :not(span):not(b) { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Trayectus (tablero de rutas) ---------- */
.tr { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 360px; background: #f4f8f7; color: #10231f; font-size: 13px; text-align: left; overflow: hidden; }
.tr-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: #065e52; color: #fff; }
.tr-top img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.tr-top nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.tr-top nav span { padding: 6px 11px; border-radius: 99px; font-size: 12px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.tr-top nav span.is-on { background: #b8e62e; color: #0b2a24; font-weight: 600; }
.tr-clock { font-size: 12px; font-weight: 600; color: #b8e62e; }
.tr-main { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.tr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tr-kpis div { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #e2ece9; animation: vg-in .5s ease-out both; animation-delay: calc(var(--i) * .08s); }
.tr-kpis small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #5b7069; }
.tr-kpis b { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tr-card { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #e2ece9; }
.tr-card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; } .tr-card__head small { color: #5b7069; font-size: 11.5px; }
.tr-routes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tr-routes li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; animation: vg-in .5s ease-out both; animation-delay: calc(var(--i) * .1s); }
.tr-routes b { display: block; font-size: 12.5px; } .tr-routes small { font-size: 11px; color: #5b7069; }
.tr-routes em { font-style: normal; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-bar { height: 8px; border-radius: 99px; background: #e6efec; overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #0f766e; transform-origin: left; animation: vg-grow 1.2s ease-out both; }
.tr-routes li.is-warn .tr-bar i { background: #f59e0b; } .tr-routes li.is-done .tr-bar i { background: #84cc16; }
.tr-toast { position: absolute; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #0b2a24; color: #fff; box-shadow: 0 16px 30px -16px rgba(6, 94, 82, .7); animation: vg-pop .5s 1s ease-out both; }
.tr-toast span { width: 10px; height: 10px; border-radius: 50%; background: #b8e62e; box-shadow: 0 0 0 5px rgba(184, 230, 46, .25); }
.tr-toast b { display: block; font-size: 12px; } .tr-toast small { font-size: 11px; opacity: .7; }

/* ---------- Tablero angosto (teléfono): etiquetas y cifras siempre dentro de su tarjeta ---------- */
@container (max-width: 460px) {
  /* Horas por equipo: nombre y horas arriba, barra a todo el ancho abajo */
  .nx-hours li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .nx-hours__bar { grid-column: 1 / -1; grid-row: 2; }
  .nx-hours em { grid-row: 1; grid-column: 2; }
  /* Pestañas de actividad: se acomodan en dos renglones si no caben */
  .nx-act__tabs { flex-wrap: wrap; }
  .nx-act__tabs span { padding: 4px 9px; font-size: 11px; }
  /* Fechas del comparativo: una sí y una no, para que no se encimen */
  .nx-combo { gap: 4px; }
  .nx-combo__col small { font-size: 9.5px; white-space: nowrap; }
  .nx-combo__col:nth-child(even) small { visibility: hidden; }
}
/* Las mismas reglas para las tarjetas sueltas de Norux (fuera del tablero) en teléfono */
@media (max-width: 600px) {
  /* Horas por equipo: nombre y horas arriba, barra a todo el ancho abajo */
  .nx-hours li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .nx-hours__bar { grid-column: 1 / -1; grid-row: 2; }
  .nx-hours em { grid-row: 1; grid-column: 2; }
  /* Pestañas de actividad: se acomodan en dos renglones si no caben */
  .nx-act__tabs { flex-wrap: wrap; }
  .nx-act__tabs span { padding: 4px 9px; font-size: 11px; }
  /* Fechas del comparativo: una sí y una no, para que no se encimen */
  .nx-combo { gap: 4px; }
  .nx-combo__col small { font-size: 9.5px; white-space: nowrap; }
  .nx-combo__col:nth-child(even) small { visibility: hidden; }
}


/* ---------- Tablas dentro de ilustraciones: sin desplazamiento lateral ----------
   En una ilustración nadie desplaza la tabla, así que cuando no cabe se muestran menos
   columnas (las primeras son las importantes) en lugar de cortarlas. */
.nx-table { container: nxt / inline-size; overflow-x: hidden; }
.nx-table__row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container nxt (max-width: 640px) {
  .nx-table__row, .nx-table__row--ev, .nx-table__row--trip { min-width: 0; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); padding-inline: 14px; }
  .nx-table__row > :nth-child(n + 5) { display: none; }
}
@container nxt (max-width: 420px) {
  .nx-table__row, .nx-table__row--ev, .nx-table__row--trip { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); font-size: 12.5px; gap: 8px; }
  .nx-table__row > :nth-child(n + 4) { display: none; }
}
@container nxt (max-width: 280px) {
  .nx-table__row, .nx-table__row--ev, .nx-table__row--trip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .nx-table__row > :nth-child(n + 3) { display: none; }
}
