/* =========================================================
   FleTrack — ritmo vertical de las capturas (se carga al final)
   Toda captura o panel grande queda dentro de su sección, con aire
   arriba y abajo, y nunca tocando el borde donde cambia el fondo.
   ========================================================= */
:root {
  --media-gap: clamp(40px, 4.5vw, 72px);   /* del texto a la captura */
  --media-pad: clamp(64px, 7vw, 120px);    /* de la captura al final de la sección */
}

/* Inicio: la consola de Norux con margen inferior y altura según su contenido */
.hero { padding-bottom: var(--media-pad); }
.hero__media { margin-top: calc(var(--media-gap) - 20px); }
.hero__media--nx, .hero__media--nx .live, .hero__media--nx .nx { height: auto; }

/* Páginas internas: el panel vive dentro de la sección del título */
.phero--media { padding-bottom: var(--media-pad); }
.phero--media .banner { width: 100%; max-width: var(--max); margin: var(--media-gap) auto 0; border-radius: 32px; overflow: hidden; }
.phero--media .banner--stage { margin: var(--media-gap) auto 0; }

/* Páginas de producto: mismo aire bajo la maqueta */
.pp-hero { padding-bottom: var(--media-pad); }

/* Ventanas de plataforma en secciones divididas: centradas con aire */
.dsplit__media--nx, .dsplit__media--prod, .esplit__media--nx, .esplit__media--prod { margin-block: 8px; }

@container (max-width: 520px) {
  .nx--home .nx-map { display: none; }
}
@media (max-width: 1024px) {
  .phero--media .banner { border-radius: 28px; }
}
@media (max-width: 767px) {
  .phero--media .banner { border-radius: 24px; }
  .hero__media { margin-top: 12px; }
  .hero.bg-gradient, .phero.phero--media, .pp-hero.bg-gradient { padding-bottom: 56px; }
}

/* Encabezados de página centrados (mismo criterio que el inicio y que apple.com en páginas de
   producto y categoría): pastilla y título al centro; la ilustración va justo debajo. */
.phero__inner { align-items: center; text-align: center; }
.phero__inner .pill { align-self: center; }
.phero__title { margin-inline: auto; }

/* ---------- Tarjetas de artículo (blog e inicio) ----------
   Cuadro de imagen arriba y texto abajo, sobre superficie sólida (capa de contenido).
   El vidrio solo va en la categoría, que es un control que flota sobre la imagen. */
.posts { gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.post-card {
  min-height: 0; padding: 0; border-radius: 28px; justify-content: flex-start; align-items: stretch; gap: 0;
  background: #fff; color: var(--ink); border: 1px solid rgba(17, 19, 22, .06);
  box-shadow: 0 1px 0 rgba(17, 19, 22, .03), 0 24px 48px -32px rgba(17, 19, 22, .28);
  transition: transform .35s var(--ease-out, ease), box-shadow .35s ease;
}
.post-card::before { content: none; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(17, 19, 22, .03), 0 34px 60px -30px rgba(17, 19, 22, .34); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; margin: 10px 10px 0; border-radius: 20px; overflow: hidden; background: #eef2f7; isolation: isolate; }
.post-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out, ease); }
.post-card__media .mg { transition: transform .6s var(--ease-out, ease); }
.post-card:hover .post-card__media > img, .post-card:hover .post-card__media .mg { transform: scale(1.035); }
.post-card__media .mg-chip { display: none; }
.post-card__cat {
  position: absolute; left: 14px; top: 14px; z-index: 4; padding: 7px 13px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: 0; color: #111316;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 16px -8px rgba(17, 19, 22, .35);
  transition: background .2s ease;
}
.post-card__cat:hover { background: rgba(255, 255, 255, .85); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 26px 26px; }
.post-card__meta { font-size: 13px; font-weight: 500; color: #5b6577; letter-spacing: 0; }
.post-card h3 { font-size: clamp(20px, 1.6vw, 23px); font-weight: 600; line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
.post-card h3 a { color: inherit; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover h3 { text-decoration: none; }
.post-card__excerpt { font-size: 15px; line-height: 1.5; color: #4b5563; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #111316; }
.post-card__more svg { width: 13px; height: 13px; fill: currentColor; transition: transform .25s ease; }
.post-card:hover .post-card__more svg { transform: translateX(3px); }
.post-card:focus-within { outline: 2px solid #2563eb; outline-offset: 3px; }
.posts .post-card:last-child { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .post-card, .post-card__media > img, .post-card__media .mg { transition: none; } .post-card:hover { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .post-card__cat { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Newsletter ---------- */
.nl { width: 100%; max-width: 520px; margin: 28px auto 0; }
.nl__field { display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: #fff; border: 1px solid rgba(17, 19, 22, .1); box-shadow: 0 18px 40px -28px rgba(17, 19, 22, .35); transition: border-color .2s ease, box-shadow .2s ease; }
.nl__field:focus-within { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.nl__field input[type=email] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 18px; font: inherit; font-size: 16px; color: #111316; }
.nl__btn { flex: none; min-height: 46px; padding: 0 22px; border: 0; border-radius: 99px; background: #111316; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.nl__btn:hover { background: #2a2f38; } .nl__btn:disabled { opacity: .6; cursor: default; }
.nl__btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.nl__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl__msg { min-height: 20px; margin-top: 12px; font-size: 13.5px; color: #5b6577; text-align: center; }
.nl[data-state=ok] .nl__msg { color: #15803d; font-weight: 600; }
.nl[data-state=error] .nl__msg { color: #b91c1c; }
@media (max-width: 480px) { .nl__field { flex-direction: column; border-radius: 22px; } .nl__field input[type=email] { min-height: 46px; } }

/* ---------- Footer ----------
   Arriba: marca + newsletter y una llamada a la acción. En medio: mapa del sitio con contacto.
   Abajo: derechos y "Powered by". */
.footer { padding: clamp(64px, 7vw, 96px) var(--gutter) 28px; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__logo img { display: block; height: 30px; width: auto; filter: brightness(0) invert(1); }
.footer__brand > p { max-width: 42ch; margin-top: 16px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.footer__nl { margin-top: 28px; max-width: 460px; }
.footer__nl h3, .footer__cta h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.footer .nl { margin: 12px 0 0; max-width: none; }
.footer .nl__field { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.footer .nl__field:focus-within { border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.footer .nl__field input[type=email] { color: #fff; }
.footer .nl__field input[type=email]::placeholder { color: rgba(255, 255, 255, .45); }
.footer .nl__btn { background: #fff; color: #111316; }
.footer .nl__btn:hover { background: #e9ecf1; }
.footer .nl__msg { text-align: left; color: rgba(255, 255, 255, .62); min-height: 0; }
.footer .nl[data-state=ok] .nl__msg { color: #86efac; } .footer .nl[data-state=error] .nl__msg { color: #fca5a5; }
.footer__cta { align-self: center; justify-self: end; max-width: 460px; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.footer__cta h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.footer__cta h3 b { font-weight: 700; }
.footer__cta p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.footer__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.footer__wa { font-size: 14px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.footer__wa:hover { text-decoration-color: #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: clamp(36px, 4vw, 56px) 0 8px; }
.fcol { padding: 0; flex: none; }
.fcol h4 { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: #fff; margin-bottom: 14px; }
.fcol ul { gap: 8px; }
.fcol li a, .fcol li span { font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: 0; color: rgba(255, 255, 255, .62); }
.fcol li a:hover { color: #fff; }
.fcol li a:focus-visible, .footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.fcol--contact .social { margin-top: 18px; }
.footer__bottom { margin-top: 28px; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .55); align-items: center; }
.footer__powered { color: rgba(255, 255, 255, .75); }
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cta { justify-self: stretch; max-width: none; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 600px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Franja de confianza (sectores o tecnologías) en movimiento continuo */
.trust-marquee { width: 100%; margin-top: 28px; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust-marquee__track { display: flex; gap: 12px; width: max-content; animation: trust-scroll 40s linear infinite; }
.trust-marquee:hover .trust-marquee__track { animation-play-state: paused; }
@keyframes trust-scroll { to { transform: translateX(calc(-50% - 6px)); } }
.trust-chip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 99px; white-space: nowrap;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 500; }
.trust-chip svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; }
.trust-chip img { height: 22px; width: auto; filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) { .trust-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .trust-chip[aria-hidden] { display: none; } }

/* ---------- Login: acceso a cada plataforma ---------- */
.login-menu { position: relative; }
.login-menu__btn { display: inline-flex; align-items: center; gap: 8px; }
.login-menu__btn .chev { width: 9px; height: 9px; fill: currentColor; transition: transform .2s ease; }
.login-menu__btn[aria-expanded=true] .chev { transform: rotate(180deg); }
.login-menu__panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: 300px; padding: 10px; border-radius: 22px;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 30px 60px -24px rgba(17, 19, 22, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
  animation: login-in .18s ease-out;
}
.login-menu__panel[hidden] { display: none; }
@keyframes login-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.login-menu__title { padding: 6px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5b6577; }
.login-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: #111316; transition: background .15s ease; }
.login-item:hover, .login-item:focus-visible { background: rgba(17, 19, 22, .05); outline: none; }
.login-item__logo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid rgba(17, 19, 22, .06); }
.login-item__logo img { width: 70%; height: auto; }
.login-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.login-item strong { font-size: 14.5px; font-weight: 600; }
.login-item small { font-size: 12.5px; color: #5b6577; }
.login-item > svg { width: 16px; height: 16px; color: #9aa3b2; }
@media (prefers-reduced-transparency: reduce) { .login-menu__panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* En el menú móvil, las plataformas se muestran abiertas, sin desplegable */
.mobile-menu__actions { flex-wrap: wrap; }
.mobile-menu__actions .login-menu { flex: 1 1 100%; order: 2; }
.mobile-menu__actions .login-menu__btn { display: none; }
.mobile-menu__actions .login-menu__panel { position: static; display: block; width: auto; padding: 4px 0 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }

/* ---------- "¿Cuál es tu mayor reto?": elige tu reto → así lo resuelve FleTrack ---------- */
.cpick { align-self: center; display: flex; flex-direction: column; gap: 14px; }
.cpick__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5b6577; }
.cpick__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cpick__tab {
  position: relative; overflow: hidden; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(17, 19, 22, .1);
  background: #fff; color: #111316; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cpick__tab:hover { border-color: rgba(17, 19, 22, .3); }
.cpick__tab[aria-selected=true] { background: #111316; color: #fff; border-color: #111316; }
.cpick__tab:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
/* Barra de avance automático dentro de la pestaña activa */
.cpick__tab[aria-selected=true]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .55); transform-origin: left; animation: cpick-progress 7s linear; }
.cpick.is-paused .cpick__tab::after { content: none; }
@keyframes cpick-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cpick__panel { display: grid; grid-template-columns: 1fr; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid rgba(17, 19, 22, .06); box-shadow: 0 30px 60px -36px rgba(17, 19, 22, .35); animation: cpick-in .35s ease-out; }
.cpick__panel[hidden] { display: none; }
@keyframes cpick-in { from { opacity: 0; transform: translateY(6px); } }
.cpick__media { position: relative; aspect-ratio: 16 / 7.5; overflow: hidden; background: #eef2f7; }
.cpick__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 26px; }
.cpick__eyebrow { font-size: 13px; font-weight: 600; color: #2563eb; }
.cpick__body h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.cpick__body ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cpick__body li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #374151; }
.cpick__body li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: #16a34a; }
.cpick__link { align-self: flex-start; margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #111316; }
.cpick__link .ico svg { width: 13px; height: 13px; fill: currentColor; transition: transform .2s ease; }
.cpick__link:hover .ico svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .cpick__panel { animation: none; } .cpick__tab::after { content: none; } }

/* Login con la misma estructura que los mega menús: 28 px debajo de la barra, mismo fondo,
   radio, relleno, título y tarjetas blancas de 25 px */
.login-menu__panel {
  top: calc(100% + 19px + 28px); width: 400px; padding: clamp(32px, 2.6vw, 40px); border-radius: 40px;
  background: var(--page); border: 1px solid var(--glass-bd); box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: none; backdrop-filter: none; animation: mega-in .22s ease-out;
  display: flex; flex-direction: column; gap: 10px;
}
.login-menu__panel[hidden] { display: none; }
.login-menu__list { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.login-item { min-height: 74px; padding: 10px 16px 10px 10px; gap: 15px; border-radius: 25px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.login-item:hover, .login-item:focus-visible { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(17, 19, 22, .07); }
.login-item:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.login-item__logo { width: 50px; height: 50px; border-radius: 20px; background: #fff; border: 1px solid rgba(17, 19, 22, .08); }
.login-item strong { font-size: 12.96px; letter-spacing: -.39px; line-height: 1.1; }
.login-item small { margin-top: 4px; font-size: 12.8px; line-height: 1.1; color: var(--muted); }
.mobile-menu__actions .login-menu__panel { padding: 4px 0 0; border-radius: 0; background: none; border: 0; box-shadow: none; }
.mobile-menu__actions .login-menu__panel .mega__title, .mobile-menu__actions .login-menu__panel .mega__lead { display: none; }
.mobile-menu__actions .login-menu__list { padding-top: 0; }

/* ---------- Pantallas de plataforma en las secciones (Norux, ioMaq, Trayectus, Movilística, IoT) ----------
   Sin fondo de color ni recorte contra el borde de la página: solo el panel, completo,
   con esquinas redondeadas y sombra suave. */
.dsplit:has(.dsplit__media--prod, .dsplit__media--nx) { padding-right: var(--gutter); }
.esplit:has(.esplit__media--prod, .esplit__media--nx) { padding-left: var(--gutter); }
.dsplit__media--nx, .esplit__media--nx, .dsplit__media--prod, .esplit__media--prod,
.dsplit__media--nx.pm-media, .pm-media, .pm-media--iomaq, .pm-media--trayectus, .pm-media--movilistica, .pm-media--iot, .pm-media--movi {
  background: none !important; padding: 0 !important; border-radius: 0 !important; overflow: visible; min-height: 0; margin-block: 0;
}
.dsplit__media--nx .nx, .esplit__media--nx .nx,
.pm-media > .iq, .pm-media > .nx, .pm-media > .iot, .pm-media > .mv, .pm-media .pm-win {
  border-radius: 22px !important; overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(17, 19, 22, .45), 0 18px 40px -26px rgba(17, 19, 22, .25);
}
.pm-media > .pm { width: 100%; }
.pm-media .pm-win { max-width: none; }
/* Sobre fondo oscuro, un filo claro para que el panel no se pierda */
.dsplit .dsplit__media--nx .nx, .dsplit .pm-media > .iq, .dsplit .pm-media > .iot, .dsplit .pm-media > .mv, .dsplit .pm-media .pm-win { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -40px rgba(0, 0, 0, .7); }
.esplit__text { padding-left: clamp(32px, 4vw, 72px); }
@media (max-width: 1024px) {
  .dsplit:has(.dsplit__media--prod, .dsplit__media--nx) { padding-left: var(--gutter); }
  .esplit__text { padding-left: 0; }
}

/* Tarjeta lateral del banner (p. ej. "Horas de operación hoy"): alta solo lo que mide su contenido, centrada */
.stage__card--side { top: 50%; bottom: auto; translate: 0 -50%; justify-content: flex-start; }
.stage__card--side .vbars__plot { height: 150px; }

/* ---------- Mercados que atendemos: tarjetas como las del blog ---------- */
.markets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.market {
  position: relative; min-height: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: 26px; background: #fff; color: var(--ink); border: 1px solid rgba(17, 19, 22, .06);
  box-shadow: 0 1px 0 rgba(17, 19, 22, .03), 0 24px 48px -34px rgba(17, 19, 22, .3); transition: transform .3s ease, box-shadow .3s ease;
}
.market::before { content: none; }
.market:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(17, 19, 22, .03), 0 32px 56px -32px rgba(17, 19, 22, .36); }
.market__media { position: relative; aspect-ratio: 16 / 9; margin: 8px 8px 0; border-radius: 19px; overflow: hidden; background: #eef2f7; }
.market__media .mg-chip { display: none; }
.market__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.market__body :is(h3, h4) { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.market__body a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: #4b5563; }
.market__body a:hover { color: var(--ink); }
.market__body a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.market__body .ico svg { width: 11px; height: 11px; fill: currentColor; transition: transform .2s ease; }
.market:hover .market__body .ico svg { transform: translateX(3px); }
.market:focus-within { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (max-width: 1024px) { .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .markets { grid-template-columns: 1fr; } }
.market { align-items: stretch; justify-content: flex-start; text-align: left; min-height: 0 !important; background-image: none; }
.market__media { align-self: stretch; }
.market__body { align-items: flex-start; }

/* ---------- Industrias: pestañas con la vista previa de cada industria ---------- */
.ihub { width: 100%; max-width: var(--max); margin: var(--media-gap, 48px) auto 0; padding: 0 var(--gutter); }
.ihub__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.ihub__tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; border: 1px solid rgba(17, 19, 22, .1);
  background: rgba(255, 255, 255, .7); font: inherit; font-size: 14.5px; font-weight: 500; color: #374151; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ihub__tabs button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ihub__tabs button:hover { border-color: rgba(17, 19, 22, .3); }
.ihub__tabs button[aria-selected="true"] { background: #111316; border-color: #111316; color: #fff; }
.ihub__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .5); transform-origin: left; animation: cpick-progress 7s linear; }
.ihub.is-paused .ihub__tabs button::after { content: none; }
.ihub__tabs button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.ihub__panel { animation: cpick-in .4s ease-out; }
.ihub__panel .banner { margin: 0; border-radius: 32px; overflow: hidden; }
.ihub__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 0 6px; font-size: 15px; color: #4b5563; }
.ihub__foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #111316; }
.ihub__foot .ico svg { width: 12px; height: 12px; fill: currentColor; transition: transform .2s ease; }
.ihub__foot a:hover .ico svg { transform: translateX(3px); }
@media (max-width: 700px) { .ihub__tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; } .ihub__tabs button { flex: none; } }

/* ---------- Nosotros · soluciones desarrolladas por I+D: Norux grande a la izquierda, tres a la derecha ---------- */
.rdgrid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(3, auto); gap: 18px; margin-top: 36px; }
.rdcard { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 26px; background: #fff; color: #111316; text-decoration: none;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .55); transition: transform .3s ease, box-shadow .3s ease; }
.rdcard:hover { transform: translateY(-3px); box-shadow: 0 36px 70px -36px rgba(0, 0, 0, .6); }
.rdcard:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rdcard__media { position: relative; overflow: hidden; margin: 8px; border-radius: 19px; background: #eef2f7; min-height: 150px; }
.rdcard__media .mg-chip { display: none; }
.rdcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 22px 18px 14px; }
.rdcard__logo { height: 22px; width: auto; max-width: 140px; object-fit: contain; }
.rdcard__tag { padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-size: 12px; font-weight: 600; }
.rdcard__body p { font-size: 14px; line-height: 1.45; color: #4b5563; }
.rdcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.rdcard__more .ico svg { width: 12px; height: 12px; fill: currentColor; transition: transform .2s ease; }
.rdcard:hover .rdcard__more .ico svg { transform: translateX(3px); }
.rdcard--main { grid-row: 1 / -1; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.rdcard--main .rdcard__media { min-height: 300px; }
.rdcard--main .rdcard__body { padding: 22px 28px 28px; gap: 10px; }
.rdcard--main .rdcard__logo { height: 30px; }
.rdcard--main .rdcard__body p { font-size: 15.5px; }
@media (max-width: 900px) { .rdgrid { grid-template-columns: 1fr; } .rdcard--main { grid-row: auto; } }
@media (max-width: 560px) { .rdcard { grid-template-columns: 1fr; } .rdcard__media { min-height: 160px; } }

/* Avance automático: ya no es una barra gris dentro de la pastilla, sino una línea fina en el borde superior de la tarjeta */
.cpick__tab[aria-selected=true]::after, .ihub__tabs button[aria-selected="true"]::after { content: none; }
.cpick__panel { position: relative; }
.cpick:not(.is-paused) .cpick__panel::before, .ihub:not(.is-paused) .ihub__panel .banner::after {
  content: ""; position: absolute; left: 0; top: 0; z-index: 5; height: 3px; width: 100%; background: #2563eb; transform-origin: left; animation: cpick-progress 7s linear;
}
.ihub__panel .banner { position: relative; }
@media (prefers-reduced-motion: reduce) { .cpick__panel::before, .ihub__panel .banner::after { content: none !important; } }
/* Footer: dos botones del mismo tamaño, lado a lado */
.footer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer__btns .btn, .footer__wa { justify-content: center; min-height: 48px; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.footer__wa:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.footer__wa svg { width: 17px; height: 17px; fill: #25d366; }
@media (max-width: 420px) { .footer__btns { grid-template-columns: 1fr; } }
.rdcard { grid-template-columns: 220px minmax(0, 1fr); }
.rdcard:not(.rdcard--main) .rdcard__media .mg-app__kpis { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .rdcard { grid-template-columns: 1fr; } }

/* ---------- Nosotros · ecosistema como producto SaaS: una franja por plataforma ---------- */
.eco-rows__list { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(32px, 4vw, 52px); }
.eco-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 36px;
  background: linear-gradient(135deg, var(--soft) 0%, #fff 120%); border: 1px solid color-mix(in srgb, var(--c) 10%, transparent); overflow: hidden; }
.eco-row__text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.eco-row__pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 99px; background: #fff; box-shadow: 0 6px 18px -12px rgba(17, 19, 22, .35); font-size: 13px; font-weight: 600; color: var(--c); }
.eco-row__pill img { height: 20px; width: auto; max-width: 110px; padding: 0 4px; }
.eco-row h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; color: #111316; text-wrap: balance; }
.eco-row__text > p { font-size: 16px; line-height: 1.55; color: #4b5563; max-width: 46ch; }
.eco-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eco-row li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #374151; }
.eco-row li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eco-row .btn { margin-top: 6px; }
.eco-row__screen { position: relative; height: clamp(340px, 34vw, 460px); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -46px rgba(17, 19, 22, .45), 0 0 0 1px rgba(17, 19, 22, .05); }
.eco-row__screen > * { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
.eco-row__screen .iq { border: 0; }
@media (max-width: 900px) {
  .eco-row { grid-template-columns: 1fr; border-radius: 28px; }
  .eco-row__screen { height: 380px; }
}
@media (max-width: 560px) { .eco-row { padding: 22px 18px; } .eco-row__screen { height: 320px; } }

/* ---------- Auditoría responsiva ---------- */
/* La sección oscura usa el mismo ritmo vertical que las demás en móvil */
@media (max-width: 600px) { .dsplit { padding-top: 72px; padding-bottom: 72px; } }
/* Áreas táctiles de al menos 44 px en enlaces de texto sueltos */
.cpick__link, .ihub__foot a, .post-card__more, .rdcard__more, .quote__alt { min-height: 44px; }
.cpick__link, .ihub__foot a { display: inline-flex; align-items: center; }
@media (max-width: 600px) { .post-card__cat { padding: 10px 14px; } }

/* Franjas del ecosistema: el tablero se dibuja completo (1040 px) y se ajusta al marco, sin cortes */
.eco-row__screen { display: grid; place-items: center; height: auto; aspect-ratio: 16 / 10.5; background: #f6f8fb; }
.eco-row__screen > .eco-shot { position: relative; inset: auto; width: 1040px; height: auto; }
.eco-shot > * { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; min-height: 600px; border-radius: 0; box-shadow: none; }
.eco-shot > .nx { min-height: 640px; }
.eco-shot > .tr, .eco-shot > .mv { min-height: 600px; }

/* Alerta en vivo sobre los tableros: aparece, se queda unos segundos y se va (en bucle) */
.live-alert { position: absolute !important; inset: auto 16px 16px auto !important; width: auto !important; height: auto !important; z-index: 5; display: flex; align-items: center; gap: 12px; max-width: min(340px, calc(100% - 32px));
  padding: 12px 16px 12px 14px; border-radius: 16px; background: rgba(17, 19, 22, .92); color: #fff; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: live-alert 8s ease-in-out infinite; }
.live-alert i { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--la, #ef4444); }
.live-alert i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--la, #ef4444); animation: live-ring 1.6s ease-out infinite; }
.live-alert b { display: block; font-size: 13.5px; font-weight: 600; } .live-alert small { display: block; font-size: 12px; opacity: .72; }
.live-alert--bad { --la: #ef4444; } .live-alert--warn { --la: #f59e0b; } .live-alert--info { --la: #3b82f6; } .live-alert--ok { --la: #84cc16; }
@keyframes live-alert { 0%, 8% { opacity: 0; transform: translateY(14px) scale(.97); } 14%, 78% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes live-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-alert, .live-alert i::after { animation: none; } }

/* Imagen subida desde el panel: reemplaza cualquier ilustración animada del espacio */
.ph[style*="--slot-img"] > :is(.mg, .vg, .viz, .nx, .iq, .mv, .tr, .iso, .scene, .sc, .stage, .live, svg) { display: none !important; }

/* Redes sociales en la columna Contacto del footer */
.fsocial { margin-top: 22px; }
.fsocial h4 { margin-bottom: 10px; }
.fsocial .social { margin-top: 0; }
.fsocial .social a { width: 40px; height: 40px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, transform .2s; }
.fsocial .social a:hover { background: #fff; transform: translateY(-2px); }
.fsocial .social svg { width: 16px; height: 16px; fill: #fff; transition: fill .2s; }
.fsocial .social a:hover svg { fill: #111316; }
@media (max-width: 767px) { .fsocial .social a { width: 44px; height: 44px; } }
/* Footer: el bloque de newsletter queda centrado verticalmente frente a la tarjeta de llamada a la acción */
.footer__top { align-items: center; }
