/**
 * SIM4 landing — animaciones de flujo (pipes, beams, pulses).
 * Cargar después de sim.css en páginas públicas.
 */

@keyframes lm-pipe-dash {
  to { background-position: 20px 0; }
}

@keyframes lm-pipe-travel {
  0% { left: 0; opacity: 0; transform: translateY(-50%) scale(0.55); }
  10% { opacity: 1; transform: translateY(-50%) scale(1); }
  90% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; transform: translateY(-50%) scale(0.55); }
}

@keyframes lm-pipe-travel-v {
  0% { top: 0; opacity: 0; transform: translateX(-50%) scale(0.55); }
  10% { opacity: 1; transform: translateX(-50%) scale(1); }
  90% { opacity: 1; }
  100% { top: calc(100% - 10px); opacity: 0; transform: translateX(-50%) scale(0.55); }
}

@keyframes lm-beam-flow {
  to { stroke-dashoffset: -32; }
}

@keyframes lm-hub-spin {
  to { transform: rotate(360deg); }
}

@keyframes lm-core-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
}

@keyframes lm-node-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes lm-arrow-nudge {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
}

@keyframes lm-timeline-flow {
  0% { background-position: 0 0; }
  100% { background-position: 0 24px; }
}

@keyframes lm-milestone-dot {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* Ocultar capa SVG overlay rota (reemplazada por pipes) */
.lm-flow-canvas {
  display: none !important;
}

/* --- Pipes horizontales / verticales --- */
.lm-pipe {
  position: relative;
  flex-shrink: 0;
  --lm-pipe-len: 100%;
}

.lm-pipe--h {
  height: 6px;
  min-width: 28px;
  flex: 1 1 28px;
  align-self: center;
}

.lm-pipe--v {
  width: 6px;
  min-height: 28px;
  flex: 1 1 28px;
  align-self: center;
}

.lm-pipe__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-size: 20px 6px;
  animation: lm-pipe-dash 0.55s linear infinite;
}

.lm-pipe--h .lm-pipe__track { height: 6px; }
.lm-pipe--v .lm-pipe__track {
  width: 6px;
  height: 100%;
  background-size: 6px 20px;
  animation: lm-pipe-dash 0.55s linear infinite;
}

.lm-pipe--teal .lm-pipe__track {
  background-image: repeating-linear-gradient(90deg, #14b8a6 0, #14b8a6 10px, transparent 10px, transparent 20px);
}
.lm-pipe--indigo .lm-pipe__track {
  background-image: repeating-linear-gradient(90deg, #6366f1 0, #6366f1 10px, transparent 10px, transparent 20px);
}
.lm-pipe--cyan .lm-pipe__track {
  background-image: repeating-linear-gradient(90deg, #22d3ee 0, #22d3ee 10px, transparent 10px, transparent 20px);
}
.lm-pipe--amber .lm-pipe__track {
  background-image: repeating-linear-gradient(90deg, #f59e0b 0, #f59e0b 10px, transparent 10px, transparent 20px);
}
.lm-pipe--violet .lm-pipe__track {
  background-image: repeating-linear-gradient(90deg, #8b5cf6 0, #8b5cf6 10px, transparent 10px, transparent 20px);
}

.lm-pipe--v.lm-pipe--teal .lm-pipe__track {
  background-image: repeating-linear-gradient(180deg, #14b8a6 0, #14b8a6 10px, transparent 10px, transparent 20px);
}
.lm-pipe--v.lm-pipe--cyan .lm-pipe__track {
  background-image: repeating-linear-gradient(180deg, #22d3ee 0, #22d3ee 10px, transparent 10px, transparent 20px);
}

.lm-pipe__packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: lm-pipe-travel 2s ease-in-out infinite;
  box-shadow: 0 0 10px currentColor;
}

.lm-pipe--teal .lm-pipe__packet { background: #14b8a6; color: #14b8a6; }
.lm-pipe--indigo .lm-pipe__packet { background: #6366f1; color: #6366f1; }
.lm-pipe--cyan .lm-pipe__packet { background: #22d3ee; color: #22d3ee; }
.lm-pipe--amber .lm-pipe__packet { background: #f59e0b; color: #f59e0b; }
.lm-pipe--violet .lm-pipe__packet { background: #8b5cf6; color: #8b5cf6; }

.lm-pipe--v .lm-pipe__packet {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-name: lm-pipe-travel-v;
}

.lm-pipe--v.lm-pipe--reverse .lm-pipe__packet {
  top: auto;
  bottom: 0;
  animation-name: lm-pipe-travel-v-rev;
}

@keyframes lm-pipe-travel-v-rev {
  0% { bottom: 0; top: auto; opacity: 0; transform: translateX(-50%) scale(0.55); }
  10% { opacity: 1; transform: translateX(-50%) scale(1); }
  90% { opacity: 1; }
  100% { bottom: calc(100% - 10px); top: auto; opacity: 0; transform: translateX(-50%) scale(0.55); }
}

.lm-pipe--reverse .lm-pipe__packet {
  animation-name: lm-pipe-travel-rev;
  left: auto;
  right: 0;
}

@keyframes lm-pipe-travel-rev {
  0% { right: 0; left: auto; opacity: 0; transform: translateY(-50%) scale(0.55); }
  10% { opacity: 1; transform: translateY(-50%) scale(1); }
  90% { opacity: 1; }
  100% { right: calc(100% - 10px); left: auto; opacity: 0; transform: translateY(-50%) scale(0.55); }
}

.lm-pipe--double .lm-pipe__packet--alt { animation-delay: 1s; }

.lm-pipe-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  min-width: 36px;
  padding: 0.25rem 0;
}

.lm-pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 1.25rem;
  animation: lm-arrow-nudge 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.lm-pipe-arrow--out { color: #f59e0b; animation-delay: 0.5s; }

/* --- Diagrama integraciones --- */
.lm-int-diagram {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  min-height: 140px;
}

.lm-int-diagram__zone {
  flex: 1 1 0;
  min-width: 0;
}

.lm-int-diagram--full {
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .lm-int-diagram--full { flex-wrap: nowrap; }
  .lm-int-diagram--full .lm-int-diagram__zone--flows { flex: 0 0 22%; }
}

.lm-int-eco__node--live {
  animation: lm-node-breathe 2.8s ease-in-out infinite;
  animation-delay: calc(var(--node-i, 0) * 0.12s);
}

.lm-int-eco__core-inner--live {
  animation: lm-core-pulse 2.4s ease-out infinite;
}

/* --- Comms hub beams (SVG alineado al hub) --- */
.lm-comms-hub {
  overflow: visible;
}

.lm-comms-beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.lm-beam-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: lm-beam-flow 0.75s linear infinite;
}

.lm-beam-path--0 { stroke: #22d3ee; animation-delay: 0s; }
.lm-beam-path--1 { stroke: #a78bfa; animation-delay: 0.12s; }
.lm-beam-path--2 { stroke: #34d399; animation-delay: 0.24s; }
.lm-beam-path--3 { stroke: #25d366; animation-delay: 0.36s; }
.lm-beam-path--4 { stroke: #4285f4; animation-delay: 0.48s; }
.lm-beam-path--5 { stroke: #0078d4; animation-delay: 0.6s; }

.lm-beam-dot {
  filter: drop-shadow(0 0 4px currentColor);
}

.lm-comms-hub__ring--outer {
  animation: lm-hub-spin 40s linear infinite;
}

.lm-comms-hub__core {
  z-index: 3;
}

.lm-comms-hub__channels {
  z-index: 4;
}

/* --- Trust AWS arch --- */
.lm-trust-beam {
  animation: lm-beam-flow 0.9s linear infinite;
}

.lm-trust-arch__ring {
  animation: lm-core-pulse 2.8s ease-out infinite;
}

.lm-trust-arch__node {
  animation: lm-node-breathe 3s ease-in-out infinite;
  animation-delay: calc(var(--trust-i, 0) * 0.2s);
}

/* --- Timeline experiencia --- */
.lm-exp-timeline--live {
  position: relative;
  border-left: 3px solid transparent;
  border-image: repeating-linear-gradient(180deg, #6366f1 0, #6366f1 8px, transparent 8px, transparent 16px) 1;
  animation: lm-timeline-flow 1s linear infinite;
}

.lm-exp-timeline--live .lm-exp-timeline__item::before {
  animation: lm-core-pulse 2s ease-out infinite;
}

/* --- Milestones --- */
.lm-milestones--live {
  position: relative;
  padding-top: 1.75rem;
}

.lm-milestones__track {
  position: absolute;
  top: 0.65rem;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.lm-milestones__track .lm-pipe__track {
  height: 6px;
}

.lm-milestones__track .lm-pipe__packet {
  animation-duration: 4s;
}

/* --- Sync móvil --- */
.lm-sync-diagram {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1px solid #bae6fd;
}

.lm-sync-diagram__node {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  min-width: 88px;
}

.lm-sync-diagram__node i {
  font-size: 1.65rem;
  color: #0284c7;
}

.lm-sync-diagram__node--cloud i { color: #0d9488; }

.lm-sync-diagram__pipes {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 40px;
}

/* --- Capability cards pulse --- */
.lm-cap-grid--live .lm-cap-card__icon {
  animation: lm-node-breathe 3s ease-in-out infinite;
  animation-delay: calc(var(--cap-i, 0) * 0.15s);
}

.lm-pillar__icon {
  animation: lm-node-breathe 3.2s ease-in-out infinite;
  animation-delay: calc(var(--pillar-i, 0) * 0.1s);
}

.lm-card-solution {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm-card-solution:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.lm-int-diagram .lm-int-eco__bridges {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lm-int-diagram .lm-int-eco__core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

.lm-int-flow-item__dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
  animation: lm-core-pulse 1.8s ease-out infinite;
}

.lm-int-flow-item:nth-child(2) .lm-int-flow-item__dot { background: #14b8a6; animation-delay: 0.25s; }
.lm-int-flow-item:nth-child(3) .lm-int-flow-item__dot { background: #f59e0b; animation-delay: 0.5s; }
.lm-int-flow-item:nth-child(4) .lm-int-flow-item__dot { background: #8b5cf6; animation-delay: 0.75s; }

.lm-int-eco__pulse--live {
  animation: lm-core-pulse 2.4s ease-out infinite;
}

.lm-int-eco__pulse--delay {
  animation-delay: 1.1s;
}

@media (prefers-reduced-motion: reduce) {
  .lm-pipe__track,
  .lm-pipe__packet,
  .lm-beam-path,
  .lm-trust-beam,
  .lm-comms-hub__ring--outer,
  .lm-int-eco__node--live,
  .lm-int-eco__core-inner--live,
  .lm-exp-timeline--live,
  .lm-cap-grid--live .lm-cap-card__icon,
  .lm-pillar__icon,
  .lm-trust-arch__ring,
  .lm-trust-arch__node {
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .lm-int-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .lm-pipe-col {
    flex-direction: row;
    min-height: 28px;
    width: 100%;
    flex: 0 0 auto;
  }

  .lm-pipe--v {
    width: 100%;
    height: 6px;
    min-height: 6px;
  }

  .lm-pipe--v .lm-pipe__track {
    width: 100%;
    height: 6px;
    background-image: repeating-linear-gradient(90deg, #14b8a6 0, #14b8a6 10px, transparent 10px, transparent 20px) !important;
  }

  .lm-pipe--v .lm-pipe__packet {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-name: lm-pipe-travel;
  }

  .lm-pipe-arrow { transform: rotate(90deg); }

  .lm-deep-link-bridge { display: none; }

  .lm-hero-flow { opacity: 0.35; }
}

/* ===== Fixes: quitar pseudo-líneas rotas del layout antiguo ===== */
.lm-int-diagram .lm-int-eco__bridges::before,
.lm-int-diagram .lm-int-eco__bridges::after {
  content: none !important;
  display: none !important;
}

.lm-deep-link-row--live .lm-flow-canvas,
.lm-cap-grid--live .lm-flow-canvas,
.lm-pillars--live .lm-flow-canvas,
.lm-milestones--live .lm-flow-canvas {
  display: none !important;
}

/* ===== Pipes más visibles en diagrama integraciones ===== */
.lm-int-diagram .lm-pipe-col {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  gap: 0.45rem;
}

.lm-int-diagram .lm-pipe--h {
  width: 100%;
  min-width: 100%;
  flex: 0 0 8px;
  height: 8px;
}

.lm-int-diagram .lm-pipe--h .lm-pipe__track {
  height: 8px;
  background-size: 16px 8px;
  animation-duration: 0.45s;
}

.lm-int-diagram .lm-pipe__packet {
  width: 12px;
  height: 12px;
  animation-duration: 1.6s;
}

.lm-int-diagram .lm-pipe--double .lm-pipe__packet--alt {
  animation-delay: 0.8s;
}

.lm-int-eco__bridge--live {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lm-int-eco__bridge--live:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18);
}

/* ===== Hero home — flujo de datos ===== */
.lm-hero-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lm-hero-flow__svg {
  width: 100%;
  height: 100%;
  min-height: 220px;
  opacity: 0.92;
}

.lm-hero-flow__path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: lm-beam-flow 0.7s linear infinite;
}

.lm-hero-flow__path--1 { stroke: rgba(34, 211, 238, 0.75); }
.lm-hero-flow__path--2 { stroke: rgba(167, 139, 250, 0.75); animation-delay: 0.15s; }
.lm-hero-flow__path--3 { stroke: rgba(52, 211, 153, 0.75); animation-delay: 0.3s; }
.lm-hero-flow__path--4 { stroke: rgba(251, 191, 36, 0.75); animation-delay: 0.2s; }
.lm-hero-flow__path--5 { stroke: rgba(244, 114, 182, 0.75); animation-delay: 0.35s; }

.lm-hero-flow__dot {
  filter: drop-shadow(0 0 6px currentColor);
}

.lm-hero-flow__core {
  fill: rgba(37, 99, 235, 0.25);
  stroke: rgba(96, 165, 250, 0.9);
  stroke-width: 2;
  animation: lm-core-pulse 2.2s ease-out infinite;
}

.lm-hero-flow__label {
  fill: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: system-ui, sans-serif;
}

.lm-hero-flow__nodes {
  display: none;
}

/* ===== Deep link benefit — puente vertical animado ===== */
.lm-deep-link-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.lm-deep-link-bridge__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  min-height: 140px;
  width: 36px;
}

.lm-deep-link-bridge__stack .lm-pipe--v {
  flex: 1 1 auto;
  min-height: 36px;
  width: 8px;
}

.lm-deep-link-bridge__stack .lm-pipe--v .lm-pipe__track {
  width: 8px;
}

.lm-deep-link-bridge__hub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6366f1, #0ea5e9);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  animation: lm-core-pulse 2s ease-out infinite;
}

/* ===== Comms — beams más visibles ===== */
.lm-comms-hub .lm-beam-path {
  stroke-width: 2.5;
  stroke-dasharray: 5 7;
  animation-duration: 0.55s;
}

.lm-comms-hub__ring--outer {
  border-width: 2px;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.45);
}

.lm-comms-hub__pulse {
  animation: lm-core-pulse 2s ease-out infinite;
}

/* ===== Trust AWS — beams y nodos ===== */
.lm-trust-beam {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
}

.lm-trust-beam--1 { stroke: rgba(56, 189, 248, 0.85); }
.lm-trust-beam--2 { stroke: rgba(129, 140, 248, 0.85); animation-delay: 0.15s; }
.lm-trust-beam--3 { stroke: rgba(52, 211, 153, 0.85); animation-delay: 0.3s; }
.lm-trust-beam--4 { stroke: rgba(251, 191, 36, 0.85); animation-delay: 0.45s; }

.lm-trust-dot {
  filter: drop-shadow(0 0 5px currentColor);
}

.lm-trust-arch__pulse {
  animation: lm-core-pulse 2.2s ease-out infinite;
}

/* ===== Tour app — flechas animadas ===== */
.lm-auditor-tour__arrow svg path {
  stroke: #2563eb;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  animation: lm-beam-flow 0.65s linear infinite;
}

.lm-auditor-tour__arrow {
  animation: lm-arrow-nudge 1.2s ease-in-out infinite;
  animation-delay: calc(var(--tour-i, 0) * 0.2s);
}

.lm-auditor-tour__step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.lm-motion-on .lm-auditor-tour__step.lm-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Stats con pulso ===== */
.lm-stat--pulse .lm-stat__num {
  animation: lm-core-pulse 2.4s ease-out infinite;
}

.lm-stat--pulse .lm-stat__num i {
  display: inline-block;
  animation: lm-node-breathe 2.8s ease-in-out infinite;
}

/* ===== Sync diagram — pipes más anchos ===== */
.lm-sync-diagram .lm-pipe--h {
  height: 8px;
  min-width: 48px;
}

.lm-sync-diagram .lm-pipe--h .lm-pipe__track {
  height: 8px;
}

.lm-sync-diagram .lm-pipe__packet {
  width: 12px;
  height: 12px;
  animation-duration: 1.8s;
}

.lm-sync-diagram__node {
  animation: lm-node-breathe 3s ease-in-out infinite;
}

.lm-sync-diagram__node--cloud {
  animation-delay: 0.5s;
  border-color: #7dd3fc;
}

/* ===== Entrada al scroll ===== */
.lm-int-diagram,
.lm-comms-visual,
.lm-trust-arch,
.lm-sync-diagram {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.lm-motion-on .lm-int-diagram.lm-in-view,
body.lm-motion-on .lm-comms-visual.lm-in-view,
body.lm-motion-on .lm-trust-arch.lm-in-view,
body.lm-motion-on .lm-sync-diagram.lm-in-view {
  opacity: 1;
  transform: translateY(0);
}

body.lm-motion-on .lm-sol-flow.lm-in-view,
body.lm-motion-on .lm-sol-platform__hub.lm-in-view {
  opacity: 1;
  transform: translateY(0);
}

.lm-sol-flow,
.lm-sol-platform__hub {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== Cap cards glow ===== */
.lm-cap-grid--live .lm-cap-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm-cap-grid--live .lm-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.14);
}

@keyframes lm-hero-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.lm-page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(56, 189, 248, 0.12) 50%, transparent 60%);
  animation: lm-hero-sweep 5s ease-in-out infinite;
}

.landing-page--sgi .lm-page-head::after {
  background: linear-gradient(105deg, transparent 40%, rgba(245, 158, 11, 0.14) 50%, transparent 60%);
}

.landing-page--mpi .lm-page-head::after {
  background: linear-gradient(105deg, transparent 40%, rgba(52, 211, 153, 0.14) 50%, transparent 60%);
}

.landing-page--compliance .lm-page-head::after {
  background: linear-gradient(105deg, transparent 40%, rgba(248, 113, 113, 0.12) 50%, transparent 60%);
}

.landing-page--complaint .lm-page-head::after {
  background: linear-gradient(105deg, transparent 40%, rgba(56, 189, 248, 0.14) 50%, transparent 60%);
}

.landing-page--benefit .lm-page-head::after {
  background: linear-gradient(105deg, transparent 40%, rgba(20, 184, 166, 0.14) 50%, transparent 60%);
}

.landing-page--experience .lm-page-head::after {
  background: linear-gradient(105deg, transparent 40%, rgba(99, 102, 241, 0.14) 50%, transparent 60%);
}

.lm-features-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(34, 211, 238, 0.1) 50%, transparent 65%);
  animation: lm-hero-sweep 6s ease-in-out infinite;
}

.lm-features-hero {
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .lm-page-head::after,
  .lm-features-hero::after,
  .lm-hero-flow__path,
  .lm-hero-flow__core,
  .lm-auditor-tour__step,
  .lm-deep-link-bridge__hub,
  .lm-sync-diagram__node {
    animation: none !important;
  }

  .lm-page-head::after,
  .lm-features-hero::after {
    display: none;
  }

  .lm-int-diagram,
  .lm-comms-visual,
  .lm-trust-arch,
  .lm-sync-diagram,
  .lm-auditor-tour__step {
    opacity: 1;
    transform: none;
  }
}

/* ===== Páginas de solución — plataforma compartida y esquemas ===== */
.lm-sol-platform__focus {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border-left: 4px solid #6366f1;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.lm-sol-platform__focus--sgi { border-left-color: #f59e0b; }
.lm-sol-platform__focus--complaint { border-left-color: #0ea5e9; }
.lm-sol-platform__focus--mpd { border-left-color: #ef4444; }
.lm-sol-platform__focus--mpi { border-left-color: #10b981; }

.lm-sol-platform__focus-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.lm-sol-shared-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

@media (min-width: 576px) {
  .lm-sol-shared-grid { grid-template-columns: repeat(3, 1fr); }
}

.lm-sol-shared-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

.lm-sol-shared-chip i {
  font-size: 1.1rem;
  color: #6366f1;
  flex-shrink: 0;
}

.lm-sol-platform__hub {
  position: relative;
  min-height: 160px;
  border-radius: 1rem;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  padding: 1rem;
  overflow: hidden;
}

.lm-sol-platform__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2563eb, #6366f1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25);
  animation: lm-core-pulse 2.4s ease-out infinite;
  z-index: 2;
}

.lm-sol-platform__lines {
  position: absolute;
  inset: 0;
}

.lm-sol-platform__line {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  animation: lm-node-breathe 3s ease-in-out infinite;
}

.lm-sol-platform__line.is-active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.lm-sol-platform__line--sgi { top: 12%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.lm-sol-platform__line--complaint { top: 50%; right: 6%; transform: translateY(-50%); animation-delay: 0.2s; }
.lm-sol-platform__line--mpd { bottom: 12%; left: 50%; transform: translateX(-50%); animation-delay: 0.4s; }
.lm-sol-platform__line--mpi { top: 50%; left: 6%; transform: translateY(-50%); animation-delay: 0.6s; }

.lm-sol-flow {
  padding: 1.15rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid #e2e8f0;
}

.lm-sol-flow--complaint { background: linear-gradient(160deg, #f0f9ff 0%, #eff6ff 100%); border-color: #bae6fd; }
.lm-sol-flow--mpd { background: linear-gradient(160deg, #fef2f2 0%, #fff7ed 100%); border-color: #fecaca; }
.lm-sol-flow--mpi { background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 100%); border-color: #a7f3d0; }
.lm-sol-flow--sgi { background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%); border-color: #fde68a; }

.lm-sol-flow__core {
  text-align: center;
  margin-bottom: 0.85rem;
}

.lm-sol-flow__core-brand {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lm-sol-flow__core-sub {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.lm-sol-flow__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.25rem;
}

.lm-sol-flow__steps--linear { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; }

.lm-sol-flow__step {
  flex: 1 1 100px;
  min-width: 96px;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.65rem 0.45rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  font-size: 0.68rem;
  line-height: 1.3;
  color: #64748b;
  animation: lm-node-breathe 3.2s ease-in-out infinite;
  animation-delay: calc(var(--sol-i, 0) * 0.12s);
}

.lm-sol-flow__step strong {
  font-size: 0.74rem;
  color: #0f172a;
}

.lm-sol-flow__step-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.15rem;
}

.lm-sol-flow--sgi .lm-sol-flow__step-icon { background: #fef3c7; color: #d97706; }
.lm-sol-flow--complaint .lm-sol-flow__step-icon { background: #e0f2fe; color: #0284c7; }
.lm-sol-flow--mpd .lm-sol-flow__step-icon { background: #fee2e2; color: #dc2626; }
.lm-sol-flow--mpi .lm-sol-flow__step-icon { background: #d1fae5; color: #059669; }

.lm-sol-flow__step-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.lm-sol-flow__conn {
  flex: 0 0 36px;
  align-self: center;
  min-width: 28px;
}

.lm-sol-flow__conn .lm-pipe--h {
  height: 8px;
  min-width: 100%;
}

.lm-sol-flow__caption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
  text-align: center;
}

.lm-sol-flow__layers {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.lm-sol-flow__layer {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.65rem 0.55rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.lm-sol-flow__layer-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.lm-sol-flow__layer--law { border-color: #fecaca; }
.lm-sol-flow__layer--core { border-color: #fed7aa; flex: 1.4 1 0; }
.lm-sol-flow__layer--out { border-color: #bbf7d0; }

.lm-sol-flow__law-list li {
  font-size: 0.72rem;
  font-weight: 700;
  color: #991b1b;
  padding: 0.2rem 0;
}

.lm-sol-flow__steps--stack { gap: 0.35rem; }

.lm-sol-flow__step--compact {
  flex-direction: row;
  max-width: none;
  min-width: 0;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  font-weight: 600;
  color: #334155;
  animation: none;
}

.lm-sol-flow__step--compact i {
  color: #dc2626;
  font-size: 1rem;
}

.lm-sol-flow__layer-pipes {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-sol-flow__layer-pipes .lm-pipe--v {
  height: 100%;
  min-height: 80px;
  width: 8px;
}

.lm-sol-flow__out-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #334155;
  padding: 0.25rem 0;
}

.lm-sol-flow__out-list i { color: #059669; }

.lm-sol-flow__mpi-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.lm-sol-flow__mpi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #a7f3d0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
}

.lm-sol-diff-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .lm-sol-diff-grid { grid-template-columns: repeat(3, 1fr); }
}

.lm-sol-diff-card {
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  height: 100%;
}

.lm-sol-diff-card i {
  font-size: 1.5rem;
  color: #6366f1;
  margin-bottom: 0.35rem;
}

.lm-sol-diff-card h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.lm-sol-diff-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.lm-page-solution--sgi .lm-sol-diff-card i { color: #d97706; }
.lm-page-solution--complaint .lm-sol-diff-card i { color: #0284c7; }
.lm-page-solution--compliance .lm-sol-diff-card i { color: #dc2626; }
.lm-page-solution--mpi .lm-sol-diff-card i { color: #059669; }

@media (max-width: 767px) {
  .lm-sol-flow__steps--linear {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .lm-sol-flow__conn {
    flex: 0 0 100%;
    order: 1;
    height: 8px;
  }

  .lm-sol-flow__conn .lm-pipe--h { width: 100%; }

  .lm-sol-flow__step { max-width: none; flex: 1 1 calc(50% - 0.5rem); }

  .lm-sol-flow__layers {
    flex-direction: column;
  }

  .lm-sol-flow__layer-pipes {
    flex-direction: row;
    flex: 0 0 auto;
    min-height: 28px;
    width: 100%;
  }

  .lm-sol-flow__layer-pipes .lm-pipe--v {
    width: 100%;
    height: 8px;
    min-height: 8px;
  }

  .lm-sol-platform__line {
    font-size: 0.62rem;
    padding: 0.25rem 0.4rem;
  }
}

/* ===== Iconos con tinte sutil ===== */
@keyframes lm-icon-color-shift {
  0%, 100% { color: var(--lm-icon-c1, #6366f1); }
  50% { color: var(--lm-icon-c2, #0ea5e9); }
}

.lm-icon-cell--live .mdi.lm-icon-xl {
  animation: lm-icon-color-shift 4.5s ease-in-out infinite;
  animation-delay: calc(var(--icon-i, 0) * 0.35s);
}

.lm-icon-cell--amber { --lm-icon-c1: #d97706; --lm-icon-c2: #fbbf24; }
.lm-icon-cell--sky { --lm-icon-c1: #0284c7; --lm-icon-c2: #38bdf8; }
.lm-icon-cell--slate { --lm-icon-c1: #475569; --lm-icon-c2: #6366f1; }

.lm-stat--live .lm-stat__num .mdi {
  animation: lm-icon-color-shift 5s ease-in-out infinite;
  animation-delay: calc(var(--icon-i, 0) * 0.25s);
}

.lm-page-home .lm-stat:nth-child(1) { --lm-icon-c1: #0ea5e9; --lm-icon-c2: #22d3ee; }
.lm-page-home .lm-stat:nth-child(2) { --lm-icon-c1: #6366f1; --lm-icon-c2: #a78bfa; }
.lm-page-home .lm-stat:nth-child(3) { --lm-icon-c1: #059669; --lm-icon-c2: #34d399; }
.lm-page-home .lm-stat:nth-child(4) { --lm-icon-c1: #d97706; --lm-icon-c2: #fbbf24; }
.lm-page-home .lm-stat:nth-child(5) { --lm-icon-c1: #0284c7; --lm-icon-c2: #38bdf8; }
.lm-page-home .lm-stat:nth-child(6) { --lm-icon-c1: #7c3aed; --lm-icon-c2: #a78bfa; }

.lm-sol-shared-chip:nth-child(1) i { --lm-icon-c1: #6366f1; --lm-icon-c2: #818cf8; }
.lm-sol-shared-chip:nth-child(2) i { --lm-icon-c1: #0ea5e9; --lm-icon-c2: #38bdf8; }
.lm-sol-shared-chip:nth-child(3) i { --lm-icon-c1: #059669; --lm-icon-c2: #34d399; }
.lm-sol-shared-chip:nth-child(4) i { --lm-icon-c1: #7c3aed; --lm-icon-c2: #a78bfa; }
.lm-sol-shared-chip:nth-child(5) i { --lm-icon-c1: #d97706; --lm-icon-c2: #fbbf24; }
.lm-sol-shared-chip:nth-child(6) i { --lm-icon-c1: #0284c7; --lm-icon-c2: #22d3ee; }

.lm-sol-shared-chip i {
  animation: lm-icon-color-shift 4.8s ease-in-out infinite;
  animation-delay: calc(var(--icon-i, 0) * 0.2s);
}

.lm-sol-diff-card i {
  animation: lm-icon-color-shift 5.5s ease-in-out infinite;
  animation-delay: calc(var(--icon-i, 0) * 0.3s);
}

.lm-page-solution--sgi .lm-sol-diff-card { --lm-icon-c1: #d97706; --lm-icon-c2: #f59e0b; }
.lm-page-solution--complaint .lm-sol-diff-card { --lm-icon-c1: #0284c7; --lm-icon-c2: #38bdf8; }
.lm-page-solution--compliance .lm-sol-diff-card { --lm-icon-c1: #dc2626; --lm-icon-c2: #f97316; }
.lm-page-solution--mpi .lm-sol-diff-card { --lm-icon-c1: #059669; --lm-icon-c2: #34d399; }

.lm-card-solution__icon i {
  transition: color 0.35s ease, transform 0.35s ease;
}

.lm-card-solution:hover .lm-card-solution__icon i {
  color: #2563eb;
  transform: scale(1.06);
}

/* ===== Showcase UI — capturas con crossfade ===== */
.lm-ui-showcase {
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.lm-motion-on .lm-ui-showcase.lm-in-view {
  opacity: 1;
  transform: translateY(0);
}

.lm-ui-showcase__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.lm-ui-showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lm-ui-showcase__dot--r { background: #f87171; }
.lm-ui-showcase__dot--y { background: #fbbf24; }
.lm-ui-showcase__dot--g { background: #34d399; }

.lm-ui-showcase__chrome-title {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.lm-ui-showcase__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1896 / 864;
  background: #f1f5f9;
  overflow: hidden;
  transition: aspect-ratio 0.45s ease;
}

.lm-ui-showcase__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

.lm-ui-showcase__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.lm-ui-showcase__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.lm-ui-showcase__slide.is-active img {
  animation: lm-ui-ken-burns 9s ease-in-out infinite alternate;
}

@keyframes lm-ui-ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

.lm-ui-showcase__slide figcaption {
  display: none;
}

.lm-ui-showcase__footer {
  padding: 0.55rem 0.75rem 0.65rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.lm-ui-showcase__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.lm-ui-showcase__dot-btn {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lm-ui-showcase__dot-btn.is-active {
  background: #6366f1;
  transform: scale(1.15);
}

.lm-ui-showcase__caption {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
  text-align: center;
  min-height: 1.1rem;
  transition: opacity 0.35s ease;
}

.lm-ui-showcase-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.lm-gallery--live .lm-gallery__item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lm-gallery--live .lm-gallery__item.is-highlight {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

.lm-gallery--live .lm-gallery__item img {
  transition: filter 0.4s ease;
}

.lm-gallery--live .lm-gallery__item.is-highlight img {
  filter: saturate(1.05);
}

.lm-gallery--compact {
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.lm-gallery--compact .lm-gallery__item {
  aspect-ratio: 1896 / 864;
  height: auto;
}

.lm-gallery--compact .lm-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

@media (min-width: 768px) {
  .lm-gallery--compact {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-icon-cell--live .mdi,
  .lm-stat--live .lm-stat__num .mdi,
  .lm-sol-shared-chip i,
  .lm-sol-diff-card i,
  .lm-ui-showcase__slide.is-active img {
    animation: none !important;
  }

  .lm-ui-showcase__slide {
    transition: none;
  }
}
