/* DEFY v2 · kit de integraciones: lo que DEFY hace con los sistemas de otros.
   Va después de v2.css y usa sus tokens (papel, tinta, azul, sombras, radios, tipos) y su .lienzo pintado.
   Todo con prefijo ig-. Piezas:
     .ig-par       DEFY + logo unidos por un hilo (DEFY siempre más grande que el logo ajeno)
     .ig-cards     una tarjeta por sistema
     .ig-hub       DEFY al centro, con lo que entra y lo que sale (se apila bajo 1000 px de ancho)
     .ig-escena    flujo paso a paso de un sistema (fila, lista o columna según el ancho que tenga)
     .ig-franja    logos con estado          .ig-minis  tarjetas compactas          .ig-dir  directorio
   Sin JS, o con prefers-reduced-motion, todo queda en su estado final y quieto. */

/* las pinturas del kit son archivos SVG (<img class="pintura">): no dependen de las pinturas en línea de cada página */
.lienzo > img.pintura{max-width:none;object-fit:cover}
.ig-hub.lienzo,.ig-escena.lienzo,.ig-card-arte.lienzo{background:#e3e5e1}

/* ===== íconos propios (máscaras: no dependen del sprite de cada página) ===== */
.ig-i{display:inline-block;flex:none;width:1em;height:1em;background:currentColor;-webkit-mask:var(--ig-m) center/contain no-repeat;mask:var(--ig-m) center/contain no-repeat}
.ig-i-check,.ig-acc li::before,.ig-ok::before{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.4 4.4L19 7.4'/%3E%3C/svg%3E")}
.ig-i-flecha,.ig-ver::after,.ig-mini-ver{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E")}
.ig-i-repetir{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.6-5.9'/%3E%3Cpath d='M20 4.5v4.6h-4.6'/%3E%3C/svg%3E")}
.ig-i-escudo{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.4c0 4.6-3.2 8.2-7.5 9.6-4.3-1.4-7.5-5-7.5-9.6V6z'/%3E%3Cpath d='M8.8 12.2l2.2 2.2 4.3-4.4'/%3E%3C/svg%3E")}
.ig-i-candado{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.2'/%3E%3Cpath d='M8.5 10.5V7.8a3.5 3.5 0 0 1 7 0v2.7'/%3E%3C/svg%3E")}
.ig-i-campana{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 16.5V11a5.5 5.5 0 0 1 11 0v5.5l1.5 1.6H5z'/%3E%3Cpath d='M10 20.5h4'/%3E%3C/svg%3E")}
.ig-i-lupa{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E")}
.ig-i-pausa{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Crect x='6.5' y='5' width='4' height='14' rx='1.2'/%3E%3Crect x='13.5' y='5' width='4' height='14' rx='1.2'/%3E%3C/svg%3E")}
.ig-i-sobre{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2.2'/%3E%3Cpath d='M4.5 7l7.5 6 7.5-6'/%3E%3C/svg%3E")}
.ig-i-x{--ig-m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E")}

/* ===== DEFY + logo ===== */
.ig-par{display:inline-flex;align-items:center;position:relative;z-index:1}
.ig-sello{width:48px;height:48px;border-radius:13px;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 1px 2px rgb(11 20 38 / .08),0 10px 24px -12px rgb(11 20 38 / .35)}
.ig-sello img{width:24px;height:24px;object-fit:contain}
.ig-sello.ig-d img{width:32px;height:32px;border-radius:7px}
.ig-sello img.ig-l-mp{width:30px;height:30px}
.ig-sello img.ig-l-ghl{width:27px;height:22px}
.ig-sello img.ig-l-negro{filter:brightness(0)}
.ig-cable{position:relative;width:46px;height:1.5px;background:rgb(11 20 38 / .72);box-shadow:0 0 0 2px rgb(255 255 255 / .55)}
.ig-cable::before,.ig-cable::after{content:"";position:absolute;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 3px rgb(255 255 255 / .8)}
.ig-cable::before{left:-3px}.ig-cable::after{right:-3px}
.ig-cable i{position:absolute;z-index:1;top:-3px;left:6px;width:7px;height:7px;border-radius:50%;background:var(--accent);opacity:0}
.ig-par.ig-chico .ig-sello{width:38px;height:38px;border-radius:11px}
.ig-par.ig-chico .ig-sello img{width:19px;height:19px}
.ig-par.ig-chico .ig-sello.ig-d img{width:26px;height:26px;border-radius:6px}
.ig-par.ig-chico .ig-sello img.ig-l-mp{width:24px;height:24px}
.ig-par.ig-chico .ig-sello img.ig-l-ghl{width:22px;height:18px}
.ig-par.ig-chico .ig-cable{width:28px}

/* ===== tarjetas por sistema (mismo lenguaje que el carril «Y todo lo demás» del inicio) ===== */
.ig-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ig-card{display:flex;flex-direction:column;min-width:0;background:var(--caja);border-radius:16px;padding:10px}
.ig-card-arte{height:168px;border-radius:10px;display:grid;place-items:center}
.ig-estado-chip{position:absolute;z-index:2;left:10px;top:10px;display:inline-flex;align-items:center;gap:6px;padding:4px 9px 4px 7px;border-radius:999px;background:rgb(11 20 38 / .8);color:#fff;font-size:11.5px;font-weight:600;letter-spacing:-.005em;line-height:1.1;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.ig-estado-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c,#7ba6f7)}
.ig-card-txt{display:flex;flex-direction:column;gap:10px;padding:16px 8px 6px;flex:1;min-width:0}
.ig-cat{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--accent);letter-spacing:0}
.ig-card-t{font-size:17.5px;font-weight:560;letter-spacing:-.016em;line-height:1.3;color:var(--ink);text-wrap:pretty}
.ig-card-t > span:last-child{font-weight:430;color:var(--tenue)}
.ig-sub{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12.5px;font-weight:550;color:var(--ink-2)}
.ig-sub span{display:inline-flex;align-items:center;gap:6px}
.ig-sub img{width:15px;height:15px;object-fit:contain}
.ig-sub img.ig-l-negro{filter:brightness(0)}
.ig-acc{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ig-acc li{display:grid;grid-template-columns:16px minmax(0,1fr);gap:9px;font-size:14.5px;line-height:1.42;color:var(--ink-2);text-wrap:pretty}
.ig-acc li::before{content:"";width:16px;height:16px;margin-top:2px;background:var(--accent);-webkit-mask:var(--ig-m) center/contain no-repeat;mask:var(--ig-m) center/contain no-repeat}
.ig-card-pie{margin-top:auto;padding-top:12px;border-top:1px solid var(--linea-2);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;min-height:44px}
.ig-card-pie .estado{line-height:1.35}
.ig-card-pie .estado.ig-neutro{color:var(--mute)}
.ig-card-pie .estado.ig-neutro i{background:var(--mute);box-shadow:0 0 0 3px rgb(95 102 119 / .18)}
.ig-ver{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin-left:auto;color:var(--accent);font-size:15px;font-weight:540;letter-spacing:-.01em;text-decoration:none;white-space:nowrap}
.ig-ver::after{content:"";width:15px;height:15px;background:currentColor;-webkit-mask:var(--ig-m) center/contain no-repeat;mask:var(--ig-m) center/contain no-repeat;transition:transform .25s var(--ease)}
.ig-ver:hover{color:var(--accent-osc)}
.ig-ver:hover::after{transform:translateX(3px)}
@media (max-width:1060px){.ig-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){
  .ig-cards{grid-template-columns:minmax(0,1fr);gap:12px}
  .ig-card-arte{height:150px}
  .ig-card-txt{padding:14px 6px 4px}
  .ig-ver{min-height:44px}
}

/* ===== hub: DEFY al centro ===== */
.ig-hub{container-type:inline-size;border-radius:var(--r-l)}
.ig-hub-mapa{position:relative;z-index:1;padding:16px 14px 18px}
.ig-hub-rutas{display:none}
.ig-hub-centro{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:20px 20px 18px;background:#fff;border-radius:16px;border:1.5px solid rgb(44 90 208 / .55);box-shadow:0 0 0 6px rgb(229 235 251 / .85),var(--sombra-2)}
.ig-hub-centro > img{width:44px;height:44px;border-radius:10px;margin-bottom:4px}
.ig-hc-n{font-size:19px;font-weight:700;letter-spacing:.02em;color:var(--ink)}
.ig-hc-p{font-size:14px;line-height:1.45;color:var(--mute);max-width:30ch;text-wrap:balance}
.ig-hc-mods{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
.ig-hc-mods li{font-size:12px;font-weight:560;color:var(--ink-2);padding:4px 9px;border-radius:999px;border:1px solid var(--linea)}
.ig-hc-mods li.ig-dl{background:var(--accent-soft);border-color:rgb(44 90 208 / .35);color:var(--accent)}
.ig-hc-dl{display:inline-flex;align-items:center;gap:7px;margin-top:6px;font-family:var(--mono);font-size:11.5px;font-weight:500;color:var(--ok)}
.ig-sats{list-style:none;margin:0;padding:0;position:relative}
.ig-sat{position:relative;z-index:2}
.ig-sat-in{display:flex;flex-direction:column;gap:6px;padding:12px 14px 13px;background:rgb(255 255 255 / .97);border-radius:12px;box-shadow:var(--sombra);color:inherit;text-decoration:none;transition:transform .35s var(--ease),box-shadow .35s var(--ease),outline-color .2s;outline:1.5px solid transparent;outline-offset:0}
a.ig-sat-in:hover,.ig-sat.on .ig-sat-in{outline-color:rgb(44 90 208 / .45)}
.ig-sat-cab{display:flex;align-items:center;gap:9px;font-size:14.5px;font-weight:620;letter-spacing:-.012em;color:var(--ink)}
.ig-sat-cab img{width:22px;height:22px;object-fit:contain;flex:none}
.ig-sat-cab img.ig-l-mp{width:26px;height:26px;margin:-2px -2px}
.ig-sat-cab img.ig-l-ghl{width:24px;height:20px}
.ig-flujo{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px;align-items:baseline;font-size:13px;line-height:1.38;color:var(--ink-2)}
.ig-flujo i{position:relative;font-style:normal;font-family:var(--mono);font-size:10.5px;font-weight:500;letter-spacing:0;padding-left:11px;color:var(--ink-2)}
.ig-flujo i::before{content:"";position:absolute;left:0;top:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:var(--ink)}
.ig-flujo.ig-sale i{color:var(--accent)}
.ig-flujo.ig-sale i::before{background:var(--accent)}
.ig-mas-logos{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.ig-mas-logos img{width:18px;height:18px;object-fit:contain}
.ig-mas-t{font-size:13px;line-height:1.4;color:var(--mute)}
.ig-hub-ley{display:flex;flex-wrap:wrap;gap:6px 16px;margin:14px 0 12px;font-family:var(--mono);font-size:11.5px;font-weight:500;color:var(--ink-2)}
.ig-hub-ley span{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:999px;background:rgb(255 255 255 / .9)}
.ig-hub-ley span::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ink)}
.ig-hub-ley .s{color:var(--accent)}
.ig-hub-ley .s::before{background:var(--accent)}
/* apilado: un riel a la izquierda une a DEFY con cada sistema (cada fila dibuja su tramo, sin medir nada) */
.ig-hub .ig-sats{display:flex;flex-direction:column}
.ig-hub .ig-sat{--hilo:rgb(11 20 38 / .62);--ty:25px;padding:0 0 10px 44px;
  background:linear-gradient(var(--hilo),var(--hilo)) 19px 0/1.5px 100% no-repeat,
             linear-gradient(var(--hilo),var(--hilo)) 19px var(--ty)/25px 1.5px no-repeat}
.ig-hub .ig-sat:first-child{padding-top:22px;--ty:47px}
.ig-hub .ig-sat:last-child{padding-bottom:0;background-size:1.5px calc(var(--ty) + 1px),25px 1.5px}
/* lo que sale de DEFY baja por el riel (azul); lo que entra llega por cada ramal (tinta) */
.ig-hub .ig-sat::after{content:"";position:absolute;z-index:1;left:15px;top:0;width:9px;height:100%;pointer-events:none;background:radial-gradient(circle,var(--accent) 0 3.4px,transparent 3.9px) 50% -14px/9px 9px no-repeat}
.ig-hub .ig-sat:last-child::after{height:calc(var(--ty) + 5px)}
.ig-hub .ig-sat::before{content:"";position:absolute;z-index:1;left:19px;top:calc(var(--ty) - 3.5px);width:25px;height:9px;pointer-events:none;background:radial-gradient(circle,var(--ink) 0 3.4px,transparent 3.9px) calc(100% + 14px) 50%/9px 9px no-repeat}
@container (max-width:999px){
  .ig-hub-mapa{display:flex;flex-direction:column;max-width:600px;margin-inline:auto}
}
@container (min-width:640px) and (max-width:999px){.ig-hub-mapa{padding:30px 0 24px}}
/* radial: DEFY al centro y los sistemas alrededor, unidos por rutas con lo que entra y lo que sale */
@container (min-width:1000px){
  .ig-hub-mapa{aspect-ratio:1200/760;padding:0}
  .ig-hub-rutas{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible}
  .ig-hub-centro{position:absolute;left:50%;top:50%;width:min(330px,28%);transform:translate(-50%,-50%)}
  .ig-hub .ig-sats{display:block;position:static}
  .ig-hub .ig-sat{position:absolute;left:var(--x);top:var(--y);width:min(272px,23%);padding:0;background:none;transform:translate(-50%,-50%)}
  .ig-hub .ig-sat::before,.ig-hub .ig-sat::after{display:none}
  .ig-hub-ley{position:absolute;z-index:2;left:18px;bottom:16px;margin:0}
}
.ig-r-halo{fill:none;stroke:rgb(255 255 255 / .55);stroke-width:4.5}
.ig-r{fill:none;stroke:rgb(11 20 38 / .6);stroke-width:1.4;transition:stroke .3s,opacity .3s}
.ig-r-mas{stroke-dasharray:4 6;stroke:rgb(11 20 38 / .45)}
.ig-v{fill:none;stroke-width:8;stroke-linecap:round;stroke-dasharray:0 100;opacity:0}
.ig-v-entra{stroke:var(--ink)}
.ig-v-sale{stroke:var(--accent)}
.ig-hub[data-foco] .ig-rg{opacity:.3;transition:opacity .3s}
.ig-hub[data-foco] .ig-rg.on{opacity:1}
.ig-hub[data-foco] .ig-rg.on .ig-r{stroke:var(--accent)}
.ig-hub-pie{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;margin-top:12px;padding:0 6px}
@media (max-width:760px){.ig-hub{border-radius:16px}.ig-hub-pie{padding:0 2px}}

/* ===== escenas: un flujo por sistema ===== */
.ig-escena{container-type:inline-size;border-radius:var(--r-l)}
.ig-esc-in{position:relative;z-index:1;padding:22px}
.ig-esc-cab{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 14px;background:rgb(255 255 255 / .96);border-radius:14px;box-shadow:var(--sombra);max-width:640px}
.ig-esc-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.ig-esc-sis{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--accent)}
.ig-esc-t b{font-size:16.5px;font-weight:600;letter-spacing:-.014em;line-height:1.3;color:var(--ink);text-wrap:pretty}
.ig-repetir{display:none;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--linea-2);background:#fff;color:var(--ink-2);font-size:13px;font-weight:550;cursor:pointer;white-space:nowrap}
.ig-repetir:hover{border-color:var(--ink);color:var(--ink)}
.ig-repetir .ig-i{width:14px;height:14px}
.ig-js .ig-repetir{display:inline-flex}
.ig-pasos{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:22px}
.ig-paso{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px 12px 14px;background:#fff;border-radius:var(--r-m);box-shadow:var(--sombra-2);border:1px solid rgb(11 20 38 / .06)}
.ig-paso-cab{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:20px}
.ig-hora{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--mute);font-variant-numeric:tabular-nums}
.ig-src{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:550;color:var(--ink-2);white-space:nowrap}
.ig-src img{width:15px;height:15px;object-fit:contain}
.ig-src img.ig-l-negro{filter:brightness(0)}
.ig-src img.ig-l-d{width:16px;height:16px;border-radius:4px}
.ig-src img.ig-l-mp{width:19px;height:19px;margin:-2px}
.ig-paso-t{display:flex;flex-direction:column;gap:3px}
.ig-paso-t b{font-size:15px;font-weight:620;letter-spacing:-.012em;line-height:1.3;color:var(--ink)}
.ig-paso-t span{font-size:13.5px;line-height:1.45;color:var(--mute);text-wrap:pretty}
/* el hilo que une un paso con el siguiente (con un punto que viaja) */
.ig-hilo{position:absolute;z-index:3;pointer-events:none}
.ig-paso:last-child .ig-hilo{display:none}
.ig-hilo::before,.ig-hilo::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 3px rgb(255 255 255 / .85)}
.ig-hilo i{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--accent);opacity:0}
.ig-esc-pie{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px;padding:11px 14px;background:rgb(255 255 255 / .96);border-radius:12px;box-shadow:var(--sombra);font-size:14px;line-height:1.4;color:var(--ink-2);max-width:100%}
.ig-esc-pie > .mono{font-size:11.5px;color:var(--mute)}
.ig-esc-pie b{font-weight:600;color:var(--ink)}
.ig-esc-pie img{width:16px;height:16px;object-fit:contain;vertical-align:-3px}
.ig-esc-pie img.ig-l-d{border-radius:4px}
.ig-esc-pie img.ig-l-mp{width:20px;height:20px;margin:-2px}
/* una escena como panel pintado de una sección .ft del sitio */
.ft-arte.ig-escena{border-radius:var(--r-m);display:flex;flex-direction:column;justify-content:center}
.ig-esc-pie .ig-dest{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--ink)}
.ig-esc-pie .ig-flecha{width:15px;height:15px;color:var(--mute)}

/* fila: los cuatro pasos lado a lado (contenedor ancho) */
@container (min-width:980px){
  .ig-esc-in{padding:26px 26px 24px}
  .ig-esc-cab{max-width:620px}
  .ig-pasos{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto auto;column-gap:34px;row-gap:0;margin-top:22px}
  .ig-paso{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:10px;align-content:start}
  .ig-hilo{left:100%;top:50%;width:34px;height:1.5px;background:rgb(11 20 38 / .72);box-shadow:0 0 0 2px rgb(255 255 255 / .5)}
  .ig-hilo::before{left:-3px;top:-3px}.ig-hilo::after{right:-3px;top:-3px}
  .ig-hilo i{top:-3px;left:2px}
  .ig-ui{min-height:118px}
  .ig-esc-pie{display:inline-flex;margin-top:22px}
}
/* lista: pasos uno bajo otro, con el dibujo al lado del texto */
@container (min-width:560px) and (max-width:979px){
  .ig-paso{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-areas:"cab ui" "t ui";align-items:start;gap:6px 18px;padding:14px}
  .ig-paso-cab{grid-area:cab}
  .ig-paso-t{grid-area:t}
  .ig-paso .ig-ui{grid-area:ui;align-self:stretch}
}
/* lista y columna: el hilo baja entre un paso y el siguiente */
@container (max-width:979px){
  .ig-hilo{left:50%;top:100%;width:1.5px;height:22px;background:rgb(11 20 38 / .72);box-shadow:0 0 0 2px rgb(255 255 255 / .5)}
  .ig-hilo::before{left:-3px;top:-3px}.ig-hilo::after{left:-3px;bottom:-3px}
  .ig-hilo i{left:-3px;top:2px}
  .ig-esc-cab{max-width:none}
}
@container (max-width:559px){
  .ig-esc-in{padding:12px}
  .ig-esc-cab{grid-template-columns:auto minmax(0,1fr);padding:12px;gap:12px}
  .ig-esc-cab .ig-repetir{grid-column:1/-1;justify-self:start;min-height:44px}
  .ig-esc-t b{font-size:15.5px}
  .ig-pasos{margin-top:12px}
  .ig-esc-pie{margin-top:12px}
}
@media (max-width:760px){.ig-escena{border-radius:16px}}

/* ===== visor: una pestaña por sistema y una escena a la vista (las pestañas las arma integraciones.js) ===== */
.ig-visor{display:flex;flex-direction:column;gap:14px}
.ig-visor > [hidden]{display:none}
.ig-visor-tabs{position:relative;align-self:center;display:flex;gap:2px;width:max-content;max-width:100%;padding:4px;border-radius:999px;background:#fff;border:1px solid rgb(11 20 38 / .06);box-shadow:var(--sombra);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.ig-visor-tabs::-webkit-scrollbar{display:none}
.ig-visor-tabs [role=tab]{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px 0 11px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--ink-2);font-size:14px;font-weight:560;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
.ig-visor-tabs [role=tab] img{width:18px;height:18px;object-fit:contain}
.ig-visor-tabs [role=tab] img.ig-l-negro{filter:brightness(0)}
.ig-visor-tabs [role=tab] img.ig-l-mp{width:22px;height:22px;margin:-2px}
.ig-visor-tabs [role=tab]:hover{color:var(--ink);background:rgb(11 20 38 / .04)}
.ig-visor-tabs [role=tab][aria-selected=true]{background:var(--accent-soft);color:var(--accent);border-color:rgb(44 90 208 / .35)}
.ig-visor-aviso{margin-top:12px}
@media (max-width:760px){.ig-visor-tabs{align-self:stretch}.ig-visor-tabs [role=tab]{min-height:44px}}

/* ===== el dibujo de cada paso: piezas genéricas propias (no imitan pantallas de nadie) ===== */
.ig-ui{display:flex;flex-direction:column;justify-content:center;gap:7px;min-height:104px;padding:10px;border-radius:10px;background:var(--bg);border:1px solid var(--linea);font-size:12.5px;line-height:1.38;color:var(--ink-2);overflow:hidden}
.ig-b{align-self:flex-start;max-width:94%;margin:0;padding:7px 10px;border-radius:12px 12px 12px 4px;background:#fff;border:1px solid var(--linea);font-size:12.5px;line-height:1.4;color:var(--ink);text-wrap:pretty}
.ig-b.yo{align-self:flex-end;border-radius:12px 12px 4px 12px;background:var(--accent-soft);border-color:rgb(44 90 208 / .18)}
.ig-filas{margin:0;display:flex;flex-direction:column;gap:5px}
.ig-filas > div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:5px 8px;border-radius:7px;background:#fff;border:1px solid var(--linea)}
.ig-filas dt{font-family:var(--mono);font-size:10.5px;font-weight:500;color:var(--mute);white-space:nowrap}
.ig-filas dd{margin:0;font-size:12px;font-weight:580;color:var(--ink);text-align:right;min-width:0}
.ig-filas .ig-ok{display:inline-flex;align-items:center;gap:5px;color:var(--ok)}
.ig-ok::before{content:"";width:12px;height:12px;flex:none;background:currentColor;-webkit-mask:var(--ig-m) center/contain no-repeat;mask:var(--ig-m) center/contain no-repeat}
.ig-dia{font-family:var(--mono);font-size:10.5px;font-weight:500;color:var(--mute);margin:0}
.ig-slots{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.ig-fila{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px;padding:4px 8px;border-radius:7px;background:#fff;border:1px solid var(--linea);font-size:12px;color:var(--mute)}
.ig-fila time{font-family:var(--mono);font-size:11px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.ig-fila.on{border-color:rgb(44 90 208 / .45);background:var(--accent-soft);color:var(--accent);font-weight:600}
.ig-fila.on time{color:var(--accent)}
.ig-fila.ok{border-color:rgb(31 122 85 / .4);background:#eaf4ef;color:var(--ok);font-weight:600}
.ig-fila.ok time{color:var(--ok)}
.ig-fila.espera{border-color:rgb(176 120 20 / .4);background:#fbf3e3;color:#8a5a06;font-weight:600}
.ig-fila.espera time{color:#8a5a06}
.ig-tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:5px}
.ig-tags li{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:580;padding:4px 8px;border-radius:6px;border:1px solid var(--accent);background:var(--accent-soft);color:var(--ink);white-space:nowrap}
.ig-tags li.no{border:1px dashed var(--linea-2);background:transparent;color:var(--mute);text-decoration:line-through;text-decoration-color:var(--linea-2)}
.ig-tags li.ok{border-color:rgb(31 122 85 / .45);background:#eaf4ef;color:var(--ok)}
.ig-tags li.gris{border-color:var(--linea);background:#fff;color:var(--ink-2)}
.ig-tags li .ig-i{width:11px;height:11px}
.ig-rot{font-family:var(--mono);font-size:10.5px;font-weight:500;color:var(--mute);margin:0}
.ig-dos{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.ig-dos > div{display:flex;flex-direction:column;gap:5px;min-width:0}
.ig-boton{display:inline-flex;align-items:center;justify-content:center;gap:6px;align-self:flex-start;padding:5px 11px;border-radius:7px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:620;white-space:nowrap}
.ig-boton.sec{background:#fff;color:var(--ink);border:1px solid var(--linea-2)}
.ig-botones{display:flex;flex-wrap:wrap;gap:5px}
.ig-ln{display:block;height:6px;width:var(--w,100%);border-radius:3px;background:#dfe2e0}
.ig-doc{display:flex;flex-direction:column;gap:6px;padding:9px 10px;border-radius:8px;background:#fff;border:1px solid var(--linea)}
.ig-doc-t{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:620;color:var(--ink)}
.ig-doc-t .ig-i{width:14px;height:14px;color:var(--accent)}
.ig-evento{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:8px;border-radius:8px;background:#fff;border:1px solid var(--linea)}
.ig-fecha{display:flex;flex-direction:column;align-items:center;justify-content:center;height:46px;border-radius:8px;background:var(--accent-soft);color:var(--accent);line-height:1.05}
.ig-fecha small{font-family:var(--mono);font-size:9.5px;font-weight:500}
.ig-fecha b{font-size:17px;font-weight:700}
.ig-evento p{margin:0;display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--mute);min-width:0}
.ig-evento p b{font-size:12.5px;font-weight:620;color:var(--ink)}
.ig-buscar{display:flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;background:#fff;border:1px solid var(--linea-2);font-size:12.5px;color:var(--ink);box-shadow:0 1px 2px rgb(11 20 38 / .05)}
.ig-buscar .ig-i{width:14px;height:14px;color:var(--mute)}
.ig-aviso-ad{display:grid;grid-template-columns:52px minmax(0,1fr);gap:9px;align-items:center;padding:8px;border-radius:8px;background:#fff;border:1px solid var(--linea)}
.ig-aviso-ad img{width:52px;height:52px;max-width:none;object-fit:cover;object-position:50% 70%;border-radius:6px}
.ig-aviso-ad p{margin:0;display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:620;color:var(--ink);min-width:0}
.ig-sw{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:580;color:var(--ok)}
.ig-sw::before{content:"";width:26px;height:15px;border-radius:999px;background:var(--ok) radial-gradient(circle at calc(100% - 7.5px) 50%,#fff 0 5px,transparent 5.5px)}
.ig-ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;counter-reset:ig}
.ig-ol li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:7px;align-items:baseline;padding:4px 8px;border-radius:7px;background:#fff;border:1px solid var(--linea);font-size:12px;color:var(--ink-2);counter-increment:ig}
.ig-ol li::before{content:counter(ig,decimal-leading-zero);font-family:var(--mono);font-size:10px;color:var(--accent)}
.ig-ol li.ig-ok{color:var(--ink)}
.ig-hall li{grid-template-columns:18px minmax(0,1fr) auto}
.ig-hall em{font-style:normal;font-family:var(--mono);font-size:10px;color:#a3402c;background:#fbefec;border-radius:5px;padding:1px 6px}
.ig-hall em.medio{color:#8a5a06;background:#fbf3e3}
.ig-seq{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.ig-seq li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px;border-radius:7px;background:#fff;border:1px solid var(--linea);font-size:12px;color:var(--ink-2)}
.ig-seq li span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ig-seq li .ig-i{width:13px;height:13px;color:var(--mute)}
.ig-seq em{font-style:normal;font-family:var(--mono);font-size:10.5px;color:var(--ok);white-space:nowrap;text-align:right}
.ig-seq li.corta{border-style:dashed;color:var(--mute)}
.ig-seq li.corta em{color:var(--accent)}
.ig-equipo{display:flex;flex-wrap:wrap;gap:6px}
.ig-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#fff;border:1px solid var(--linea-2);font-size:11.5px;font-weight:600;color:var(--ink)}
.ig-pill .ig-i{width:11px;height:11px}
.ig-pill.az{background:var(--accent-soft);border-color:rgb(44 90 208 / .35);color:var(--accent)}
.ig-pill.gr{background:#eaf4ef;border-color:rgb(31 122 85 / .35);color:var(--ok)}
.ig-avatar{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:9.5px;font-weight:700}
.ig-cambia{display:inline-grid;justify-items:start}
.ig-cambia > *{grid-area:1/1}
.ig-cambia .ig-a{opacity:0}
.ig-cambia.blq{display:grid;justify-items:stretch}

/* ===== movimiento: escenas (corren una vez al entrar en pantalla; «Repetir» las vuelve a correr) ===== */
@media (prefers-reduced-motion:no-preference){
  .ig-js .ig-escena:not(.ig-vis) .ig-paso,.ig-js .ig-escena:not(.ig-vis) .ig-esc-pie{opacity:0;transform:translateY(12px)}
  .ig-js .ig-escena:not(.ig-vis) .ig-cambia .ig-a{opacity:1}
  .ig-js .ig-escena:not(.ig-vis) .ig-cambia .ig-d{opacity:0}
  .ig-escena.ig-vis .ig-paso{animation:ig-aparece .7s var(--ease) both;animation-delay:calc(var(--n,0) * .95s + .1s)}
  .ig-escena.ig-vis .ig-esc-pie{animation:ig-aparece .7s var(--ease) both;animation-delay:4.1s}
  .ig-escena.ig-vis .ig-hilo i{animation:ig-viaja-x 1s cubic-bezier(.5,0,.3,1) both;animation-delay:calc(var(--n,0) * .95s + .65s)}
  .ig-escena.ig-vis .ig-cambia .ig-a{animation:ig-se-va .35s ease both;animation-delay:calc(var(--n,0) * .95s + .8s)}
  .ig-escena.ig-vis .ig-cambia .ig-d{animation:ig-llega .45s var(--ease) both;animation-delay:calc(var(--n,0) * .95s + .9s)}
  @keyframes ig-aparece{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  @keyframes ig-se-va{from{opacity:1}to{opacity:0}}
  @keyframes ig-llega{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
  @keyframes ig-viaja-x{0%{opacity:0;transform:none}15%{opacity:1}85%{opacity:1;transform:translateX(20px)}100%{opacity:0;transform:translateX(20px)}}
  @keyframes ig-viaja-y{0%{opacity:0;transform:none}15%{opacity:1}85%{opacity:1;transform:translateY(10px)}100%{opacity:0;transform:translateY(10px)}}
  @container (max-width:979px){.ig-escena.ig-vis .ig-hilo i{animation-name:ig-viaja-y}}
  /* hub: puntos que viajan por las rutas, entrando (tinta) y saliendo (azul) de DEFY */
  .ig-hub .ig-v-entra{animation:ig-entra 7.2s cubic-bezier(.45,0,.3,1) infinite;animation-delay:var(--dl,0s)}
  .ig-hub .ig-v-sale{animation:ig-sale 7.2s cubic-bezier(.45,0,.3,1) infinite;animation-delay:calc(var(--dl,0s) + 3.6s)}
  @keyframes ig-entra{0%{stroke-dashoffset:0;opacity:0}6%{opacity:1}40%{opacity:1}46%,100%{stroke-dashoffset:-100;opacity:0}}
  @keyframes ig-sale{0%{stroke-dashoffset:0;opacity:0}6%{opacity:1}40%{opacity:1}46%,100%{stroke-dashoffset:100;opacity:0}}
  /* apilado: la ola azul baja tramo por tramo; después llega cada sistema por su ramal */
  .ig-hub .ig-sat::after{animation:ig-tramo 8s linear infinite;animation-delay:calc(var(--i,0) * .42s)}
  .ig-hub .ig-sat::before{animation:ig-ramal 8s linear infinite;animation-delay:calc(var(--i,0) * .42s + 4s)}
  @keyframes ig-tramo{0%{background-position:50% -14px}7%,100%{background-position:50% calc(100% + 14px)}}
  @keyframes ig-ramal{0%{background-position:calc(100% + 14px) 50%}6%,100%{background-position:-14px 50%}}
  .ig-fuera .ig-v,.ig-fuera .ig-sat::before,.ig-fuera .ig-sat::after,.ig-fuera .ig-cable i{animation-play-state:paused}
  /* tarjetas: el hilo entre DEFY y el sistema se recorre al pasar el mouse o con el foco */
  .ig-card:hover .ig-cable i,.ig-card:focus-within .ig-cable i,.ig-mini:hover .ig-cable i,.ig-mini:focus-visible .ig-cable i{animation:ig-cable 2.4s cubic-bezier(.45,0,.3,1) infinite}
  @keyframes ig-cable{0%{left:0;opacity:0}12%{opacity:1}40%{opacity:1}50%{left:calc(100% - 7px);opacity:0}62%{opacity:1}90%{opacity:1}100%{left:0;opacity:0}}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .ig-card,.ig-paso,.ig-mini{transition:transform .4s var(--ease),box-shadow .4s var(--ease)}
  .ig-card:hover{transform:translateY(-4px);box-shadow:0 30px 50px -34px rgb(11 20 38 / .4)}
  a.ig-sat-in:hover{transform:translateY(-3px);box-shadow:0 2px 6px rgb(11 20 38 / .06),0 30px 56px -26px rgb(11 20 38 / .46)}
  .ig-mini:hover{transform:translateY(-3px)}
}

/* ===== franja: logos con estado ===== */
.ig-franja{display:flex;flex-direction:column;gap:12px}
.ig-fr-lista{list-style:none;margin:0;padding:6px;display:flex;flex-wrap:wrap;align-items:stretch;background:#fff;border-radius:14px;box-shadow:var(--sombra);border:1px solid rgb(11 20 38 / .05)}
.ig-fr-lista li{flex:1 1 150px;display:flex;align-items:center;gap:10px;min-width:0;padding:10px 14px;border-radius:9px;position:relative}
.ig-fr-lista li + li::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:1px;background:var(--linea)}
.ig-fr-lista img{width:22px;height:22px;object-fit:contain;flex:none}
.ig-fr-lista img.ig-l-mp{width:27px;height:27px;margin:-3px -2px}
.ig-fr-lista img.ig-l-ghl{width:24px;height:20px}
.ig-fr-lista img.ig-l-negro{filter:brightness(0)}
.ig-fr-lista li.ig-fr-d{flex:0 1 auto;padding-right:18px}
.ig-fr-lista li.ig-fr-d img{width:28px;height:28px;border-radius:7px}
.ig-fr-lista li > span{display:flex;flex-direction:column;gap:1px;min-width:0}
.ig-fr-lista b{font-size:14px;font-weight:620;letter-spacing:-.01em;line-height:1.25;color:var(--ink)}
.ig-fr-lista em{display:inline-flex;align-items:center;gap:6px;font-style:normal;font-family:var(--mono);font-size:11px;font-weight:500;color:var(--ok);white-space:nowrap}
.ig-fr-lista em i{width:6px;height:6px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgb(31 122 85 / .18)}
.ig-fr-lista li.ig-fr-d em{color:var(--accent)}
@media (max-width:760px){
  .ig-fr-lista{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px}
  .ig-fr-lista li{padding:10px}
  .ig-fr-lista li + li::before{display:none}
  .ig-fr-lista li:nth-child(n+3){border-top:1px solid var(--linea);border-radius:0}
  .ig-fr-lista li.ig-fr-d{grid-column:1/-1;padding-right:10px}
  .ig-fr-lista li.ig-fr-d + li{border-top:1px solid var(--linea);border-radius:0}
}

/* ===== tarjetas compactas (para insertar en otras landings) ===== */
.ig-minis{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:12px}
.ig-mini{display:grid;grid-template-columns:auto minmax(0,1fr) 20px;align-items:center;gap:14px;height:100%;padding:14px 16px 14px 14px;background:#fff;border-radius:var(--r-m);box-shadow:var(--sombra);border:1px solid rgb(11 20 38 / .05);color:inherit;text-decoration:none}
.ig-mini .ig-sello{box-shadow:0 1px 2px rgb(11 20 38 / .1);border:1px solid var(--linea)}
.ig-mini-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.ig-mini-txt b{font-size:15px;font-weight:620;letter-spacing:-.012em;line-height:1.3;color:var(--ink)}
.ig-mini-txt > span{font-size:13.5px;line-height:1.42;color:var(--mute);text-wrap:pretty}
.ig-mini-txt small{font-family:var(--mono);font-size:11px;font-weight:500;color:var(--ok)}
.ig-mini-ver{width:18px;height:18px;color:var(--accent);background:currentColor;-webkit-mask:var(--ig-m) center/contain no-repeat;mask:var(--ig-m) center/contain no-repeat;transition:transform .25s var(--ease)}
a.ig-mini:hover .ig-mini-ver{transform:translateX(3px)}
a.ig-mini:hover{box-shadow:0 2px 6px rgb(11 20 38 / .06),0 26px 50px -26px rgb(11 20 38 / .42)}
@media (max-width:420px){.ig-mini{gap:12px;padding:12px}.ig-mini .ig-sello{width:34px;height:34px;border-radius:10px}.ig-mini .ig-par .ig-cable{width:20px}}

/* ===== directorio: todas las plataformas, por grupo ===== */
.ig-dir{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;align-items:start}
.ig-dir-g{background:#fff;border-radius:var(--r-m);border:1px solid rgb(11 20 38 / .06);box-shadow:var(--sombra);padding:16px 18px 8px}
.ig-dir-g h3{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--accent);letter-spacing:0;margin-bottom:6px}
.ig-dir-g ul{list-style:none;margin:0;padding:0}
.ig-dir-g li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:11px 0;border-top:1px solid var(--linea)}
.ig-dir-g li:first-child{border-top:0}
.ig-dir-l{display:flex;justify-content:center;padding-top:1px}
.ig-dir-g img{width:24px;height:24px;object-fit:contain}
.ig-dir-g img.ig-l-mp{width:28px;height:28px;margin:-2px}
.ig-dir-g img.ig-l-ghl{width:26px;height:21px}
.ig-dir-g img.ig-l-negro{filter:brightness(0)}
.ig-dir-g img.ig-l-ancho{width:42px;height:14px;margin-top:5px}
.ig-dir-g img.ig-l-d{border-radius:6px}
.ig-dir-g p{margin:0;display:flex;flex-direction:column;gap:2px}
.ig-dir-g b{font-size:14.5px;font-weight:620;letter-spacing:-.01em;color:var(--ink)}
.ig-dir-g p span{font-size:13.5px;line-height:1.45;color:var(--mute)}

/* sin movimiento: nada viaja y todo queda en su estado final */
@media (prefers-reduced-motion:reduce){
  .ig-v,.ig-cable i,.ig-hilo i{display:none}
  .ig-hub .ig-sat::before,.ig-hub .ig-sat::after{background:none}
}

/* ===== choque de nombres con v2.css (17-nov, coordinador) =====
   El kit usa «.az» (píldora azul) y «em.medio» (gravedad «Media»); v2.css usa .az para el glosario (pegajoso, con fondo)
   y .medio como contenedor (ancho fijo). Aquí se devuelven las piezas del kit a su estado, en todas las páginas que cargan el kit. */
.ig-pill.az{position:static;top:auto;z-index:auto;backdrop-filter:none;-webkit-backdrop-filter:none}
.ig-pill.az span.ig-i{display:inline-block;width:11px;height:11px;border:0;border-radius:0;opacity:1;background:currentColor}
.ig-hall em.medio{width:auto;margin-inline:0}
