/* LMI sitio V1.2. Estilos compartidos: encabezado con menú móvil, carrusel de casos, cifras, mapa de países y video. */

/* ---- Encabezado ---- */
.lmi-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #071925; border-radius: 2px; background: #FFFFFF; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.lmi-burger span { display: block; width: 20px; height: 2px; background: #071925; transition: transform .2s ease, opacity .2s ease; }
.lmi-hdr.lmi-abierto .lmi-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lmi-hdr.lmi-abierto .lmi-burger span:nth-child(2) { opacity: 0; }
.lmi-hdr.lmi-abierto .lmi-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1100px) {
  .lmi-hdr-in { gap: 14px 12px !important; padding-top: 14px !important; padding-bottom: 14px !important; }
  .lmi-hdr-logo { order: 0; }
  .lmi-hdr-logo img { height: 30px !important; }
  .lmi-burger { display: flex; order: 1; margin-left: auto; }
  .lmi-hdr-cta { order: 2; width: 100%; flex-wrap: nowrap !important; gap: 10px !important; }
  .lmi-hdr-cta a { flex: 1 1 0; justify-content: center; height: 38px !important; padding: 0 10px !important; font-size: 14px !important; white-space: nowrap; }
  .lmi-menu { order: 3; width: 100%; display: none !important; flex-direction: column; align-items: flex-start !important; gap: 0 !important; border-top: 1px solid #D9DDE2; }
  .lmi-hdr.lmi-abierto .lmi-menu { display: flex !important; }
  .lmi-menu a { width: 100%; padding: 14px 0; font-size: 17px !important; border-bottom: 1px solid #EEF0F2; text-underline-offset: 6px !important; }
}

/* ---- Carrusel de casos ---- */
.lmi-carr-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lmi-carr-track::-webkit-scrollbar { display: none; }
.lmi-carr-track:focus-visible { outline: 3px solid #FFE001; outline-offset: 2px; }
.lmi-carr-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: flex; flex-wrap: wrap; background: #F2F3F5; }
.lmi-carr-main { flex: 999 1 520px; min-width: 0; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.lmi-carr-kpis { flex: 1 1 300px; background: #071925; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.lmi-carr-ctrl { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.lmi-carr-btn { width: 44px; height: 44px; border: 1px solid #071925; border-radius: 2px; background: #FFFFFF; color: #071925; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.lmi-carr-btn:disabled { opacity: .35; cursor: default; }
.lmi-carr-count { min-width: 56px; text-align: center; font-size: 14px; font-weight: 600; color: #4A5866; }

/* ---- Logos de clientes en carrusel continuo ---- */
.lmi-logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lmi-logos-fila { display: flex; width: max-content; animation: lmiLogos 60s linear infinite; }
.lmi-logos:hover .lmi-logos-fila, .lmi-logos:focus-within .lmi-logos-fila { animation-play-state: paused; }
.lmi-logos-item { flex: none; display: flex; align-items: center; padding: 0 28px; height: 56px; font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 22px; letter-spacing: -0.01em; color: #4A5866; white-space: nowrap; }
.lmi-logos-item img { display: block; height: 36px; width: auto; max-width: 150px; }
@keyframes lmiLogos { to { transform: translateX(-50%); } }

/* ---- Cifras ---- */
.lmi-cifra-btn { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lmi-cifra-btn:hover .lmi-cifra-pista { text-decoration: underline; }

/* ---- Mapa de países ---- */
dialog.lmi-paises { width: 100%; max-width: min(960px, 94vw); padding: 0; border: 0; border-radius: 2px; background: #071925; color: #FFFFFF; }
dialog.lmi-paises::backdrop { background: rgba(7, 25, 37, 0.72); }
.lmi-paises-in { position: relative; display: flex; flex-wrap: wrap; }
.lmi-paises-mapa { flex: 1 1 380px; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 3vw, 40px); }
.lmi-paises-mapa canvas { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1; }
.lmi-paises-lista { flex: 1 1 320px; padding: clamp(28px, 3.5vw, 48px); }
.lmi-paises-cerrar { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 2px; background: transparent; color: #FFFFFF; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.lmi-paises-lista ul { margin: 12px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; font-size: 16px; line-height: 1.9; }
.lmi-paises-lista li { break-inside: avoid; padding-left: 18px; position: relative; }
.lmi-paises-lista li::before { position: absolute; left: 0; top: .72em; content: ""; width: 8px; height: 8px; background: #FFE001; }

/* ---- Video de cada sistema ---- */
.lmi-vsl { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #071925; color: #B4BEC8; text-align: center; padding: 24px; font-size: 15px; }
.lmi-vsl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #071925; }
.lmi-vsl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lmi-vsl-play { position: absolute; right: 20px; bottom: 20px; width: 64px; height: 64px; border-radius: 50%; background: #FFE001; box-shadow: 0 6px 24px rgba(7, 25, 37, 0.35); pointer-events: none; }
.lmi-vsl-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #071925; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.lmi-vsl-play--mini { right: 12px; bottom: 12px; width: 48px; height: 48px; }
.lmi-vsl-play--mini::after { left: 19px; top: 14px; border-left: 14px solid #071925; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.lmi-vsl-chip { position: absolute; left: 20px; bottom: 28px; padding: 6px 12px; border-radius: 2px; background: rgba(7, 25, 37, 0.85); color: #FFFFFF; font-size: 13px; font-weight: 600; }

/* ---- Calendario ---- */
.lmi-calendario { background: #FFFFFF; border-radius: 2px; padding: 8px; }
.lmi-calendario iframe { display: block; width: 100%; min-height: 640px; border: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lmi-logos-fila { animation: none; width: auto; }
  .lmi-logos-set { flex-wrap: wrap; justify-content: center; }
  .lmi-logos-set[aria-hidden="true"] { display: none !important; }
  .lmi-logos { -webkit-mask-image: none; mask-image: none; }
  .lmi-burger span { transition: none; }
}
