/* Estilos propios de la landing "plataforma" (convertidos desde plataforma.html). Las clases de Tailwind llevan el prefijo "lp-". */
/* Altura del header sticky; JS la ajusta al valor real. */
    /* Tokens de tema: claro (por defecto) y oscuro */
    :root {
      --c-bg: 250 250 250;
      --c-surface: 255 255 255;
      --c-ink: 23 33 64;
      --c-muted: 82 88 102;
      --line: rgba(10,10,10,0.10);
      --card-bg: rgba(255,255,255,0.9);
      --card-border: rgba(23,33,64,0.08);
      --card-border-hover: rgba(23,33,64,0.16);
      --card-shadow: 0 1px 2px rgba(16,24,40,0.04);
      --card-shadow-hover: 0 8px 24px -12px rgba(23,33,64,0.12);
      --shine: rgba(255,255,255,0.4);
      --glass-bg: rgba(255,255,255,0.72);
      --glass-bg-hover: rgba(255,255,255,0.85);
      --glass-shadow: 0 1px 2px rgba(16,24,40,0.03), 0 12px 32px -20px rgba(23,33,64,0.10);
      --glow: rgba(42,147,213,0.13);
      --glow-2: rgba(42,147,213,0.07);
      --glow-3: rgba(42,147,213,0.03);
      --page-glow: none;
      --btn-bg: #172140;
      --btn-fg: #ffffff;
      --btn-shadow: none;
      --accent-card-bg: #172140;
      --accent-card-border: transparent;
      --accent-card-shadow: none;
      --hover-bg: rgba(23,33,64,0.04);
      --active-bg: rgba(23,33,64,0.05);
      --active-line: #172140;
      --pill-bg: rgba(255,255,255,0.6);
      --pill-active-bg: #ffffff;
      --grad: linear-gradient(90deg, #125488 0%, #2A93D5 30%, #37CAEC 60%, #3DD9D6 85%, #ADD9D8 100%);
      --display-w: 300;
      --ok-bg: #ecfdf5;
      --ok-border: #d1fae5;
      --ok-fg: #047857;
      --ok-icon: #059669;
      --logo: #172140;
      --moon-d: block;
      --sun-d: none;
      --map-road: #ffffff;
      --map-top: #fcfcfd;
      --map-left: #eeeef0;
      --map-right: #e4e4e7;
      --map-edge: #d3d3d7;
      --map-id: #b4b4b9;
      --map-shadow: rgba(0,0,0,0.10);
      --footer-edge: #E4F6FF;
      --wordmark: #333333;
      --plate-mix: 28;
      --top-fill-1: rgba(187,255,222,0.75);
      --top-fill-2: rgba(122,242,216,0.35);
      --soft-bg: #F1F0EE;
      --soft-bg-hover: #E6E5E2;
      --soft-fg: #1D1D1F;
      --accent: #2A93D5;
      --accent-ring: rgba(42,147,213,0.15);
      --line-strong: rgba(23,33,64,0.18);
    }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
      --c-bg: 4 8 20;
      --c-surface: 11 19 38;
      --c-ink: 231 237 248;
      --c-muted: 170 182 204;
      --line: rgba(130,170,240,0.12);
      --card-bg: rgba(13,22,44,0.55);
      --card-border: rgba(130,170,240,0.14);
      --card-border-hover: rgba(55,202,236,0.4);
      --card-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      --card-shadow-hover: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(55,202,236,0.12), 0 16px 40px -20px rgba(42,147,213,0.55);
      --shine: rgba(255,255,255,0.06);
      --glass-bg: rgba(13,22,44,0.55);
      --glass-bg-hover: rgba(16,28,56,0.7);
      --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 50px -30px rgba(0,0,0,0.8);
      --glow: rgba(42,147,213,0.32);
      --glow-2: rgba(42,147,213,0.16);
      --glow-3: rgba(18,84,136,0.08);
      --page-glow: radial-gradient(1100px 620px at 12% -8%, rgba(42,147,213,0.22), transparent 62%), radial-gradient(900px 520px at 100% 18%, rgba(18,84,136,0.2), transparent 60%);
      --btn-bg: linear-gradient(180deg, #3b9ee3 0%, #1d68b8 100%);
      --btn-fg: #ffffff;
      --btn-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 24px -10px rgba(42,147,213,0.7);
      --accent-card-bg: linear-gradient(165deg, rgba(42,147,213,0.32) 0%, rgba(13,22,44,0.85) 70%);
      --accent-card-border: rgba(55,202,236,0.45);
      --accent-card-shadow: 0 0 0 1px rgba(55,202,236,0.08), 0 0 50px -12px rgba(42,147,213,0.55);
      --hover-bg: rgba(130,170,240,0.06);
      --active-bg: rgba(55,202,236,0.08);
      --active-line: #37CAEC;
      --pill-bg: rgba(13,22,44,0.55);
      --pill-active-bg: rgba(42,147,213,0.22);
      --grad: linear-gradient(90deg, #6cc4f5 0%, #37CAEC 45%, #7fe3e0 75%, #c9ecec 100%);
      --display-w: 300;
      --ok-bg: rgba(16,185,129,0.12);
      --ok-border: rgba(16,185,129,0.28);
      --ok-fg: #6ee7b7;
      --ok-icon: #34d399;
      --logo: linear-gradient(135deg, #37CAEC, #1d68b8);
      --moon-d: none;
      --sun-d: block;
      --map-road: rgba(130,170,240,0.10);
      --map-top: #14203a;
      --map-left: #0e172c;
      --map-right: #0a1224;
      --map-edge: rgba(130,170,240,0.18);
      --map-id: #4c5d7d;
      --map-shadow: rgba(0,0,0,0.45);
      --footer-edge: rgb(4, 8, 20);
      --wordmark: #E7EDF8;
      --plate-mix: 14;
      --top-fill-1: rgba(187,255,222,0.22);
      --top-fill-2: rgba(0,204,245,0.06);
      --soft-bg: rgba(255,255,255,0.08);
      --soft-bg-hover: rgba(255,255,255,0.14);
      --soft-fg: #E7EDF8;
      --accent: #37CAEC;
      --accent-ring: rgba(55,202,236,0.18);
      --line-strong: rgba(130,170,240,0.25);
      color-scheme: dark;
      }
    }
    :root[data-theme="dark"] {
      --c-bg: 4 8 20;
      --c-surface: 11 19 38;
      --c-ink: 231 237 248;
      --c-muted: 170 182 204;
      --line: rgba(130,170,240,0.12);
      --card-bg: rgba(13,22,44,0.55);
      --card-border: rgba(130,170,240,0.14);
      --card-border-hover: rgba(55,202,236,0.4);
      --card-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      --card-shadow-hover: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(55,202,236,0.12), 0 16px 40px -20px rgba(42,147,213,0.55);
      --shine: rgba(255,255,255,0.06);
      --glass-bg: rgba(13,22,44,0.55);
      --glass-bg-hover: rgba(16,28,56,0.7);
      --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 50px -30px rgba(0,0,0,0.8);
      --glow: rgba(42,147,213,0.32);
      --glow-2: rgba(42,147,213,0.16);
      --glow-3: rgba(18,84,136,0.08);
      --page-glow: radial-gradient(1100px 620px at 12% -8%, rgba(42,147,213,0.22), transparent 62%), radial-gradient(900px 520px at 100% 18%, rgba(18,84,136,0.2), transparent 60%);
      --btn-bg: linear-gradient(180deg, #3b9ee3 0%, #1d68b8 100%);
      --btn-fg: #ffffff;
      --btn-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 24px -10px rgba(42,147,213,0.7);
      --accent-card-bg: linear-gradient(165deg, rgba(42,147,213,0.32) 0%, rgba(13,22,44,0.85) 70%);
      --accent-card-border: rgba(55,202,236,0.45);
      --accent-card-shadow: 0 0 0 1px rgba(55,202,236,0.08), 0 0 50px -12px rgba(42,147,213,0.55);
      --hover-bg: rgba(130,170,240,0.06);
      --active-bg: rgba(55,202,236,0.08);
      --active-line: #37CAEC;
      --pill-bg: rgba(13,22,44,0.55);
      --pill-active-bg: rgba(42,147,213,0.22);
      --grad: linear-gradient(90deg, #6cc4f5 0%, #37CAEC 45%, #7fe3e0 75%, #c9ecec 100%);
      --display-w: 300;
      --ok-bg: rgba(16,185,129,0.12);
      --ok-border: rgba(16,185,129,0.28);
      --ok-fg: #6ee7b7;
      --ok-icon: #34d399;
      --logo: linear-gradient(135deg, #37CAEC, #1d68b8);
      --moon-d: none;
      --sun-d: block;
      --map-road: rgba(130,170,240,0.10);
      --map-top: #14203a;
      --map-left: #0e172c;
      --map-right: #0a1224;
      --map-edge: rgba(130,170,240,0.18);
      --map-id: #4c5d7d;
      --map-shadow: rgba(0,0,0,0.45);
      --footer-edge: rgb(4, 8, 20);
      --wordmark: #E7EDF8;
      --plate-mix: 14;
      --top-fill-1: rgba(187,255,222,0.22);
      --top-fill-2: rgba(0,204,245,0.06);
      --soft-bg: rgba(255,255,255,0.08);
      --soft-bg-hover: rgba(255,255,255,0.14);
      --soft-fg: #E7EDF8;
      --accent: #37CAEC;
      --accent-ring: rgba(55,202,236,0.18);
      --line-strong: rgba(130,170,240,0.25);
      color-scheme: dark;
    }
    :root { --header-h: 69px; }
    html { scroll-padding-top: var(--header-h); }

    body { font-family: 'Open Sans', sans-serif; }
    .mono-label { font-family: 'Open Sans', sans-serif; letter-spacing: 0.06em; }

    /* Tarjetas — mismo estilo que la página principal */
    .card {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(23,33,64,0.08);
      background: rgba(255,255,255,0.9);
      box-shadow: 0 1px 2px rgba(16,24,40,0.04);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .card:hover {
      border-color: rgba(23,33,64,0.16);
      box-shadow: 0 8px 24px -12px rgba(23,33,64,0.12);
    }
    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 50%;
      height: 100%;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
      transition: left 0.6s ease;
      pointer-events: none;
    }
    .card:hover::before { left: 100%; }

    /* Variante destacada: tarjeta oscura */
    .card-accent {
      background: #172140;
      border-color: transparent;
      color: #fff;
    }
    .card-accent:hover { border-color: transparent; }

    /* Sección "glow": halo azul radial + elementos de vidrio */
    .glow-section { position: relative; isolation: isolate; overflow: hidden; }
    .glow-section::before {
      content: '';
      position: absolute;
      z-index: -1;
      left: 50%;
      bottom: -60%;
      width: max(900px, 105%);
      height: 150%;
      transform: translateX(-50%);
      background: radial-gradient(closest-side,
        rgba(42,147,213,0.13) 0%, rgba(42,147,213,0.07) 40%, rgba(42,147,213,0.03) 70%, rgba(250,250,250,0) 100%);
      filter: blur(60px);
      pointer-events: none;
    }
    .glass {
      background: rgba(255,255,255,0.72);
      border-color: rgba(23,33,64,0.08);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      backdrop-filter: blur(20px) saturate(160%);
      box-shadow: 0 1px 2px rgba(16,24,40,0.03), 0 12px 32px -20px rgba(23,33,64,0.10);
    }
    .glass:hover {
      background: rgba(255,255,255,0.85);
      border-color: rgba(23,33,64,0.16);
    }
    .text-gradient {
      background: linear-gradient(90deg, #125488 0%, #2A93D5 30%, #37CAEC 60%, #3DD9D6 85%, #ADD9D8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    /* Selector de área */
    .dept-pill {
      color: #6b6b6b;
      background: #fff;
      border: 1px solid rgba(10,10,10,0.10);
    }
    .dept-pill:hover {
      color: #172140;
      border-color: rgba(23,33,64,0.16);
    }
    .dept-pill.active {
      color: #fff;
      border-color: transparent;
      background: #172140;
    }
    /* Pills de vidrio sobre el halo azul */
    .glow-section .dept-pill {
      color: #6b6b6b;
      background: rgba(255,255,255,0.6);
      border-color: rgba(10,10,10,0.06);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      backdrop-filter: blur(16px) saturate(160%);
    }
    .glow-section .dept-pill:hover {
      color: #172140;
      background: rgba(255,255,255,0.85);
      border-color: rgba(23,33,64,0.16);
    }
    .glow-section .dept-pill.active {
      color: #172140;
      background: #fff;
      border-color: rgba(23,33,64,0.2);
      box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 6px 16px -10px rgba(23,33,64,0.12);
    }

    .hide-scrollbar::-webkit-scrollbar { display: none; }
    .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    :focus-visible { outline: 2px solid #2A93D5; outline-offset: 2px; }

    /* Mobile-first: flujo normal, sin efectos de scroll */
    .doc-step {
      padding: 24px 0;
      opacity: 1;
      transform: none;
    }
    .doc-panel { display: none; }
    .doc-panel-mobile { display: block; }

    /* Desktop: comportamiento sticky-scroll */
    @media (min-width: 768px) {
      .doc-step {
        min-height: 72vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0.6;
        transition: opacity 0.15s ease-out, transform 0.15s ease-out;
        transform: translateY(10px);
        padding: 0;
        will-change: opacity, transform;
      }
      .doc-panel {
        display: flex;
        position: absolute;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 32px;
        opacity: 0;
        transform: scale(0.96);
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
      }
      .doc-panel.active {
        opacity: 1;
        transform: scale(1);
        pointer-events: all;
      }
      .doc-panel-mobile { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .card, .card::before, .doc-step, .doc-panel, #content-display { transition: none !important; }
    }
    /* Correo → Expediente: sección fija con panel lateral ligado al scroll */
    .scroll-exit { will-change: transform, opacity; }
    .mx-stage { padding-top: 48px; }
    .mx-options { display: flex; flex-direction: column; gap: 4px; }
    .mx-option { position: relative; list-style: none; padding: 14px 16px 14px 22px; border-radius: 10px; transition: opacity 0.35s ease, background-color 0.35s ease; }
    .mx-option::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line-strong); }
    .mx-progress { position: absolute; left: 0; top: 12px; width: 2px; height: calc((100% - 24px) * var(--p, 0)); border-radius: 2px; background: var(--accent); z-index: 1; }
    .mx-main { display: none; }
    .mx-visual { width: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: 12px; background: rgb(var(--c-bg)); border: 1px solid var(--line); }
    .mx-inline { margin-top: 12px; display: flex; flex-direction: column-reverse; gap: 12px; }
    .mx-inline .mx-desc { text-align: left; }
    @media (max-width: 767px) {
      .mx-option .mx-progress { height: calc(100% - 24px); }
    }
    @media (min-width: 768px) {
      .mx-stage { height: 300vh; padding-top: 0; }
      .mx-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
      .mx-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
      .mx-inline { display: none; }
      .mx-option { opacity: 0.4; }
      .mx-option.active { opacity: 1; background: var(--active-bg); }
      .mx-main { display: block; position: relative; height: 440px; }
      .mx-panel {
        position: absolute; inset: 0; padding: 40px;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
        opacity: 0; transform: translateY(16px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        pointer-events: none;
      }
      .mx-panel.active { opacity: 1; transform: none; }
      .mx-panel .mx-visual { max-width: 380px; min-height: 220px; }
      .mx-desc { max-width: 400px; text-align: center; }
    }
    @media (prefers-reduced-motion: reduce) {
      .mx-option, .mx-panel { transition: none; }
    }

    /* Fondo de la sección del selector de áreas: capas de vidrio en triángulo redondeado (azul → turquesa → menta) */
    .glass-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
    .glass-stack {
      position: absolute; width: 640px; height: 640px;
      transform-style: preserve-3d;
      transform: rotateX(58deg) rotateZ(-38deg);
      animation: stack-drift 14s ease-in-out infinite;
    }
    .glass-stack--a { top: -240px; right: -270px; }
    .glass-stack--b { bottom: -330px; left: -220px; width: 520px; height: 520px; opacity: 0.55; animation-delay: -7s; }
    .glass-plate {
      position: absolute; inset: 0;
      opacity: calc((1 - var(--i) * 0.16) * var(--drop-o, 1));   /* --drop-o: entrada por scroll (1 = estado original) */
      transform: translateZ(calc(var(--i) * -20px));
      animation: plate-spread 8s ease-in-out infinite;
    }
    /* Cada capa es un triángulo redondeado dibujado en SVG (lo inserta el script del hero) */
    .glass-plate svg { display: block; width: 100%; height: 100%; overflow: visible; }
    .glass-plate path {
      fill: color-mix(in srgb, var(--pc) calc(var(--plate-mix) * 1%), transparent);
      stroke: var(--pc); stroke-width: 2; stroke-linejoin: round;
      vector-effect: non-scaling-stroke;
      filter: drop-shadow(0 0 12px color-mix(in srgb, var(--pc) 38%, transparent));
    }
    .glass-plate:first-child path {
      fill: var(--top-fill-1);
      filter: drop-shadow(0 0 20px color-mix(in srgb, var(--pc) 45%, transparent));
    }
    @keyframes plate-spread {
      0%, 100% { transform: translateZ(calc(var(--i) * -20px)); }
      50% { transform: translateZ(calc(var(--i) * -28px)); }
    }
    @keyframes stack-drift {
      0%, 100% { translate: 0 0; }
      50% { translate: 0 10px; }
    }
    @media (max-width: 767px) {
      .glass-stack--a { width: 420px; height: 420px; top: -170px; right: -190px; }
      .glass-stack--b { width: 340px; height: 340px; bottom: -230px; left: -200px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .glass-stack, .glass-plate { animation: none; }
    }

    /* En esta página el título de la sección va centrado: la pila se aleja más hacia la esquina */
    section[aria-labelledby="areas-title"] .glass-stack--a { top: -330px; right: -360px; }
    @media (max-width: 767px) {
      section[aria-labelledby="areas-title"] .glass-stack--a { top: -230px; right: -260px; }
    }

    /* Menú segmentado (Anatomía de un Smart Shipment) */
    .segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft-bg); }
    .segmented [role="tab"] {
      padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.35; white-space: nowrap;
      color: rgb(var(--c-muted)); background: transparent; border: 0; cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }
    .segmented [role="tab"]:hover { color: rgb(var(--c-ink)); }
    .segmented [role="tab"][aria-selected="true"] {
      color: rgb(var(--c-ink)); background: rgb(var(--c-surface));
      box-shadow: 0 1px 2px rgba(16,24,40,0.08), 0 1px 1px rgba(16,24,40,0.04);
    }
    @media (min-width: 640px) { .segmented [role="tab"] { padding: 8px 22px; font-size: 15px; } }
    .anat-panel:not([hidden]) { animation: panel-in 0.35s ease; }
    @keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) { .anat-panel:not([hidden]) { animation: none; } }

    /* Anatomía › Agentes IA: los nombres en una sola línea, separados por un punto */
    .ia-names { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 10px; }
    .ia-names li { font-size: 17px; font-weight: 400; line-height: 1.4; letter-spacing: -.01em; color: rgb(var(--c-ink)); white-space: nowrap; }
    .ia-names li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 18px; border-radius: 50%; background: rgb(var(--c-muted)); opacity: .6; vertical-align: middle; }
    @media (min-width: 768px) { .ia-names li { font-size: 19px; } .ia-names li + li::before { margin: 0 24px; } }
    /* Mapa isométrico de la operación (Anatomía › Operaciones) */
    .ops-map {
      --ease: cubic-bezier(.2,.8,.2,1); position: relative; margin-top: 32px;
      /* Vista general: el mapa completo cabe en pantalla (se limita también por la altura del viewport) */
      --stage-w: min(100%, 1040px, calc((100svh - 250px) * 1000 / 620));
    }
    .ops-map .stage { position: relative; margin: 0 auto; aspect-ratio: 1000 / 620; width: var(--stage-w); }
    .ops-map .stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

    .ops-map .road { stroke: var(--map-road); stroke-width: 7; stroke-linecap: round; }
    /* Al enfocar una capacidad, el resto del mapa cede protagonismo */
    .ops-map :is(.roads, .buildings) { transition: opacity .6s ease; }
    .ops-map .stage.has-active :is(.roads, .buildings) { opacity: .55; }
    .ops-map .bld-top { fill: var(--map-top); stroke: var(--map-edge); stroke-width: .7; stroke-linejoin: round; }
    .ops-map .bld-l { fill: var(--map-left); stroke: var(--map-edge); stroke-width: .7; stroke-linejoin: round; }
    .ops-map .bld-r { fill: var(--map-right); stroke: var(--map-edge); stroke-width: .7; stroke-linejoin: round; }
    .ops-map .bld-id { font-size: 7.5px; fill: var(--map-id); letter-spacing: .08em; font-family: inherit; }

    .ops-map .route-case { fill: none; stroke: var(--map-road); stroke-width: 7; stroke-linecap: round; opacity: 0; transition: opacity .6s; }
    .ops-map .route { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; opacity: .3; stroke-dasharray: var(--len) var(--len); transition: opacity .6s, stroke-width .6s; }
    .ops-map .flow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 14; opacity: .45; animation: map-flow 2.4s linear infinite; transition: opacity .6s; }
    @keyframes map-flow { to { stroke-dashoffset: -28; } }
    .ops-map .trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0; }
    .ops-map .turn { fill: var(--accent); opacity: .35; transition: opacity .6s; }

    .ops-map .node { fill: rgb(var(--c-surface)); stroke: var(--map-edge); stroke-width: 1; transition: r .6s var(--ease); }
    .ops-map .node-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .45; transition: opacity .6s; }
    .ops-map .node-core { fill: var(--accent); r: 3; transition: r .6s var(--ease); }
    .ops-map .node-shadow { fill: var(--map-shadow); filter: url(#map-soft); }

    .ops-map .r.active .route { opacity: 1; stroke-width: 2.6; }
    .ops-map .r.active .route-case { opacity: 1; }
    .ops-map .r.active .flow { opacity: 0; }
    .ops-map .r.active .turn { opacity: 1; }
    .ops-map .r.active .node { r: 14; }
    .ops-map .r.active .node-core { r: 6; }
    .ops-map .r.active .node-ring { opacity: 0; }
    .ops-map .stage.has-active .r:not(.active) :is(.route, .flow, .turn, .node-ring) { opacity: .1; }

    .ops-map .marker circle { fill: rgb(var(--c-surface)); stroke: var(--card-border); stroke-width: 1; filter: drop-shadow(0 3px 6px rgba(16,24,40,0.18)); }
    .ops-map .pulse { fill: none; stroke: var(--accent); stroke-width: 1.2; }

    .ops-map .core {
      position: absolute; transform: translate(-50%, calc(-100% - 16px));
      display: flex; align-items: center; gap: 10px; white-space: nowrap;
      background: rgb(var(--c-surface)); border: 1px solid var(--card-border); border-radius: 999px; padding: 10px 20px;
      font-size: clamp(13px, 1.5vw, 17px); font-weight: 400; letter-spacing: -.01em; color: rgb(var(--c-ink));
      box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -12px rgba(23,33,64,.18), 0 0 0 calc(var(--core, 0) * 10px) var(--accent-ring);
    }
    .ops-map .core::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 16px; background: linear-gradient(var(--accent), transparent); opacity: .45; }

    .ops-map .label {
      position: absolute; width: 180px; text-align: center; background: none; border: 0; cursor: pointer;
      font-family: inherit; color: rgb(var(--c-ink)); padding: 6px; display: flex; flex-direction: column; align-items: center;
      transition: color .5s, opacity .6s;
      text-shadow: 0 0 14px rgb(var(--c-bg)), 0 0 4px rgb(var(--c-bg));
    }
    .ops-map .label.up { transform: translate(-50%, calc(-100% - 14px)); }
    .ops-map .label.down { transform: translate(-50%, 14px); }
    .ops-map .label .icon { width: 19px; height: 19px; margin-bottom: 7px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
    .ops-map .label .ttl { font-size: clamp(13px, 1.45vw, 16px); font-weight: 500; letter-spacing: -.01em; }
    .ops-map .label .desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .4s; }
    .ops-map .label .desc span { overflow: hidden; font-size: 13px; line-height: 1.5; padding-top: 6px; color: rgb(var(--c-muted)); }
    .ops-map .label:hover, .ops-map .label.active, .ops-map .label:focus-visible { color: var(--accent); outline: none; }
    .ops-map .label.active .desc { grid-template-rows: 1fr; opacity: 1; transition-delay: .05s; }
    .ops-map .stage.has-active .label:not(.active) { opacity: .35; }
    .ops-map .hit { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); cursor: pointer; background: transparent; border: 0; }

    .ops-map .stage:not(.in) :is(.b, .roads, .route, .flow, .turn, .st, .label, .core) { opacity: 0; }
    /* Entrada rápida: la ciudad aparece casi de inmediato (escala los retrasos con --k) y las rutas/etiquetas
       la siguen enseguida. Todo el mapa queda visible en ~1.2s en lugar de ~2.5s. */
    .ops-map .stage { --k: .4; }
    .ops-map .stage.in .roads { animation: map-fade .5s ease backwards; }
    .ops-map .stage.in .b { animation: map-rise .6s var(--ease) backwards; animation-delay: calc(var(--d) * var(--k)); }
    .ops-map .stage.in .route { animation: map-draw .9s var(--ease) backwards; animation-delay: calc(var(--d) * var(--k)); }
    .ops-map .stage.in .flow { animation-name: map-fade, map-flow; animation-duration: .6s, 2.4s; animation-timing-function: ease, linear;
      animation-iteration-count: 1, infinite; animation-fill-mode: backwards, none; animation-delay: calc(var(--d) * var(--k) + .7s), 0s; }
    .ops-map .stage.in .turn { animation: map-fade .6s ease backwards; animation-delay: calc(var(--d) * var(--k) + .6s); }
    .ops-map .stage.in .st { animation: map-pop .5s var(--ease) backwards; animation-delay: calc(var(--d) * var(--k)); }
    .ops-map .stage.in .label { animation: map-fadeUp .6s var(--ease) backwards; animation-delay: calc(var(--d) * var(--k)); }
    .ops-map .stage.in .core { animation: map-fadeUpCore .6s var(--ease) backwards; animation-delay: .3s; }
    @keyframes map-fade { from { opacity: 0; } }
    @keyframes map-rise { from { opacity: 0; transform: translateY(18px); } }
    @keyframes map-draw { from { stroke-dashoffset: var(--len); } }
    @keyframes map-pop { from { opacity: 0; transform: translateY(6px); } }
    @keyframes map-fadeUp { from { opacity: 0; filter: blur(4px); translate: 0 8px; } }
    @keyframes map-fadeUpCore { from { opacity: 0; translate: 0 10px; } }

    /* Detalle de la capacidad activa: debajo del mapa, en un espacio fijo (sin saltos ni solapes) */
    .ops-map .map-detail {
      max-width: 560px; min-height: 4.6em; margin: 4px auto 0; text-align: center;
      font-size: 15px; line-height: 1.5; color: rgb(var(--c-muted));
    }
    .ops-map .map-detail .md-t { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 500; color: var(--accent); letter-spacing: -.01em; }

    .ops-map .map-chips { display: none; }
    @media (max-width: 640px) {
      .ops-map .map-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 4px; max-width: 420px; }
      .ops-map .map-chip {
        font: inherit; font-size: 13px; font-weight: 500; line-height: 1; padding: 10px 14px; border-radius: 999px; border: 0; cursor: pointer;
        background: var(--soft-bg); color: var(--soft-fg); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .ops-map .map-chip[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: transparent; }
    }
    .ops-map .map-detail > * { animation: map-detail-in .45s var(--ease); }
    /* Desktop: el detalle es una capa dentro del mapa (absoluta: el mapa conserva su centro exacto).
       Siempre en el mismo lugar: a la altura del Smart Shipment Hub, justo después del nodo más a la derecha,
       para que la mirada pase del nodo a su explicación con un movimiento corto y horizontal. */
    @media (min-width: 1100px) {
      /* En laptops angostas el mapa cede lo justo para que el detalle (≥180px) siempre quepa a la derecha */
      .ops-map { --stage-w: min(100%, 1040px, calc((100svh - 250px) * 1000 / 620), calc((50vw - 310px - var(--gutter) / 2) / .277)); }
      .ops-map .stage > .map-detail {
        /* Después de la etiqueta más externa (las etiquetas no se encogen con el mapa) */
        position: absolute; left: max(87%, calc(77.7% + 106px)); top: 53.2%; transform: translateY(-50%); z-index: 2;
        width: min(260px, calc(13% + (100vw - 100%) / 2 - var(--gutter) / 2 - 24px), calc(22.3% - 106px + (100vw - 100%) / 2 - var(--gutter) / 2 - 24px));
        max-width: none; min-height: 0; margin: 0; text-align: left;
        font-size: 15px; line-height: 1.55;
        text-shadow: 0 0 14px rgb(var(--c-bg)), 0 0 4px rgb(var(--c-bg));
      }
      .ops-map .stage > .map-detail .md-t { font-size: 17px; margin-bottom: 6px; }
      .ops-map .stage > .map-detail > * { animation-duration: .35s; }
    }
    @keyframes map-detail-in { from { opacity: 0; transform: translateY(4px); } }
    @media (max-width: 640px) {
      .ops-map .label { width: 110px; }
      .ops-map .label .icon, .ops-map .label .desc { display: none; }
      .ops-map .label .ttl { font-size: 11px; }
      .ops-map .map-detail { font-size: 15px; line-height: 1.55; min-height: 4.8em; margin-top: 20px; }
      /* El chip activo ya nombra la capacidad: aquí solo va su descripción */
      .ops-map .map-detail .md-t { display: none; }
      .ops-map .labels .label, .ops-map .labels .hit { display: none; }
      .ops-map .core { font-size: 12px; padding: 7px 14px; }

    }
    @media (prefers-reduced-motion: reduce) {
      .ops-map .stage * { animation: none !important; }
      .ops-map .stage:not(.in) * { opacity: 1; }
    }

    /* Editorial divider layout (TrustLink): contenido flotando sobre el fondo.
       Solo divisores verticales parciales que se desvanecen; sin bordes, cajas ni cuadrícula.
       Móvil: 1 columna (solo aire) · Tablet: 3 + 2 · Desktop: 5 columnas */
    /* TrustLink: texto a la izquierda y fotografía a la derecha, alineados a los bordes de la retícula */
    .trust-intro { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
    .trust-copy { max-width: 42rem; }
    .trust-photo { margin: 0; }
    .trust-photo img { display: block; width: 100%; height: auto; }
    @media (min-width: 1024px) {
      .trust-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
    }
    .divider-grid { display: grid; grid-template-columns: 1fr; row-gap: 44px; padding-top: 8px; }
    .divider-item { position: relative; display: flex; flex-direction: column; gap: 12px; }
    .divider-item::before {
      content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; display: none;
      background: linear-gradient(to bottom, transparent, var(--line) 25%, var(--line) 75%, transparent);
    }
    @media (min-width: 768px) and (max-width: 1023px) {
      .divider-grid { grid-template-columns: repeat(6, 1fr); row-gap: 56px; }
      .divider-item { grid-column: span 2; padding: 0 32px; }
      .divider-item:nth-child(n+4) { grid-column: span 3; }
      .divider-item:nth-child(1), .divider-item:nth-child(4) { padding-left: 0; }
      .divider-item:nth-child(3), .divider-item:nth-child(5) { padding-right: 0; }
      .divider-item:nth-child(2)::before, .divider-item:nth-child(3)::before, .divider-item:nth-child(5)::before { display: block; }
    }
    @media (min-width: 1024px) {
      .divider-grid { grid-template-columns: repeat(5, 1fr); }
      .divider-item { padding: 8px 28px; }
      .divider-item:first-child { padding-left: 0; }
      .divider-item:last-child { padding-right: 0; }
      .divider-item + .divider-item::before { display: block; }
    }

    /* Rutas en segundo plano (p. ej. las de la plataforma vistas desde Finanzas): presentes pero sin abrirse */
    .ops-map .r.ghost .route { opacity: .2; }
    .ops-map .r.ghost .flow { opacity: .28; }
    .ops-map .r.ghost .turn { opacity: .15; }
    .ops-map .r.ghost .node-ring { opacity: .2; }
    .ops-map .r.ghost .node-core { opacity: .5; }
    .ops-map .label.ghost { cursor: default; pointer-events: none; opacity: .5; }
    .ops-map .label.ghost .ttl { font-size: clamp(11px, 1.15vw, 13px); font-weight: 400; color: rgb(var(--c-muted)); }
    .ops-map .label.ghost .icon { width: 15px; height: 15px; margin-bottom: 5px; opacity: .6; }
    .ops-map .stage.has-active .label.ghost { opacity: .25; }
    /* Pantallas medianas: las rutas de fondo se quedan, pero sin etiqueta; y las etiquetas activas se compactan */
    @media (max-width: 1199px) { .ops-map .label.ghost { display: none; } }
    @media (min-width: 641px) and (max-width: 1023px) {
      .ops-map .label { width: 130px; }
      .ops-map .label .icon { display: none; }
    }

    /* Componentes conectados a los tokens de tema */
    body { background-image: var(--page-glow); background-repeat: no-repeat; }
    body :is(h1, h2, h3), :is(h1, h2, h3).lp-font-semibold, body .title-light { font-weight: var(--display-w); }
    body h1.title-regular { font-weight: 400; } /* Título del hero: peso normal */
    .card { background: var(--card-bg); border-color: var(--card-border); box-shadow: var(--card-shadow); }
    .card:hover { border-color: var(--card-border-hover); box-shadow: var(--card-shadow-hover); }
    .card::before { background: linear-gradient(120deg, transparent, var(--shine), transparent); }
    .glass { background: var(--glass-bg); border-color: var(--card-border); box-shadow: var(--glass-shadow); }
    .glass:hover { background: var(--glass-bg-hover); border-color: var(--card-border-hover); }
    .glow-section::before { background: radial-gradient(closest-side, var(--glow) 0%, var(--glow-2) 40%, var(--glow-3) 70%, transparent 100%); }
    .card-accent, .card-accent:hover { background: var(--accent-card-bg); border-color: var(--accent-card-border); box-shadow: var(--accent-card-shadow); color: #ffffff; }
    .text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.35; white-space: nowrap; background: var(--soft-bg); color: var(--soft-fg); border: 0; transition: background-color 0.15s ease; }
    .btn-soft:hover { background: var(--soft-bg-hover); }
    .btn-soft-icon { background: var(--soft-bg); color: var(--soft-fg); border: 0; transition: background-color 0.15s ease; }
    .btn-soft-icon:hover { background: var(--soft-bg-hover); }
    .btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-shadow); }
    /* Botón principal "Agendar Demo": azul de marca en claro y oscuro; hover un tono más profundo */
    body .btn-primary { background: #0C34FA; color: #ffffff; box-shadow: none; transition: background-color .2s ease; }
    body .btn-primary:hover, body .btn-primary:focus-visible { background: #0A2BD0; opacity: 1; }
    .logo-mark { background: var(--logo); }
    .site-footer { color: #ffffff; background: radial-gradient(ellipse 80% 145% at 50% 100%, #0050FF 0%, #0A64FF 24%, #168CFF 48%, #6CC6FF 74%, var(--footer-edge) 100%); }
    .site-footer .logo-wordmark { background-color: #ffffff; height: 30px; }
    .site-footer p { color: rgba(255,255,255,0.85); }
    .logo-wordmark { display: block; height: 26px; aspect-ratio: 348 / 96; background-color: var(--wordmark); -webkit-mask: url("/taskility-landing/img/3a1128fd5d672001.png") center / contain no-repeat; mask: url("/taskility-landing/img/3a1128fd5d672001.png") center / contain no-repeat; }
    .theme-toggle .icon-moon { display: var(--moon-d); }
    .theme-toggle .icon-sun { display: var(--sun-d); }
    .tab-btn { color: rgb(var(--c-muted)); }
    .tab-btn:hover { color: rgb(var(--c-ink)); background: var(--hover-bg); }
    .tab-btn.active { color: rgb(var(--c-ink)); background: var(--active-bg); border-left-color: var(--active-line); }
    .tab-btn.active i, .tab-btn.active svg { color: var(--active-line); }
    .dept-pill { color: rgb(var(--c-muted)); background: rgb(var(--c-surface)); border-color: var(--line); }
    .dept-pill:hover { color: rgb(var(--c-ink)); border-color: var(--card-border-hover); }
    .dept-pill.active { color: var(--btn-fg); background: var(--btn-bg); }
    .glow-section .dept-pill { color: rgb(var(--c-muted)); background: var(--pill-bg); border-color: var(--card-border); }
    .glow-section .dept-pill:hover { color: rgb(var(--c-ink)); background: var(--glass-bg-hover); border-color: var(--card-border-hover); }
    .glow-section .dept-pill.active { color: rgb(var(--c-ink)); background: var(--pill-active-bg); border-color: var(--card-border-hover); }
    html .bg-emerald-50 { background-color: var(--ok-bg); }
    html .border-emerald-100 { border-color: var(--ok-border); }
    html .text-emerald-700 { color: var(--ok-fg); }
    html .text-emerald-600 { color: var(--ok-icon); }
    /* "Todo lo que tu equipo necesita…": composición centrada.
       Texto centrado con ancho de lectura controlado; debajo, tres interfaces flotando: pequeño — GRANDE — pequeño. */
    .gestion-copy { max-width: 760px; margin-inline: auto; text-align: center; }
    .gestion-copy .t-sub { max-width: 680px; margin-inline: auto; }

    .gx {
      --gx-gap: clamp(10px, 2vw, 20px);
      display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: var(--gx-gap);
      width: 100%; max-width: 860px; margin: clamp(48px, 7vw, 80px) auto 0;
    }
    .gx-card {
      position: relative; overflow: hidden; display: flex; flex-direction: column;
      background: rgb(var(--c-surface)); border: 1px solid var(--card-border); border-radius: 14px;
      box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 24px 48px -28px rgb(16 40 90 / .28);
      padding: clamp(10px, 1.6vw, 18px); gap: clamp(8px, 1.2vw, 14px);
      animation: gx-float 7s ease-in-out infinite;
    }
    .gx-main { aspect-ratio: 400 / 290; }
    /* Laterales: mismo tamaño entre sí, más bajos que el central y unos píxeles por encima de su borde inferior */
    .gx-side { aspect-ratio: 200 / 222; transform: translateY(-6px); }
    .gx-left { animation-delay: -2.3s; }
    .gx-right { animation-delay: -4.6s; }
    @keyframes gx-float { 50% { translate: 0 -4px; } }

    /* Piezas de interfaz (sin texto: solo ritmo visual) */
    .gx-bar { display: block; height: clamp(4px, .55vw, 6px); border-radius: 99px; background: rgb(var(--c-ink) / .08); }
    .gx-bar--ink { background: rgb(var(--c-ink) / .18); }
    .gx .w-35 { width: 35%; } .gx .w-40 { width: 40%; } .gx .w-45 { width: 45%; } .gx .w-50 { width: 50%; }
    .gx .w-55 { width: 55%; } .gx .w-60 { width: 60%; } .gx .w-70 { width: 70%; } .gx .w-80 { width: 80%; }
    .gx-head { display: flex; align-items: center; justify-content: space-between; min-height: 14px; }
    .gx-pills { display: flex; gap: 6px; }
    .gx-pills i { width: clamp(16px, 2.4vw, 28px); height: clamp(8px, 1vw, 12px); border-radius: 99px; background: rgb(var(--c-ink) / .06); }
    .gx-pills i:last-child { background: rgb(0 146 255 / .16); }

    .gx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 1vw, 10px); }
    .gx-stats > span { display: flex; flex-direction: column; gap: 6px; padding: clamp(6px, 1vw, 10px); border-radius: 8px; background: rgb(var(--c-ink) / .03); }
    .gx-stats b { height: clamp(6px, .8vw, 9px); }

    .gx-rows { display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
    .gx-row { display: grid; grid-template-columns: auto 1.4fr 1fr auto; align-items: center; gap: clamp(6px, 1vw, 12px);
      padding-block: clamp(4px, .7vw, 8px); border-top: 1px solid rgb(var(--c-ink) / .06); }
    .gx-dot { width: clamp(5px, .7vw, 8px); aspect-ratio: 1; border-radius: 50%; background: var(--c); }
    .gx-row em { width: clamp(18px, 2.8vw, 34px); height: clamp(8px, 1vw, 12px); border-radius: 99px; background: color-mix(in srgb, var(--c) 22%, transparent); }

    .gx-ring { flex: 1; display: grid; place-items: center; }
    .gx-ring svg { width: 58%; max-width: 92px; transform: rotate(-90deg); }
    .gx-ring circle { fill: none; stroke-width: 3.2; }
    .gx-ring-bg { stroke: rgb(var(--c-ink) / .07); }
    .gx-ring-fg { stroke: #0092FF; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 28; }
    .gx-lines { display: flex; flex-direction: column; gap: 6px; }

    .gx-msgs { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
    .gx-msg { display: flex; align-items: center; gap: clamp(6px, .9vw, 10px); }
    .gx-msg > span { flex: 1; display: flex; flex-direction: column; gap: 5px; }
    .gx-av { flex: 0 0 auto; width: clamp(12px, 1.8vw, 22px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--c) 35%, transparent); }

    /* Móvil: misma composición a menor escala; cada interfaz se simplifica para no saturarse */
    @media (max-width: 639px) {
      .gx-card { padding: 8px; gap: 6px; border-radius: 10px; }
      .gx-stats, .gx-row:nth-child(4), .gx-msg:nth-child(3), .gx-lines .gx-bar:last-child { display: none; }
      .gx-head { min-height: 8px; }
      .gx-row { gap: 5px; padding-block: 5px; }
    }
    @media (prefers-reduced-motion: reduce) { .gx-card { animation: none; } }

    /* Tarjeta central: ventana del panel de embarques real. El panel se escala a la altura de la tarjeta
       y su ancho interno se ajusta para llenarla de borde a borde (sin deformar). */
    .gx-main { padding: 0; gap: 0; background: #f4f4f4; }
    .gx-main .gx-stage { position: absolute; top: 0; left: 0; width: var(--gx-w, 740px); transform: scale(var(--gx-s, .55)); transform-origin: top left; }
    .gx-main .shp { border-radius: 0; box-shadow: none; }
    /* ---- Código del panel (sin cambios) ---- */
  .shp{
    /* Cambia aquí la tipografía si tu sitio usa otra */
    --shp-font:"Segoe UI","Segoe UI Web (West European)",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif;
    --ink:#252525; --sub:#3b3b3b; --muted:#9a9a9a; --line:#ededed; --th:#fafafa; --page:#f4f4f4;
    --link:#2f80ed; --blue:#1a73e8; --pill:#bdbdbd;
    container-type:inline-size;
    font-family:var(--shp-font); font-size:10.5px; color:var(--ink);
    background:var(--page); border-radius:12px; overflow:hidden; max-width:100%;
    box-shadow:0 30px 70px -30px rgba(10,40,100,.45);
  }
  .shp *{box-sizing:border-box}

  /* Barra azul superior */
  .shp-top{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 14px;
    background:linear-gradient(90deg,#0a3fb8 0%,#0b55d6 45%,#0f7bf2 100%)}
  .shp-top-r{display:flex;align-items:center;gap:18px}
  .shp-bell{position:relative;width:18px;height:18px}
  .shp-bell svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linejoin:round}
  .shp-badge{position:absolute;top:-9px;right:-12px;height:16px;padding:0 5px;border-radius:8px;background:#f0443f;
    color:#fff;font:600 9px/16px var(--shp-font);transition:transform .25s}
  .shp-badge.ping{animation:shp-ping .6s ease}
  .shp-me{width:30px;height:30px;border-radius:50%;background:#e9eef7;border:2px solid #fff;color:#0b55d6;
    font:700 10px/26px var(--shp-font);text-align:center;margin-left:-8px}
  .shp-menu{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.6}

  .shp-page{padding:12px 12px 0}
  .shp-card{background:#fff;border-radius:4px}
  .shp-head{display:flex;justify-content:space-between;align-items:center;height:48px;padding:0 12px 0 14px;margin-bottom:12px}
  .shp-head h3{margin:0;font:400 17px/1 var(--shp-font);color:#1f1f1f}
  .shp-tools{display:flex;align-items:center;gap:8px}
  .shp-tb{width:33px;height:24px;display:grid;place-items:center;background:#fff;border-left:1px solid #dcdcdc}
  .shp-tb.solo{width:33px;border:1px solid #dcdcdc;border-radius:3px}
  .shp-group{display:flex;border:1px solid #dcdcdc;border-radius:3px}
  .shp-group .shp-tb:first-child{border-left:0}
  .shp-tb.on{outline:1px solid var(--blue);outline-offset:-1px;border-radius:3px 0 0 3px}
  .shp-tb svg{width:12px;height:12px;fill:none;stroke:#2b2b2b;stroke-width:1.1}
  .shp-tb.on svg{stroke:var(--blue)}
  .shp-tb svg .fill{fill:#2b2b2b}
  .shp-plus{color:var(--blue);font-size:20px;font-weight:300;width:24px;text-align:center}
  .shp-main{padding:16px 0 0;border-radius:4px 4px 0 0}
  .shp-tabs{display:flex;gap:26px;padding:0 16px;margin-bottom:10px}
  .shp-tabs span{padding:6px 0;font-size:10px;color:var(--ink)}
  .shp-tabs .on{color:var(--link)}

  /* Tabla */
  .shp-row{display:grid;align-items:center;padding:0 4px;
    grid-template-columns:30px 30px 1fr .9fr .9fr 1fr 1fr .95fr .95fr .85fr 2.5fr 1.35fr 1.35fr 1.35fr}
  .shp-row > span{padding:0 7px;min-width:0}
  .shp-th{background:var(--th);height:42px;font-size:10px;font-weight:500;color:#2b2b2b;border-bottom:1px solid var(--line)}
  .shp-th > span{border-left:1px solid #e6e6e6;height:18px;display:flex;align-items:center;gap:4px}
  .shp-th > span:nth-child(-n+2){border-left:0}
  .shp-flag{width:11px;height:11px;fill:none;stroke:#2b2b2b;stroke-width:1.2;stroke-linejoin:round}
  .shp-sort{display:inline-block;width:6px;height:9px;margin-left:auto;margin-right:4px;
    background:linear-gradient(135deg,transparent 50%,#b3b3b3 50%) 0 0/6px 3px no-repeat,linear-gradient(45deg,transparent 50%,#b3b3b3 50%) 0 6px/6px 3px no-repeat}

  .shp-body{position:relative;height:var(--shp-h,312px);overflow:hidden;transition:opacity .3s}
  .shp-body .shp-row{height:104px;border-bottom:1px solid var(--line);font-size:10px;line-height:1.5;color:var(--sub);
    transition:transform .4s cubic-bezier(.2,.8,.2,1),opacity .3s,background-color .9s}
  .shp-row.new{background:#f2f7ff}
  .shp-row.enter{opacity:0;transform:translateY(-22px)}
  .shp-exp{width:9px;height:9px;stroke:#2b2b2b;stroke-width:1.3;display:block}
  .shp-id{display:block;color:var(--link);font-size:11px;font-weight:600;line-height:1.4;margin-bottom:2px}
  .shp-nm{display:block;color:var(--ink);line-height:1.45}
  .shp-trunc{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shp-l{display:block}
  .shp-cmt{display:flex;gap:12px;align-items:center}
  .shp-av{flex:0 0 30px;height:30px;border-radius:50%;background:#c4c4c4;display:grid;place-items:center;
    color:#fff;font:600 9.5px/1 var(--shp-font);align-self:center}
  .shp-av svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:1.4}
  .shp-cmt-tx{min-width:0;color:var(--ink)}
  .shp-cmt-tx span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shp-cmt-tx p{margin:0}
  .shp-cmt-tx p.typing::after{content:"";display:inline-block;width:1px;height:1em;background:var(--ink);margin-left:1px;vertical-align:-2px;animation:shp-blink .8s steps(1) infinite}
  .shp-dots{display:inline-flex;gap:3px}
  .shp-dots i{width:4px;height:4px;border-radius:50%;background:var(--muted);animation:shp-dot 1s infinite}
  .shp-dots i:nth-child(2){animation-delay:.15s}.shp-dots i:nth-child(3){animation-delay:.3s}
  .shp-st{display:block;font-size:10px;color:var(--ink);margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shp-pill{display:block;text-align:center;color:#fff;background:var(--pill);border-radius:3px;height:23px;line-height:23px;
    font-size:9px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background-color .2s}
  .shp-pill.flash{animation:shp-pop .45s ease}
  @keyframes shp-blink{50%{opacity:0}}
  @keyframes shp-dot{0%,60%,100%{opacity:.3}30%{opacity:1}}
  @keyframes shp-pop{40%{transform:scale(1.08);box-shadow:0 0 0 5px rgba(0,0,0,.06)}}
  @keyframes shp-ping{40%{transform:scale(1.25)}}

  /* Se adapta al ancho del contenedor */
  @container (max-width: 1150px){
    .shp-row{grid-template-columns:28px 1fr .9fr 1fr 1fr 2.4fr 1.35fr 1.35fr 1.35fr}
    .shp .c-cre,.shp .c-cost,.shp .c-veh,.shp .c-pre,.shp .shp-row > span:nth-child(2){display:none}
  }
  @container (max-width: 820px){
    .shp-row{grid-template-columns:24px 1fr 2.3fr 1.3fr 1.3fr}
    .shp .c-cli,.shp .c-ori,.shp .c-des,.shp .c-pro{display:none}
    .shp-tools .shp-group,.shp-tools .solo{display:none}
  }
  @container (max-width: 520px){
    .shp-row{grid-template-columns:1fr 1.8fr 1.2fr}
    .shp .shp-row > span:first-child,.shp .c-cob{display:none}
    .shp .shp-cmt .shp-av{display:none}
  }
  @media (prefers-reduced-motion: reduce){
    .shp *, .shp *::after{animation:none!important;transition:none!important}
  }


    /* Tarjeta lateral izquierda: estados y comentarios (componente real) a una columna, encuadrado desde arriba */
    .gx-left { padding: 0; gap: 0; background: #f4f4f4; }
    /* --gx-y: la "cámara" sigue al área que está comentando (Operativo → Cobranza → Proveedores) */
    .gx-left .gx-stage { position: absolute; top: 0; left: 0; width: var(--gx-w, 340px); transform: translateY(var(--gx-y, 0px)) scale(var(--gx-s, .6)); transform-origin: top left;
      transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
    @media (prefers-reduced-motion: reduce) { .gx-left .gx-stage { transition: none; } }
    .gx-left .shc { border-radius: 0; box-shadow: none; }

    /* ---- Código de estados y comentarios (sin cambios) ---- */
  .shc{
    /* Cambia aquí la tipografía si tu sitio usa otra */
    --shc-font:"Segoe UI","Segoe UI Web (West European)",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif;
    --ink:#1f1f1f; --sub:#3b3b3b; --muted:#8a8a8a; --line:#ededed; --page:#f4f4f4;
    --link:#2f80ed; --blue:#1a73e8; --bubble:#eef5ff; --bubble-live:#e2edff;
    --msg-fs:15.5px;
    container-type:inline-size; position:relative;
    font-family:var(--shc-font); font-size:10.5px; color:var(--ink);
    background:var(--page); border-radius:12px; padding:18px 16px; max-width:100%;
    box-shadow:0 30px 70px -30px rgba(10,40,100,.45);
  }
  .shc *{box-sizing:border-box}

  /* Tarjetas */
  .shc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;transition:opacity .3s}
  .shc-card{position:relative;background:#fff;border-radius:14px;padding:16px 14px 14px;
    box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 14px rgba(0,0,0,.05)}
  .shc-card.ping{animation:shc-ring 1s ease}
  .shc-tt{margin:0;font:400 13.5px/1.3 var(--shc-font);color:var(--ink)}
  .shc-chip{position:absolute;top:14px;right:12px;max-width:58%;height:18px;padding:0 8px;border-radius:9px;
    background:var(--blue);color:#fff;font:600 8.5px/18px var(--shc-font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    opacity:0;transform:translateY(-4px);transition:opacity .25s,transform .25s;pointer-events:none}
  .shc-chip.on{opacity:1;transform:none}

  .shc-pill{display:block;margin:14px 0 18px;height:28px;line-height:28px;border-radius:4px;text-align:center;
    color:#fff;font-size:10.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px;
    transition:background-color .25s}
  .shc-pill.flash{animation:shc-pop .45s ease}

  /* Burbuja del último comentario */
  .shc-box{background:var(--bubble);border-radius:4px;padding:8px 10px 6px;transition:background-color .4s}
  .shc-box.live{background:var(--bubble-live)}
  .shc-who{display:flex;align-items:center;gap:7px;height:26px;min-width:0}
  .shc-av{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#fff;
    font:600 9px/1 var(--shc-font);background:#8a8886 center/cover no-repeat}
  .shc-nm{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .shc-nm em{font-style:normal;color:#b2b2b2}
  .shc-msg{margin:8px 0 4px;height:calc(var(--msg-fs) * 1.3 * 3);overflow:hidden}
  .shc-msg p{margin:0;font-size:var(--msg-fs);line-height:1.3;color:var(--ink);animation:shc-in .35s ease}
  .shc-msg p.typing::after{content:"";display:inline-block;width:1px;height:1em;background:var(--ink);margin-left:1px;vertical-align:-2px;animation:shc-blink .8s steps(1) infinite}
  .shc mark{background:none;color:var(--link);font-weight:500}
  .shc-dots{display:inline-flex;gap:4px;padding-top:6px}
  .shc-dots i{width:5px;height:5px;border-radius:50%;background:var(--muted);animation:shc-dot 1s infinite}
  .shc-dots i:nth-child(2){animation-delay:.15s}.shc-dots i:nth-child(3){animation-delay:.3s}

  .shc-more{display:flex;align-items:center;gap:3px;margin-left:auto;border:0;background:none;padding:2px 0;
    font:500 8.5px/1 var(--shc-font);color:var(--blue);cursor:pointer;border-radius:2px}
  .shc-more:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
  .shc-more svg{width:8px;height:8px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .2s}
  .shc-more[aria-expanded="true"] svg{transform:rotate(180deg)}

  /* Historial desplegable (se abre dentro de la tarjeta) */
  .shc-hist{position:absolute;left:10px;right:10px;top:44px;bottom:34px;z-index:3;overflow:auto;padding:4px 0;
    background:#fff;border-radius:8px;box-shadow:0 12px 30px -10px rgba(10,40,100,.35),0 0 0 1px var(--line)}
  .shc-hist[hidden]{display:none}
  .shc-h{display:flex;gap:8px;padding:7px 10px}
  .shc-h + .shc-h{border-top:1px solid #f2f2f2}
  .shc-h .shc-av{flex-basis:20px;width:20px;height:20px;font-size:7.5px}
  .shc-h-tx{min-width:0;font-size:10px;line-height:1.4;color:var(--sub)}
  .shc-h-tx span{display:block;font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shc-h.new{animation:shc-in .35s ease;background:#f7faff}
  .shc-vacio{padding:10px;color:var(--muted);font-size:10px}

  /* Punto que "viaja" de un área a otra */
  .shc-fly{position:absolute;left:0;top:0;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;
    background:var(--blue);box-shadow:0 0 0 4px rgba(26,115,232,.18);opacity:0;pointer-events:none;z-index:4}

  @keyframes shc-ring{0%{box-shadow:0 0 0 0 rgba(26,115,232,.45),0 4px 14px rgba(0,0,0,.05)}100%{box-shadow:0 0 0 10px rgba(26,115,232,0),0 4px 14px rgba(0,0,0,.05)}}
  @keyframes shc-pop{40%{transform:scale(1.05);box-shadow:0 0 0 5px rgba(0,0,0,.06)}}
  @keyframes shc-in{from{opacity:0;transform:translateY(6px)}}
  @keyframes shc-blink{50%{opacity:0}}
  @keyframes shc-dot{0%,60%,100%{opacity:.3}30%{opacity:1}}

  /* Se adapta al ancho del contenedor */
  @container (max-width: 760px){
    .shc{--msg-fs:14px}
    .shc-grid{gap:12px}
    .shc-card{padding:14px 12px 12px}
  }
  @container (max-width: 560px){
    .shc-grid{grid-template-columns:1fr}
    .shc-pill{margin:12px 0 14px}
    .shc{--msg-fs:15px}
  }
  @media (prefers-reduced-motion: reduce){
    .shc *, .shc *::after{animation:none!important;transition:none!important}
  }

    /* Tarjeta lateral derecha: documentos del embarque (componente real), la tabla completa cabe a lo alto */
    .gx-right { padding: 0; gap: 0; background: #f4f4f4; }
    /* Cámara: sigue al documento que cambia y hace zoom en los momentos importantes (subida, revisión, rechazo, aprobación) */
    .gx-right .gx-stage { position: absolute; top: 0; left: 0; width: 280px; transform: translate(var(--gx-x, 0px), var(--gx-y, 0px)) scale(var(--gx-s, .73)); transform-origin: top left;
      transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
    @media (prefers-reduced-motion: reduce) { .gx-right .gx-stage { transition: none; } }
    .gx-right .shd { border-radius: 0; box-shadow: none; }

    /* ---- Código de documentos (sin cambios) ---- */
  .shd{
    /* Cambia aquí la tipografía si tu sitio usa otra */
    --shd-font:"Segoe UI","Segoe UI Web (West European)",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif;
    --ink:#1f1f1f; --sub:#3b3b3b; --muted:#9a9a9a; --line:#ececec; --th:#fafafa; --page:#f4f4f4; --blue:#1a73e8;
    container-type:inline-size;
    font-family:var(--shd-font); font-size:10.5px; color:var(--ink);
    background:var(--page); border-radius:12px; padding:16px; max-width:100%;
    box-shadow:0 30px 70px -30px rgba(10,40,100,.45);
  }
  .shd *{box-sizing:border-box}
  .shd-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 14px rgba(0,0,0,.05)}

  .shd-row{display:grid;grid-template-columns:minmax(0,55%) minmax(0,1fr);align-items:center;padding:0 14px;gap:12px}
  .shd-th{height:50px;background:var(--th);font-size:12px;font-weight:500;color:var(--ink);border-bottom:1px solid var(--line)}

  .shd-body{position:relative;height:var(--shd-h,408px);overflow:hidden;transition:opacity .3s}
  .shd-body .shd-row{height:68px;border-bottom:2px solid var(--line);
    transition:transform .4s cubic-bezier(.2,.8,.2,1),opacity .3s,background-color .9s}
  .shd-row.enter{opacity:0;transform:translateY(-14px)}
  .shd-row.new{background:#f2f7ff}

  /* Estado vacío */
  .shd-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    text-align:center;padding:0 20px;transition:opacity .35s,transform .35s}
  .shd-empty.off{opacity:0;transform:scale(.97);pointer-events:none}
  .shd-empty svg{width:30px;height:30px;fill:none;stroke:#c4c4c4;stroke-width:1.3;stroke-linejoin:round;margin-bottom:6px}
  .shd-empty b{font-weight:500;font-size:11.5px;color:var(--sub)}
  .shd-empty span{font-size:9.5px;color:var(--muted)}

  /* Celda de archivo */
  .shd-file{display:flex;align-items:flex-start;gap:8px;min-width:0}
  .shd-ico{flex:0 0 12px;width:12px;height:15px;margin-top:1px}
  .shd-meta{min-width:0}
  .shd-nm{display:block;font-size:10.5px;font-weight:500;color:var(--ink);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shd-sub{display:block;height:14px;font-size:9.5px;line-height:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shd-sub.err{color:#e25553}
  .shd-sub.in{animation:shd-in .3s ease}
  .shd-bar{display:inline-block;width:64px;height:3px;border-radius:2px;background:#e7eefb;vertical-align:middle;margin-right:6px;overflow:hidden}
  .shd-bar i{display:block;height:100%;width:0;background:var(--blue);border-radius:2px;transition:width .12s linear}

  /* Celda de estado */
  .shd-box{display:flex;align-items:center;width:min(100%,130px);height:28px;padding:0 5px;border:1px solid #d9d9d9;border-radius:4px;background:#fff}
  .shd-chip{display:inline-block;min-width:72px;height:18px;padding:0 10px;border-radius:3px;border:1px solid transparent;
    font-size:9px;line-height:16px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    transition:background-color .25s,color .25s,border-color .25s}
  .shd-chip.flash{animation:shd-pop .45s ease}

  @keyframes shd-pop{40%{transform:scale(1.08);box-shadow:0 0 0 4px rgba(0,0,0,.05)}}
  @keyframes shd-in{from{opacity:0;transform:translateY(3px)}}

  /* Se adapta al ancho del contenedor */
  @container (max-width: 360px){
    .shd{padding:10px}
    .shd-row{grid-template-columns:minmax(0,1fr) auto;padding:0 10px}
    .shd-box{width:auto}
  }
  @media (prefers-reduced-motion: reduce){
    .shd *{animation:none!important;transition:none!important}
  }

    /* Hero: cada idea en su propio renglón (el problema / la solución), sin cortar listas ni dejar palabras sueltas */
    .hero-lead { max-width: 54rem; text-wrap: pretty; }
    @media (min-width: 640px) { .hero-lead > span { display: block; text-wrap: balance; } }
    /* Con espacio suficiente: exactamente dos líneas, una por idea */
    @media (min-width: 1120px) { .hero-lead { max-width: none; } .hero-lead > span { white-space: nowrap; } }

    /* ================= Duo: sin un solo flujo / con un solo flujo (hero) ================= */

  .duo {
    --duo-max: 720px;     /* ancho total del conjunto */
    --duo-gap: 14px;      /* separación entre cards */
    --card-radius: 22px;  /* redondeo de esquinas */
    --card-ratio: 3 / 4;  /* proporción ancho / alto */

    --card-pad: 28px;
    --title-size: 1.6rem;
    --text-size: 0.98rem;
  }

  .duo { box-sizing: border-box; }
  .duo * { box-sizing: border-box; margin: 0; }

  /* Contenedor: dos columnas idénticas, siempre lado a lado */
  .duo {
    width: 100%;
    max-width: var(--duo-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: var(--duo-gap);
  }

  /* Card: misma proporción y radio en ambas */
  .duo .duo-card {
    aspect-ratio: var(--card-ratio);
    border-radius: var(--card-radius);
    padding: var(--card-pad);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-width: 0;
  }

  .duo .duo-card h2 {
    font-size: var(--title-size);
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .duo .duo-card p {
    font-size: var(--text-size);
    line-height: 1.5;
    opacity: 0.85;
  }

  .duo .duo-card--a { --card-bg: #2C2C2E; background: var(--card-bg); color: #F2F2F7; }

  /* Grises del sistema de Apple (iOS / macOS, modo claro) */
  .duo .duo-card--a {
    --g-paper: #FFFFFF;    /* systemBackground */
    --g-surface: #F2F2F7;  /* systemGray6 */
    --g-line: #E5E5EA;     /* systemGray5 */
    --g-line-2: #D1D1D6;   /* systemGray4 */
    --g-mid: #8E8E93;      /* systemGray */
    --g-ink-2: #636366;    /* systemGray (oscuro) */
    --g-ink: #1C1C1E;      /* label */
    --g-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .5);
  }

  /* El único color en línea que queda (emoji de reacción) va en gris */
  .duo .duo-card--a .wa .react { filter: grayscale(1); }

  .duo .duo-card--a .mail, .duo .duo-card--a .wa, .duo .duo-card--a .xl {
    --surface: var(--g-paper);
    --border: var(--g-line-2);
    --text: var(--g-ink);
    --text-2: var(--g-ink-2);
    --text-3: var(--g-mid);
    --shadow: var(--g-shadow);
    --red: var(--g-mid);
    --green: var(--g-mid);
    --blue: var(--g-mid);
    --orange: var(--g-mid);
    --slate: var(--g-mid);
  }

  .duo .duo-card--a .mail {
    --chip: var(--g-surface);
    --chip-border: var(--g-line);
  }

  .duo .duo-card--a .wa {
    --bar: var(--g-surface);
    --bar-line: var(--g-line);
    --ios-blue: var(--g-mid);
    --wallpaper: var(--g-surface);
    --doodle: none;
    --bubble-in: var(--g-paper);
    --bubble-out: var(--g-line);
    --bubble-shadow: 0 0 0 1px var(--g-line);
    --pill: var(--g-paper);
    --tick-read: var(--g-mid);
    --doc-bg: var(--g-surface);
  }
  .duo .duo-card--a .wa .avatar, .duo .duo-card--a .wa .doc-icon { background: var(--g-mid) !important; }
  .duo .duo-card--a .wa .sender { color: var(--g-ink-2) !important; }

  .duo .duo-card--a .xl {
    --grid: var(--g-line);
    --head-bg: var(--g-surface);
    --sheet-green: var(--g-mid);
    --row-sel: var(--g-surface);
    --row-sel-text: var(--g-ink);
    --amber: var(--g-mid);
    --amber-bg: var(--g-line);
  }

  /* Insignias y apps: mismo gris, sin alarma */
  .duo .duo-card--a .mail__badge, .duo .duo-card--a .wa .badge, .duo .duo-card--a .xl .badge { background: var(--g-ink-2); }
  .duo .duo-card--b { background: #f6c945; color: #1a1d21; }

  /* ---------- Estructura interna (primera duo-card) ---------- */
  .duo .duo-card--stack {
    justify-content: flex-start;
    gap: 14px;
  }

  .duo .duo-card { container-type: inline-size; }
  .duo .duo-card h2.duo-card__title-caps {
    font-size: 5.7cqi;
    line-height: 1.2;
    letter-spacing: .01em;
    white-space: nowrap;
  }

  .duo .duo-card__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
  }

  /* Escenario: ocupa el espacio libre de la duo-card */
  .duo .duo-card__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;      /* con el zoom, nada se sale sobre el título */
    border-radius: 14px;
  }

  /* Cámara: el JS calcula translate + scale para encuadrar cada toma */
  .duo .canvas {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
  }
  .duo .canvas.is-moving {
    transition: transform var(--cam-speed, .95s) cubic-bezier(.7, 0, .25, 1);
  }
  .duo .canvas { z-index: 1; }

  /* Mosaico de operaciones: copias en miniatura de la misma escena */
  .duo .multi { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
  .duo .multi .tile { position: absolute; }
  .duo .multi .tile i {
    position: absolute;
    display: block;
    background: rgba(242, 242, 247, .2);
    border-radius: 3px;
  }
  .duo .multi .tile i.pap { background: rgba(255, 255, 255, .34); border-radius: 2px; }

  /* Texto de la cámara, siempre legible (no se escala con el lienzo) */
  .duo .caption {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    max-width: calc(100% - 24px);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(28, 28, 30, .78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #F2F2F7;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  }
  .duo .caption.show { opacity: 1; transform: translate(-50%, 0); }
  @media (max-width: 560px) {
    .duo .caption { bottom: 8px; padding: 5px 9px; font-size: 9.5px; line-height: 13px; white-space: normal; }
  }

  .duo .frag {
    position: absolute;
    left: var(--x, 0);
    top: var(--y, 0);
    width: var(--w, 340px);
    transform: rotate(var(--rot, 0deg));
  }

  .duo .frag--mail { --x: 0px;   --y: 40px;  --w: 340px; --rot: -2deg;  z-index: 1; }
  .duo .frag--chat { --x: 330px; --y: 0px;   --w: 370px; --rot: 1.5deg; z-index: 2; }
  .duo .frag--sheet { --x: 0px;   --y: 330px; --w: 600px; --rot: -1deg;  z-index: 3; }
  .duo .frag--docs { --x: 0px;   --y: 0px;   --w: 700px; height: 790px; z-index: 4; pointer-events: none; }

  /* Artefacto 1: correos entrantes */
  .duo .mail {
    --surface: #FFFFFF;
    --border: #E3E7ED;
    --chip: #F1F3F6;
    --chip-border: #E6E9EE;
    --text: #1A2230;
    --text-2: #4A5463;
    --text-3: #7A8494;
    --red: #E5483B;
    --green: #1E7A46;
    --slate: #5E6B7E;
    --orange: #D9822B;
    --blue: #2F6FDB;
    --shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 10px 28px -8px rgba(0, 0, 0, .35);

    padding: 12px 10px 4px 0; /* aire para el badge */
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
  }

  .duo .mail__row { display: flex; align-items: flex-start; gap: 12px; }

  .duo .mail__app {
    position: relative;
    flex: none;
    width: 60px;
    height: 60px;
    margin-top: 6px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    z-index: 2;
  }
  .duo .mail__app svg { width: 32px; height: 32px; display: block; }

  .duo .mail__badge {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
    font-variant-numeric: tabular-nums;
  }

  .duo .mail__stack { flex: 1; min-width: 0; display: grid; }

  .duo .mail__card {
    grid-area: 1 / 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px 16px 16px;
  }

  .duo .mail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .duo .mail__subject {
    font-size: 14px; font-weight: 600; line-height: 20px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .duo .mail__time {
    flex: none; font-size: 12px; line-height: 20px; color: var(--text-3);
    font-variant-numeric: tabular-nums;
  }
  .duo .mail .mail__topic, .duo .mail .mail__from, .duo .mail .mail__body { opacity: 1; } /* anula la opacidad de .duo-card p */
  .duo .mail .mail__topic { font-size: 13px; line-height: 18px; color: var(--text-2); }
  .duo .mail .mail__from {
    margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .duo .mail .mail__body {
    margin-top: 2px; min-height: 36px; font-size: 13px; line-height: 18px; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  .duo .mail__files { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .duo .mail__file {
    height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 8px; background: var(--chip); border: 1px solid var(--chip-border);
    font-size: 12px; font-weight: 500; line-height: 1; color: var(--text-2);
  }
  .duo .mail__file svg { width: 16px; height: 16px; flex: none; display: block; }

  /* Artefacto 2: seguimiento por chat */
  .duo .wa {
    --ring: var(--card-bg, #1f3a5f);
    --bar: #F6F6F6;
    --bar-line: #DADADA;
    --surface: #FFFFFF;
    --text: #111B21;
    --text-2: #54656F;
    --text-3: #667781;
    --ios-blue: #007AFF;
    --wallpaper: #EFEAE2;
    --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' fill='none' stroke='%23000' stroke-opacity='.045' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='14' cy='16' r='6'/%3E%3Cpath d='M44 10l8 8m0-8l-8 8'/%3E%3Crect x='70' y='8' width='14' height='10' rx='2'/%3E%3Cpath d='M10 52c4-6 10-6 14 0s10 6 14 0'/%3E%3Cpath d='M58 46h18v14H58zM58 46l9 7 9-7'/%3E%3Ccircle cx='24' cy='82' r='3'/%3E%3Cpath d='M50 80l6-8 6 8zM78 76a6 6 0 1 0 0 .1'/%3E%3C/svg%3E");
    --bubble-in: #FFFFFF;
    --bubble-out: #D9FDD3;
    --bubble-shadow: 0 1px .5px rgba(11, 20, 26, .13);
    --pill: #FFFFFF;
    --green: #1DAA61;
    --tick-read: #53BDEB;
    --red: #E5483B;
    --doc-bg: rgba(0, 0, 0, .04);
    --shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 12px 32px -8px rgba(0, 0, 0, .4);

    padding-top: 12px; /* aire para el badge */
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .duo .wa .row { display: flex; align-items: flex-start; gap: 14px; }

  .duo .wa .app {
    position: relative; flex: none; width: 60px; height: 60px; margin-top: 8px;
    border-radius: 16px; background: var(--green); box-shadow: var(--shadow);
    display: grid; place-items: center; z-index: 2;
  }
  .duo .wa .app svg { width: 32px; height: 32px; display: block; }
  .duo .wa .badge {
    position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; padding: 0 6px;
    border-radius: 999px; background: var(--red); color: #fff;
    font-size: 12px; font-weight: 600; line-height: 24px; text-align: center;
    box-shadow: 0 0 0 2px var(--ring); font-variant-numeric: tabular-nums;
  }

  .duo .wa .slot { flex: 1; min-width: 0; display: grid; }
  .duo .wa .chat {
    grid-area: 1 / 1; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
    display: flex; flex-direction: column; background: var(--bar); border: 1px solid var(--bar-line);
  }

  .duo .wa .chat-head {
    height: 56px; padding: 0 6px 0 4px; display: flex; align-items: center; gap: 8px;
    background: var(--bar); border-bottom: 1px solid var(--bar-line);
  }
  .duo .wa .back {
    flex: none; display: flex; align-items: center; gap: 1px; height: 32px; padding: 0 2px 0 4px;
    color: var(--ios-blue); font-size: 17px; line-height: 1;
  }
  .duo .wa .back svg { width: 12px; height: 20px; display: block; }
  .duo .wa .avatar {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600;
  }
  .duo .wa .who { flex: 1; min-width: 0; }
  .duo .wa .name {
    font-size: 15px; font-weight: 600; line-height: 19px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .duo .wa .sub {
    font-size: 12px; line-height: 16px; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .duo .wa .actions { flex: none; display: flex; align-items: center; }
  .duo .wa .actions span { width: 34px; height: 38px; display: grid; place-items: center; color: var(--ios-blue); }
  .duo .wa .actions svg { width: 22px; height: 22px; display: block; }

  .duo .wa .messages {
    height: 250px; padding: 10px 14px 12px; display: flex; flex-direction: column;
    justify-content: flex-end; overflow: hidden;
    background-color: var(--wallpaper); background-image: var(--doodle); background-size: 96px 96px;
  }
  .duo .wa .day {
    align-self: center; margin-bottom: 6px; padding: 4px 12px; border-radius: 8px;
    background: var(--pill); box-shadow: var(--bubble-shadow);
    font-size: 12.5px; font-weight: 500; line-height: 16px; color: var(--text-2);
  }

  .duo .wa .bubble {
    position: relative; max-width: 82%; margin-top: 2px; padding: 6px 9px 7px 11px;
    border-radius: 14px; box-shadow: var(--bubble-shadow);
    font-size: 15px; line-height: 20px; color: var(--text); overflow-wrap: anywhere;
  }
  .duo .wa .bubble.in { align-self: flex-start; background: var(--bubble-in); }
  .duo .wa .bubble.out { align-self: flex-end; background: var(--bubble-out); }
  .duo .wa .bubble.first { margin-top: 8px; }

  .duo .wa .tail { position: absolute; bottom: 0; width: 9px; height: 14px; display: none; }
  .duo .wa .bubble.last .tail { display: block; }
  .duo .wa .bubble.in.last { border-bottom-left-radius: 0; }
  .duo .wa .bubble.out.last { border-bottom-right-radius: 0; }
  .duo .wa .bubble.in .tail { left: -8px; color: var(--bubble-in); }
  .duo .wa .bubble.out .tail { right: -8px; color: var(--bubble-out); transform: scaleX(-1); }

  .duo .wa .sender { display: block; font-size: 13px; font-weight: 600; line-height: 18px; }
  .duo .wa .meta {
    float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -5px 12px;
    font-size: 11px; line-height: 15px; color: var(--text-3); font-variant-numeric: tabular-nums;
  }
  .duo .wa .meta svg { width: 16px; height: 11px; display: block; }

  .duo .wa .bubble.reacted { margin-bottom: 18px; }
  .duo .wa .react {
    position: absolute; bottom: -20px; height: 26px; min-width: 32px; padding: 0 7px;
    border-radius: 999px; background: var(--pill);
    box-shadow: 0 0 0 2px var(--wallpaper), var(--bubble-shadow);
    display: grid; place-items: center; font-size: 14px; line-height: 1;
  }
  .duo .wa .bubble.in .react { left: 8px; }
  .duo .wa .bubble.out .react { right: 8px; }

  .duo .wa .doc {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 2px 0 0;
    border-radius: 8px; background: var(--doc-bg); min-width: 210px;
  }
  .duo .wa .doc-icon {
    flex: none; width: 28px; height: 34px; border-radius: 4px;
    display: grid; place-items: end center; padding-bottom: 5px;
    color: #fff; font-size: 8px; font-weight: 700;
  }
  .duo .wa .doc-text { min-width: 0; }
  .duo .wa .doc-name {
    font-size: 14px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .duo .wa .doc-info { font-size: 11.5px; line-height: 15px; color: var(--text-3); }

  .duo .wa .composer {
    height: 52px; padding: 0 8px; display: flex; align-items: center; gap: 6px;
    background: var(--bar); border-top: 1px solid var(--bar-line); color: var(--ios-blue);
  }
  .duo .wa .composer .ic { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
  .duo .wa .composer svg { width: 22px; height: 22px; display: block; }
  .duo .wa .field {
    flex: 1; height: 34px; border-radius: 17px; background: var(--surface); border: 1px solid var(--bar-line);
  }

  /* Artefacto 3: hojas de cálculo con versiones distintas */
  .duo .xl {
    --ring: var(--card-bg, #1f3a5f);
    --surface: #FFFFFF;
    --border: #E3E7ED;
    --grid: #ECEFF3;
    --head-bg: #F6F7F9;
    --text: #1A2230;
    --text-2: #4A5463;
    --text-3: #7A8494;
    --sheet-green: #1E7A46;
    --row-sel: #E8F0FE;
    --row-sel-text: #1A56C4;
    --amber: #B45309;
    --amber-bg: #FEF3C7;
    --red: #E5483B;
    --shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 10px 28px -8px rgba(0, 0, 0, .35);

    padding: 14px 14px 0 0; /* aire para el badge y las hojas de atrás */
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .duo .xl .row { display: flex; align-items: flex-start; gap: 12px; }

  .duo .xl .app {
    position: relative; flex: none; width: 60px; height: 60px; margin-top: 4px;
    border-radius: 16px; background: var(--sheet-green); box-shadow: var(--shadow);
    display: grid; place-items: center; z-index: 2;
  }
  .duo .xl .app svg { width: 30px; height: 30px; display: block; }
  .duo .xl .badge {
    position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 999px;
    background: var(--red); color: #fff; font-size: 13px; font-weight: 600; line-height: 24px;
    text-align: center; box-shadow: 0 0 0 2px var(--ring);
  }

  /* Pila: dos hojas fantasma detrás de la hoja activa = "hay más copias" */
  .duo .xl .pile { flex: 1; min-width: 0; display: grid; }
  .duo .xl .pile > * { grid-area: 1 / 1; }
  .duo .xl .ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .duo .xl .ghost--2 { transform: translate(18px, -16px) rotate(3deg); opacity: .6; }
  .duo .xl .ghost--1 { transform: translate(9px, -8px) rotate(1.5deg); opacity: .85; }

  .duo .xl .slot { min-width: 0; display: grid; position: relative; }
  .duo .xl .sheet {
    grid-area: 1 / 1; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  }

  .duo .xl .sheet-head { padding: 12px 14px 10px; display: flex; align-items: center; gap: 10px; }
  .duo .xl .file-ic {
    flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--sheet-green);
    display: grid; place-items: center;
  }
  .duo .xl .file-ic svg { width: 16px; height: 16px; display: block; }
  .duo .xl .file-text { min-width: 0; flex: 1; }
  .duo .xl .file-name {
    font-size: 14px; font-weight: 600; line-height: 20px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .duo .xl .owner {
    font-size: 12px; line-height: 16px; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .duo .xl .ver {
    flex: none; font-size: 11.5px; font-weight: 500; line-height: 16px; color: var(--text-3);
    padding: 3px 8px; border-radius: 999px; background: var(--head-bg); border: 1px solid var(--grid);
    font-variant-numeric: tabular-nums;
  }

  .duo .xl .table-wrap { overflow: hidden; }
  .duo .xl table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 16px; }
  .duo .xl th, .duo .xl td {
    height: 34px; padding: 0 10px; text-align: left; white-space: nowrap;
    border-top: 1px solid var(--grid);
  }
  .duo .xl th + th, .duo .xl td + td { border-left: 1px solid var(--grid); }
  .duo .xl th {
    height: 30px; background: var(--head-bg); font-size: 11.5px; font-weight: 500; color: var(--text-3);
  }
  .duo .xl th:first-child, .duo .xl td:first-child { padding-left: 14px; }
  .duo .xl th:last-child, .duo .xl td:last-child { padding-right: 14px; }
  .duo .xl td { color: var(--text-2); }
  .duo .xl td.num, .duo .xl th.num { text-align: right; font-variant-numeric: tabular-nums; }
  .duo .xl td.id { color: var(--text); font-variant-numeric: tabular-nums; }

  .duo .xl tr.sel td { background: var(--row-sel); }
  .duo .xl tr.sel td.id { font-weight: 600; color: var(--text); }
  .duo .xl tr.sel td.status { color: var(--row-sel-text); font-weight: 500; }

  .duo .xl td.changed { animation: duo-xl-flash 1.8s ease-out .5s both; }
  @keyframes duo-xl-flash {
    0%, 35% { box-shadow: inset 0 0 0 100px var(--amber-bg); }
    100% { box-shadow: inset 0 0 0 100px transparent; }
  }

  .duo .xl .sheet-foot {
    height: 36px; padding: 0 14px; display: flex; align-items: center; gap: 6px;
    border-top: 1px solid var(--grid); font-size: 12px; line-height: 16px; color: var(--amber);
  }
  .duo .xl .sheet-foot svg { width: 14px; height: 14px; flex: none; display: block; }

  /* Aviso de versión vieja */
  .duo .xl .stale-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-top: 1px solid var(--grid);
    background: var(--head-bg); color: var(--text-2);
    font-size: 11.5px; font-weight: 500; line-height: 16px;
  }
  .duo .xl .stale-bar svg { width: 13px; height: 13px; flex: none; display: block; }

  /* Alguien más está editando una celda mientras la ves */
  .duo .xl td.editing { position: relative; box-shadow: inset 0 0 0 1.5px var(--text-2); }
  .duo .xl td.edited { animation: duo-xl-flash 1.6s ease-out both; }
  .duo .xl .who-tag {
    position: absolute; left: -1px; top: -15px; z-index: 2;
    padding: 0 5px; border-radius: 3px 3px 3px 0;
    background: var(--text-2); color: #fff;
    font-size: 9.5px; font-weight: 600; line-height: 15px; white-space: nowrap;
  }

  @media (prefers-reduced-motion: reduce) {
    .duo .xl td.changed { animation: none; box-shadow: inset 0 0 0 100px var(--amber-bg); }
    .duo .xl td.edited { animation: none; }
  }

  /* Artefacto 4: documentos sueltos que van llegando */
  .duo .docs { position: relative; width: 100%; height: 100%; font-family: "Inter", system-ui, sans-serif; }

  .duo .docs .paper {
    position: absolute;
    width: 118px;
    height: 150px;
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--g-paper, #FAFAFA);
    border: 1px solid var(--g-line-2, #D4D4D8);
    border-radius: 6px;
    box-shadow: var(--g-shadow, 0 1px 2px rgba(0,0,0,.14));
  }
  .duo .docs .type {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--g-mid, #A1A1AA);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    line-height: 12px;
  }
  .duo .docs .ln { height: 4px; border-radius: 2px; background: var(--g-line, #E4E4E7); }
  .duo .docs .fname {
    margin-top: auto;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 13px;
    color: var(--g-ink, #1C1C1E);
    display: -webkit-box;          /* nombres largos en 2 líneas, sin cortar */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Móvil: se mantienen lado a lado, solo se reduce tipografía y padding */
  @media (max-width: 560px) {
    .duo {
      --duo-gap: 10px;
      --card-radius: 18px;
      --card-pad: 16px;
      --title-size: 1.1rem;
      --text-size: 0.8rem;
    }
    .duo .duo-card--stack { gap: 10px; }
  }

  @media (max-width: 360px) {
    .duo {
      --card-pad: 12px;
      --title-size: 0.95rem;
      --text-size: 0.72rem;
    }
  }

  /* ---- Integración visual con el sistema de la página (solo apariencia; animaciones intactas) ---- */
  .duo { margin-top: clamp(40px, 6vw, 64px); --card-radius: 16px; text-align: left; font-family: 'Open Sans', sans-serif; }
  /* Títulos en oración: light, a la medida de la card y repartidos en líneas parejas */
  .duo .duo-card h2.duo-card__title-caps { font-family: 'Open Sans', sans-serif; font-weight: 300; font-size: 6.6cqi; letter-spacing: -.01em; line-height: 1.3;
    white-space: normal; text-wrap: balance; }
  /* Primera card: gris frío; texto en la tinta del sitio */
  .duo .duo-card--a { --card-bg: #E8EBF0; background: #E8EBF0; border: 1px solid rgba(23, 33, 64, .06); color: #172140; }
  /* Mosaico de operaciones sobre fondo claro: siluetas en gris (mismo dibujo y animación) */
  .duo .duo-card--a .multi .tile i { background: rgba(23, 33, 64, .08); }
  .duo .duo-card--a .multi .tile i.pap { background: rgba(255, 255, 255, .85); }
  /* Segunda card: el mismo degradado de los textos destacados del sitio, en diagonal
     (lo más profundo arriba, donde vive el título, para que el blanco se lea siempre) */
  .duo .duo-card--b {
    background: linear-gradient(160deg, #125488 0%, #2A93D5 30%, #37CAEC 60%, #3DD9D6 85%, #ADD9D8 100%);
    border: 0; color: #ffffff;
  }
  /* El párrafo vive abajo, sobre la parte clara del degradado: va en azul noche */
  .duo .duo-card--b p { color: rgba(23, 33, 64, .82); opacity: 1; }
  /* Sobre el degradado, el texto destacado va en blanco sólido (un degradado sobre otro se perdería) */
  .duo .duo-card--b h2 .text-gradient { background: none; -webkit-text-fill-color: #ffffff; color: #ffffff; font-weight: 500; }
  .duo .caption { font-family: 'Open Sans', sans-serif; background: rgba(23, 33, 64, .78); }
  .duo .duo-card__stage { border-radius: 12px; }
  /* Mapa de la plataforma dentro de "Con un solo flujo": el componente real a tamaño natural, escalado a la card */
  .duo .duo-card--b { justify-content: flex-start; gap: 14px; }
  /* Sin recuadro: el mapa ocupa todo el espacio bajo el título, hasta los bordes de la card */
  .duo .duo-map { position: relative; flex: 1; min-height: 0; overflow: hidden;
    margin: 0 calc(var(--card-pad) * -1) calc(var(--card-pad) * -1); }
  /* Ciudad integrada al degradado: mismas piezas, en blanco translúcido (cada capa se compone entera, sin transparencias cruzadas) */
  .duo .duo-map .ops-map {
    --accent: #ffffff; --accent-ring: rgba(255, 255, 255, .28);
    --map-road: #ffffff; --map-top: #ffffff; --map-left: #e4f1fb; --map-right: #cfe4f4;
    --map-edge: rgba(255, 255, 255, .7); --map-id: rgba(255, 255, 255, .0); --map-shadow: rgba(8, 40, 90, .25);
  }
  .duo .duo-map .ops-map .stage .roads, .duo .duo-map .ops-map .stage.has-active .roads { opacity: .16; }
  .duo .duo-map .ops-map .stage .buildings, .duo .duo-map .ops-map .stage.has-active .buildings { opacity: .2; }
  /* Esencial: solo el degradado y Smart Shipment al centro. Sin ciudad, rutas, nodos ni títulos secundarios */
  .duo .duo-map .labels, .duo .duo-map .stage > svg { display: none !important; }
  .duo .duo-map .core { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%);
    /* Grande y ligero: tipografía light, aire justo, superficie limpia y sombra apenas sugerida */
    font-size: 46px; font-weight: 300; letter-spacing: -.025em; padding: 20px 44px;
    background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 1px 1px rgba(8, 40, 90, .04), 0 28px 64px -36px rgba(8, 40, 90, .45); }
  .duo .duo-map .core::after { display: none; }
  /* Respira: un latido casi imperceptible y un resplandor suave que nace del contenedor y se disuelve */
  .duo .duo-map .stage.in .core { animation: duo-core-in .9s var(--ease) .2s backwards, duo-breathe 4.2s ease-in-out 1.1s infinite; }
  .duo .duo-map .core::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    animation: duo-glow 4.2s ease-out 1.1s infinite;
  }
  @keyframes duo-core-in { from { opacity: 0; } }
  @keyframes duo-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.015; } }
  @keyframes duo-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .3); } 60%, 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
  @media (prefers-reduced-motion: reduce) { .duo .duo-map .stage.in .core, .duo .duo-map .core::before { animation: none; } }
  /* El mapa se lee completo: las rutas no activas no se apagan */
  .duo .duo-map .ops-map .stage.has-active .r:not(.active) :is(.route, .flow, .turn, .node-ring) { opacity: .4; }
  /* Puente: al llegar la conexión, las rutas se iluminan una tras otra y quedan estables */
  .duo .duo-map .ops-map .stage.has-active.is-lit .r:not(.active) .route { opacity: .85; stroke-width: 2; }
  .duo .duo-map .ops-map .stage.has-active.is-lit .r:not(.active) :is(.turn, .node-ring) { opacity: .8; }
  .duo .duo-map .ops-map .stage.is-lit .r :is(.route, .node-ring, .turn) {
    transition: opacity .6s ease, stroke-width .6s ease; transition-delay: calc(var(--lit-i, 0) * 90ms); }
  .duo .duo-map .ops-map .r:nth-child(1) { --lit-i: 0; } .duo .duo-map .ops-map .r:nth-child(2) { --lit-i: 1; }
  .duo .duo-map .ops-map .r:nth-child(3) { --lit-i: 2; } .duo .duo-map .ops-map .r:nth-child(4) { --lit-i: 3; }
  .duo .duo-map .ops-map .r:nth-child(5) { --lit-i: 4; }

  /* ---- Puente: información fragmentada → una sola conexión → Smart Shipment ----
     SVG superpuesto, sin eventos; las rutas se recalculan con las posiciones reales de los elementos */
  .duo { position: relative; }
  .duo-bridge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 5; }
  .duo-bridge path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .duo-bridge .src { stroke: #2A93D5; stroke-width: 1; opacity: .38; stroke-dasharray: 1 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset .8s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 110ms); }
  .duo-bridge .main, .duo-bridge .glow { stroke: url(#duo-bridge-grad); stroke-dasharray: 1 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset .85s cubic-bezier(.65, 0, .35, 1) .65s; }
  .duo-bridge .main { stroke-width: 1.25; }
  .duo-bridge .glow { stroke-width: 5; opacity: .16; filter: url(#duo-bridge-blur); }
  .duo-bridge.is-on :is(.src, .main, .glow) { stroke-dashoffset: 0; }
  /* Mosaico de operaciones: un hilo finísimo desde cada operación hacia la misma conexión */
  .duo-bridge .op { stroke: #2A93D5; stroke-width: .8; opacity: 0; stroke-dasharray: 1 1; stroke-dashoffset: 1;
    transition: opacity .5s ease, stroke-dashoffset .5s ease; }
  .duo-bridge.is-ops .op { opacity: .28; stroke-dashoffset: 0;
    transition: opacity .4s ease, stroke-dashoffset 1s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 25ms); }
  .duo-bridge .ring { fill: none; stroke: #ffffff; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
  .duo-bridge.is-pulse .ring { animation: duo-ring 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
  @keyframes duo-ring { 0% { opacity: .7; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.35); } }
  /* Después: una chispa muy discreta recorre la conexión de vez en cuando */
  .duo-bridge .spark { stroke: url(#duo-bridge-grad); stroke-width: 2; stroke-dasharray: .06 1.2; stroke-dashoffset: .06; opacity: 0; }
  .duo-bridge.is-live .spark { animation: duo-spark 6s ease-in-out 1s infinite; }
  @keyframes duo-spark { 0% { stroke-dashoffset: .06; opacity: 0; } 6% { opacity: .9; } 40% { stroke-dashoffset: -1; opacity: .9; } 46%, 100% { stroke-dashoffset: -1; opacity: 0; } }
  @media (prefers-reduced-motion: reduce) {
    .duo-bridge :is(.src, .main, .glow) { transition: none; stroke-dashoffset: 0; }
    .duo-bridge .ring, .duo-bridge .spark { display: none; }
    .duo .duo-map .ops-map .stage.is-lit .r :is(.route, .node-ring, .turn) { transition: none; }
  }
  .duo .duo-map-scale { position: absolute; left: 0; top: 0; width: 1000px; transform-origin: 0 0;
    transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--ms, .3)); }
  .duo .duo-map .ops-map { --stage-w: 1000px; margin: 0; }
  .duo .duo-map .map-detail, .duo .duo-map .map-chips, .duo .duo-map .label .desc { display: none !important; }
  /* Etiquetas y hub a una escala que siga leyéndose una vez reducido el mapa */
  .duo .duo-map .label { width: 240px; }
  .duo .duo-map .label .ttl { font-size: 26px; }
  .duo .duo-map .label .icon { width: 28px; height: 28px; margin-bottom: 9px; }
  /* Nitidez del lienzo escalado: texto con contornos exactos (sin el ajuste a la rejilla de píxeles que
     deforma las letras pequeñas al escalar/rotar) */
  .duo .canvas { text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  @media (max-width: 560px) { .duo { --card-radius: 14px; } }
    /* ================= Preguntas frecuentes (Plataforma, Administración Documental, Agentes de IA) =================
       Acordeón nativo (<details>): una pregunta abierta a la vez, divisores finos, signo + que gira a −. */
    .faq-list { border-top: 1px solid var(--line); }
    .faq-item { border-bottom: 1px solid var(--line); }
    .faq-item summary {
      list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
      padding: 22px 0; font-size: 17px; font-weight: 400; line-height: 1.4; color: rgb(var(--c-ink));
      border-radius: 6px; transition: color .2s ease;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary:hover { color: var(--accent); }
    .faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    .faq-icon { position: relative; flex: none; width: 14px; height: 14px; color: rgb(var(--c-muted)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
    .faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
    .faq-icon::after { transform: rotate(90deg); }
    .faq-item[open] .faq-icon { transform: rotate(180deg); }
    .faq-item[open] .faq-icon::after { transform: rotate(0deg); }
    .faq-a { padding: 0 40px 24px 0; max-width: 680px; }
    .faq-item[open] .faq-a { animation: faq-in .35s cubic-bezier(.2, .8, .2, 1); }
    @keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
    @media (prefers-reduced-motion: reduce) { .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; } .faq-item[open] .faq-a { animation: none; } }
    /* Footer: datos de contacto (dirección y teléfono) */
    .footer-info { font-style: normal; max-width: 30rem; text-align: center; color: rgba(255, 255, 255, .88); display: flex; flex-direction: column; gap: 6px; }
    @media (min-width: 768px) { .footer-info { text-align: right; } }
    .footer-info a { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
    .footer-info a:hover { text-decoration-color: #ffffff; }
    .footer-info a:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 2px; }
    /* Footer más discreto: dirección pequeña y tenue + íconos sociales */
    .footer-info.t-small { font-size: 12px; line-height: 1.6; letter-spacing: .01em; color: rgba(255, 255, 255, .7); max-width: 24rem; gap: 2px; }
    .footer-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
    @media (min-width: 768px) { .footer-col { align-items: flex-end; } }
    .footer-social { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
    .footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
      color: rgba(255, 255, 255, .78); transition: color .2s ease, background-color .2s ease; }
    .footer-social a:hover { color: #ffffff; background: rgba(255, 255, 255, .12); }
    .footer-social a:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
    .footer-social svg { width: 17px; height: 17px; fill: currentColor; }
    @media (max-width: 767px) { .footer-social { margin-right: 0; } }
    /* ================= Retícula global (las 3 landing pages y futuras) =================
       Un solo contenedor centrado para header, secciones y footer: el centro no cambia,
       el eje izquierdo/derecho se abre. El ancho de lectura lo limita cada bloque de texto. */
    :root { --page-max: 1360px; --gutter: 24px; }
    @media (min-width: 768px)  { :root { --gutter: 32px; } }
    @media (min-width: 1024px) { :root { --gutter: 48px; } }
    @media (min-width: 1440px) { :root { --gutter: 64px; } }
    .page-container {
      width: 100%;
      max-width: calc(var(--page-max) + var(--gutter) * 2);
      margin-inline: auto;
      padding-inline: var(--gutter);
    }
    /* ================= Sistema tipográfico compartido (las 3 landing pages) =================
       Un rol = un tratamiento. Escala: móvil → tablet (≥768) → desktop (≥1024). */
    :root {
      --fs-display: 40px; --fs-h2: 30px; --fs-h3: 24px; --fs-h4: 18px; --fs-h5: 16px;
      --fs-lead: 17px; --fs-sub: 16px; --fs-body: 15px; --fs-small: 14px; --fs-label: 12px; --fs-btn: 14px;
    }
    @media (min-width: 768px) {
      :root { --fs-display: 52px; --fs-h2: 34px; --fs-h3: 26px; --fs-h4: 20px; --fs-h5: 17px; --fs-lead: 18px; --fs-body: 16px; }
    }
    @media (min-width: 1024px) {
      :root { --fs-display: 64px; --fs-h2: 40px; --fs-h3: 30px; --fs-h4: 22px; }
    }
    body .t-display { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.03em; font-weight: 400; }
    body .t-h2      { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.022em; font-weight: 300; text-wrap: balance; }
    body .t-h3      { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.018em; font-weight: 300; text-wrap: balance; }
    body .t-h4      { font-size: var(--fs-h4); line-height: 1.35; letter-spacing: -0.012em; font-weight: 300; }
    body .t-h5      { font-size: var(--fs-h5); line-height: 1.4; letter-spacing: -0.01em; font-weight: 400; }
    body .t-lead    { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.01em; }
    body .t-sub     { font-size: var(--fs-sub); line-height: 1.5; letter-spacing: 0; }
    body .t-body    { font-size: var(--fs-body); line-height: 1.5; letter-spacing: 0; }
    body .t-small   { font-size: var(--fs-small); line-height: 1.5; letter-spacing: 0; }
    body .t-label   { font-size: var(--fs-label); line-height: 1.3; letter-spacing: 0.06em; font-weight: 600; text-transform: uppercase; }
    /* Botones: 14px · 500 · interlineado 1 · 40px de alto (botón gris y Agendar Demo) */
    .btn-base { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; white-space: nowrap; }
    body .btn-base, body .btn-soft { font-size: var(--fs-btn); font-weight: 500; line-height: 1; letter-spacing: -0.005em; min-height: 40px; padding: 13px 20px; }

    @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  
    /* ===== Mega menú "Soluciones" (compartido por las 3 páginas) ===== */
    .mnav { position: relative; display: flex; align-items: center; }
    .mnav-item { position: relative; }
    .mnav-trigger {
      display: inline-flex; align-items: center; gap: 6px;
      height: 36px; padding: 0 12px; margin-left: -12px; border-radius: 999px;
      font-size: 14px; font-weight: 500; line-height: 1;
      color: rgb(var(--c-muted)); background: transparent; border: 0; cursor: pointer;
      transition: color .15s ease, background-color .15s ease;
    }
    .mnav-trigger:hover, .mnav-item.is-open .mnav-trigger, .mnav-trigger.is-current { color: rgb(var(--c-ink)); }
    .mnav-chev { width: 12px; height: 12px; transition: transform .2s ease; }
    .mnav-item.is-open .mnav-chev { transform: rotate(180deg); }

    .mnav-panel {
      position: absolute; top: calc(100% + 24px); left: -24px; z-index: 60;
      width: min(380px, calc(100vw - 32px));
      opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.985); transform-origin: top left;
      transition: opacity .14s ease, transform .16s ease, visibility 0s linear .16s;
    }
    /* Puente invisible para que el hover no se pierda en el hueco */
    .mnav-panel::before { content: ""; position: absolute; left: -12px; right: -12px; top: -64px; height: 64px; }
    .mnav-item.is-open .mnav-panel {
      opacity: 1; visibility: visible; transform: none;
      transition: opacity .18s ease, transform .2s cubic-bezier(.2,.8,.2,1), visibility 0s;
    }
    .mnav-card {
      display: block; padding: 8px;
      background: rgb(var(--c-bg)); border: 1px solid rgb(var(--c-line));
      border-radius: 24px;
      box-shadow: 0 24px 60px -24px rgb(15 23 42 / .22), 0 2px 8px -2px rgb(15 23 42 / .06);
    }
    .mnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
    .mnav-link {
      position: relative; display: block; padding: 14px 40px 14px 16px; border-radius: 16px;
      color: inherit; text-decoration: none; transition: background-color .15s ease;
    }
    .mnav-link:hover, .mnav-link:focus-visible { background: var(--soft-bg); }
    .mnav-title { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; color: rgb(var(--c-ink)); }
    .mnav-desc { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: rgb(var(--c-muted)); }
    .mnav-arrow {
      position: absolute; right: 16px; top: 16px; width: 14px; height: 14px; color: rgb(var(--c-muted));
      opacity: 0; transform: translate(-3px, 3px); transition: opacity .15s ease, transform .15s ease;
    }
    .mnav-link:hover .mnav-arrow, .mnav-link:focus-visible .mnav-arrow { opacity: 1; transform: none; }
    .mnav-link[aria-current="page"] .mnav-title::after {
      content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: middle;
      border-radius: 999px; background: var(--accent);
    }

    @media (max-width: 767px) {
      .mnav-item { position: static; }
      .mnav-panel { position: fixed; left: 16px; right: 16px; width: auto; top: calc(var(--header-h) + 8px); }
      .mnav-card { border-radius: 20px; max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; }
    }
    @media (prefers-reduced-motion: reduce) {
      .mnav-panel, .mnav-item.is-open .mnav-panel { transform: none; transition: opacity .01s, visibility 0s; }
    }
    @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mnav-card { background: rgb(var(--c-surface)); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .6); } }
    :root[data-theme="dark"] .mnav-card { background: rgb(var(--c-surface)); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .6); }
    /* ===== Menú "Soluciones": vidrio más transparente y con más desenfoque =====
       El desenfoque del header se dibuja en una capa propia (::before): así el header no "encierra" al menú
       y el panel puede desenfocar de verdad el contenido de la página que queda debajo. */
    #site-header { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    #site-header::before {
      content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
      background: rgb(var(--c-bg) / .85);
      -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    }
    .mnav-card {
      background: rgb(var(--c-bg) / .62);
      -webkit-backdrop-filter: blur(32px) saturate(180%); backdrop-filter: blur(32px) saturate(180%);
    }
    @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mnav-card { background: rgb(var(--c-surface) / .6); } }
    :root[data-theme="dark"] .mnav-card { background: rgb(var(--c-surface) / .6); }
    /* Sin soporte de desenfoque: se conserva un fondo casi opaco para que el texto siempre se lea */
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
      .mnav-card { background: rgb(var(--c-bg) / .97); }
    }
    .mnav-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .mnav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .mnav-trigger { position: relative; z-index: 61; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    .mnav-link { -webkit-tap-highlight-color: transparent; }
    /* ===== Navbar: jerarquía de acciones =====
       Iniciar sesión = acción principal (sólida, alto contraste). Contactar a ventas = enlace secundario.
       Todas las áreas clicables miden 44 px de alto (objetivo táctil cómodo). */
    #site-header .hdr-actions { gap: 8px; }
    .hdr-sales {
      display: none; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
      font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; color: rgb(var(--c-muted));
      transition: color .15s ease, background-color .15s ease;
    }
    @media (min-width: 640px) { .hdr-sales { display: inline-flex; } }
    .hdr-sales:hover { color: rgb(var(--c-ink)); background: var(--hover-bg, rgba(23,33,64,.04)); }
    .hdr-sales:active { background: var(--soft-bg); }
    .hdr-sales:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; color: rgb(var(--c-ink)); }
    /* Contactar a ventas: botón sólido con el azul de "Agendar Demo" */
    #site-header .hdr-sales { padding: 0 20px; color: #ffffff; background: #0C34FA; transition: background-color .2s ease, transform .1s ease; }
    #site-header .hdr-sales:hover, #site-header .hdr-sales:focus-visible { color: #ffffff; background: #0A2BD0; }
    #site-header .hdr-sales:active { background: #0A2BD0; transform: scale(.97); }
    /* Selector de tema: separado de las acciones y llevado casi a la esquina derecha de la pantalla */
    #site-header #theme-toggle.theme-toggle { margin-left: 16px; }
    @media (min-width: 1024px) {
      #site-header #theme-toggle.theme-toggle {
        margin-left: 28px;
        /* Se recorre desde el borde de la retícula hasta ~16 px del borde de la ventana (también en pantallas anchas) */
        margin-right: calc(24px - (100vw - min(100vw - 2 * var(--gutter), var(--page-max))) / 2);
      }
    }
    /* Iniciar sesión: sin fondo, con borde en el degradado de la marca (el mismo de los textos destacados) */
    .hdr-login {
      position: relative; isolation: isolate;
      display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px;
      font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
      color: rgb(var(--c-ink)); background: transparent;
      transition: background-color .2s ease, transform .1s ease;
    }
    .hdr-login::before {
      content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
      background: var(--grad);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
    }
    .hdr-login:hover { background: var(--accent-ring); }
    .hdr-login:active { transform: scale(.97); }
    .hdr-login:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    /* Selector de tema: presente pero discreto. Sin fondo; solo el icono pequeño en gris.
       El área clicable sigue siendo de 44 × 44 px y el fondo sutil aparece únicamente al pasar el cursor. */
    #theme-toggle.theme-toggle { width: 44px; height: 44px; background: transparent; box-shadow: none; border-color: transparent; color: rgb(var(--c-muted)); }
    #theme-toggle.theme-toggle svg { width: 15px; height: 15px; }
    #theme-toggle.theme-toggle:hover { background: var(--soft-bg); color: rgb(var(--c-ink)); }
    /* Móvil: el logo, Soluciones, Iniciar sesión y el selector de tema caben sin desbordar */
    @media (max-width: 639px) {
      #site-header .hdr-left { gap: 14px; }
      #site-header .hdr-actions { gap: 4px; }
      .hdr-login { padding: 0 14px; font-size: 13px; }
    }
    /* Teléfonos angostos (< 420 px): Iniciar sesión tiene prioridad. El selector de tema se oculta
       (la página sigue el tema del sistema del teléfono) y los espacios se compactan para que nada se desborde. */
    @media (max-width: 419px) {
      #theme-toggle.theme-toggle { display: none; }
      #site-header .page-container { column-gap: 8px; }
      #site-header .hdr-left { gap: 10px; }
      #site-header .mnav-trigger { padding: 0 8px; margin-left: -8px; }
      .hdr-login { padding: 0 12px; }
    }
    @media (max-width: 359px) {
      #site-header .hdr-left { gap: 6px; }
      #site-header .mnav-trigger { font-size: 13px; padding: 0 6px; margin-left: -6px; }
      .hdr-login { padding: 0 10px; font-size: 12px; }
    }
    /* ================= Por qué Taskility: las 4 C ================= */
    #colaborar { overflow-x: clip; }   /* el resplandor del video no genera scroll horizontal */
    .why-head { max-width: 46rem; margin: 0 auto; text-align: center; }
    .why-head .t-sub { margin-top: 20px; text-wrap: balance; }
    .why-stat { font-weight: 600; color: rgb(var(--c-ink)); }
    :root[data-theme="dark"] { --why-glow: .7; }
    @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --why-glow: .7; } }
    /* Retícula continua de 4 celdas con líneas finas (misma familia visual que la página) */
    .why-grid { display: grid; grid-template-columns: 1fr; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
    .why-cell { padding: 32px 0; border-bottom: 1px solid var(--line); }
    /* Escala de la sección (sistema compartido): título = H2 (40/34/30) › verbo = H3 (30/26/24) › frase = H5 (17/16, 500) › descripción = cuerpo (16/15) */
    .why-verb { margin: 0 0 16px; font-size: var(--fs-h3); font-weight: 300; line-height: 1.15; letter-spacing: -0.018em; color: rgb(var(--c-ink)); }
    .why-lead { margin: 0 0 8px; font-size: var(--fs-h5); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: rgb(var(--c-ink)); text-wrap: balance; }
    .why-desc { margin: 0; font-size: var(--fs-body); font-weight: 400; line-height: 1.55; letter-spacing: 0; color: rgb(var(--c-muted)); text-wrap: pretty; }
    @media (min-width: 640px) {
      .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .why-cell { padding: 36px 32px 40px 0; }
      .why-cell:nth-child(2n) { padding: 36px 0 40px 32px; border-left: 1px solid var(--line); }
    }
    @media (min-width: 1024px) {
      .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
      .why-cell, .why-cell:nth-child(2n) { padding: 40px 28px 48px; border-bottom: 0; border-left: 1px solid var(--line); }
      .why-cell:first-child { padding-left: 0; border-left: 0; }
      .why-cell:last-child { padding-right: 0; }
    }

    /* Video: mismo espacio y portada que el demo de Administración Documental */
    .why-video { position: relative; isolation: isolate; width: 100%; max-width: 880px; margin: clamp(56px, 7vw, 88px) auto 0; }
    .why-video-slot { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--card-shadow); }
    .why-video-glow { position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none; opacity: var(--why-glow, .45);
      -webkit-mask-image: radial-gradient(closest-side, #000 45%, rgba(0,0,0,.5) 70%, transparent 100%);
              mask-image: radial-gradient(closest-side, #000 45%, rgba(0,0,0,.5) 70%, transparent 100%); }
    .why-video-glow img { position: absolute; inset: 12% 9%; width: 82%; height: 76%; object-fit: cover; filter: blur(56px) saturate(1.35); transform: scale(1.12); }
    .why-video .yt-facade { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
    .why-video .yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
    .why-video .yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.28), transparent 45%); pointer-events: none; }
    .why-video .yt-play {
      position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 999px;
      display: grid; place-items: center; color: #ffffff; background: rgba(255,255,255,.18);
      -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 10px 30px -10px rgba(0,0,0,.45);
      transition: transform .25s ease, background-color .25s ease;
    }
    .why-video .yt-play svg { width: 28px; height: 28px; margin-left: 4px; }
    .why-video .yt-facade:hover .yt-play, .why-video .yt-facade:focus-visible .yt-play { transform: scale(1.06); background: rgba(12,52,250,.85); }
    .why-video .yt-facade:hover .yt-thumb { transform: scale(1.015); }
    .why-video .yt-facade:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .why-video .yt-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #000; }
    /* Vista previa sin acceso a YouTube: portada de marca y aviso (nunca redirige) */
    .why-video .yt-facade.no-thumb {
      background:
        radial-gradient(ellipse 60% 70% at 50% 45%, rgba(55,202,236,.28), transparent 70%),
        radial-gradient(ellipse 90% 90% at 80% 100%, rgba(44,104,143,.55), transparent 70%),
        linear-gradient(160deg, #0d2a44 0%, #123a5c 55%, #0a1f33 100%);
    }
    .why-video .yt-facade.no-thumb .yt-thumb { display: none; }
    .why-video .yt-facade.no-thumb::before {
      content: "Video"; position: absolute; left: 0; right: 0; top: calc(50% + 56px); text-align: center;
      font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.8);
    }
    .why-video .yt-facade.no-thumb.preview-note::before { content: "El video se reproducirá aquí en el sitio publicado"; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: var(--fs-small); }
    @media (prefers-reduced-motion: reduce) { .why-video .yt-thumb, .why-video .yt-play { transition: none; } }

    /* ================= Historia de Excel (bajo la primera card del hero) =================
       Es "el enemigo": vive en los grises de la primera card. Solo el cierre toma el degradado de Taskility. */
    .xs { --xs-paper: #E8EBF0; --xs-ink: #172140; --xs-text: #4B5262; --xs-line: rgba(23, 33, 64, .10); --xs-stroke: #B9BFCB;
      width: 100%; max-width: 720px; margin: 0 auto; text-align: left; }
    /* Cabecera alineada bajo la primera card; la línea nace del centro de esa card */
    .xs-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
      width: calc((100% - 14px) / 2); padding-top: 44px; }
    .xs-stem { position: absolute; top: 0; left: 50%; width: 1px; height: 32px; background: linear-gradient(var(--xs-stroke), var(--xs-stroke)) center / 1px 100% no-repeat; }
    .xs-stem::after { content: ""; position: absolute; left: -3px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--xs-stroke); }
    .xs-title { margin: 0; font-size: var(--fs-h5); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: rgb(var(--c-ink)); text-wrap: balance; }
    .xs-btn {
      position: relative; margin-top: 16px; display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
      padding: 14px 18px 14px 14px; border: 1px solid rgba(23, 33, 64, .08); border-radius: 16px; cursor: pointer; text-align: left;
      background: var(--xs-paper); color: var(--xs-ink); font: inherit;
      transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    }
    .xs-btn:hover { background: #DFE3EA; transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(23, 33, 64, .35); }
    .xs-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    /* Respiración discreta en gris (se detiene al abrir) */
    .xs-ring { position: absolute; inset: -5px; border-radius: 21px; border: 1px solid var(--xs-stroke); pointer-events: none; opacity: 0; animation: xs-ring 2.8s ease-out infinite; }
    @keyframes xs-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
    .xs-btn[aria-expanded="true"] .xs-ring { animation: none; }
    /* Ícono de hoja de cálculo, en grises */
    .xs-grid { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px;
      width: 32px; height: 32px; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid rgba(23, 33, 64, .10); }
    .xs-grid i { border-radius: 1.5px; background: #CDD2DB; }
    .xs-grid i:nth-child(-n+3) { background: #9AA1AE; }
    /* Ícono de archivo XLS (genérico, en grises): se muestra a 40 px de alto, desde su resolución original */
    .xs-file { flex: none; display: block; width: auto; height: 40px; }
    .xs-btn-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .xs-btn-top { font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #7A8191; }
    .xs-btn-main { font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; text-wrap: balance; }
    .xs-chev { flex: none; width: 16px; height: 16px; color: #7A8191; transition: transform .3s ease; }
    .xs-btn[aria-expanded="true"] .xs-chev { transform: rotate(180deg); }
    .xs-hint { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: rgb(var(--c-muted)); }

    /* Panel: se despliega con altura natural; una pestaña apunta a la primera card */
    .xs-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1), margin-top .5s ease; }
    .xs-panel.open { grid-template-rows: 1fr; margin-top: 22px; }
    .xs-panel-clip { min-height: 0; overflow: hidden; padding-top: 8px; margin-top: -8px; }
    /* Pestaña: apunta hacia el botón, bajo el centro de la primera card */
    .xs-inner::before { content: ""; position: absolute; top: -7px; left: calc(25% - 7px); width: 13px; height: 13px; transform: rotate(45deg);
      background: var(--xs-paper); border-top: 1px solid rgba(23, 33, 64, .06); border-left: 1px solid rgba(23, 33, 64, .06); border-radius: 2px 0 0 0; }
    .xs-inner { position: relative; padding: clamp(32px, 5vw, 56px) clamp(22px, 6vw, 72px); border-radius: 16px; background: var(--xs-paper);
      border: 1px solid rgba(23, 33, 64, .06); color: var(--xs-text); }
    .xs-panel-title { text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--xs-line); }
    .xs-panel-title h3 { margin: 10px 0 0; font-size: var(--fs-h3); font-weight: 300; line-height: 1.2; letter-spacing: -0.018em; color: var(--xs-ink); text-wrap: balance; }
    .xs-block { padding: 32px 0; border-bottom: 1px solid var(--xs-line); }
    .xs-block:last-of-type { border-bottom: 0; }
    .xs-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #7A8191; }
    .xs-eyebrow::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
    .xs-eyebrow--plain { justify-content: center; }
    .xs-eyebrow--plain::before { display: none; }
    .xs-block p:not(.xs-eyebrow) { margin: 0 0 10px; font-size: var(--fs-body); line-height: 1.65; color: var(--xs-text); }
    .xs-block p:last-child { margin-bottom: 0; }
    .xs-block p.xs-lead:not(.xs-eyebrow) { margin-bottom: 14px; font-size: var(--fs-h4); font-weight: 300; line-height: 1.35; letter-spacing: -0.012em; color: var(--xs-ink); text-wrap: balance; }
    .xs-block p.xs-callout:not(.xs-eyebrow) { color: var(--xs-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--xs-stroke); text-decoration-thickness: 1px; text-underline-offset: 5px; }
    .xs-statement { margin-top: 8px; padding: clamp(36px, 6vw, 56px) clamp(20px, 5vw, 48px); border-radius: 14px; text-align: center; color: #fff;
      background: linear-gradient(160deg, #125488 0%, #2A93D5 30%, #37CAEC 60%, #3DD9D6 85%, #ADD9D8 100%); }
    .xs-statement .xs-eyebrow { color: rgba(255, 255, 255, .85); }
    .xs-statement h3 { margin: 12px 0 0; font-size: var(--fs-h3); font-weight: 300; line-height: 1.25; letter-spacing: -0.018em; color: #fff; text-wrap: balance; }

    /* Distribución bajo las cards: izquierda (gris) → línea → tarjeta de historia · derecha (azul) → título con degradado */
    .xs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
    .xs .xs-head { display: contents; }
    .xs .xs-stem { position: relative; top: auto; left: auto; grid-column: 1; grid-row: 1; justify-self: center; width: 1px; height: 32px;
      background: var(--xs-stroke); border: 0; border-radius: 0; }
    .xs .xs-stem::after { left: -3px; right: auto; bottom: -4px; }
    .xs .xs-btn { grid-column: 1; grid-row: 2; justify-self: center; margin-top: 12px; }
    .xs .xs-hint { grid-column: 1; grid-row: 3; justify-self: stretch; text-align: left; padding-left: 14px; }   /* alineado con el contenido de la tarjeta */
    .xs-side { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; margin-top: 12px; padding: 0 12px; text-align: center; }
    .xs-side .xs-title {
      background: linear-gradient(90deg, #125488 0%, #2A93D5 35%, #37CAEC 70%, #3DD9D6 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .xs .xs-panel { grid-column: 1 / -1; }
    /* Cerrado: nada del panel (ni su borde ni la pestaña) se asoma bajo la tarjeta */
    .xs-panel:not(.open) .xs-panel-clip { padding-top: 0; margin-top: 0; }
    /* Móvil: la línea baja de la card gris hasta la tarjeta (a todo el ancho); el título queda bajo la card azul */
    @media (max-width: 639px) {
      .xs .xs-stem { grid-row: 1; align-self: stretch; height: auto; min-height: 44px; width: 1px; left: auto; border: 0; }
      .xs-side { grid-row: 1; margin-top: 10px; padding: 0 4px; }
      .xs .xs-btn { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; margin-top: 10px; }
      .xs .xs-hint { grid-column: 1 / -1; }
    }
    /* Textos de la historia: introducción, cita, énfasis y cierre (misma escala y paleta) */
    .xs-intro { max-width: 34rem; margin: 14px auto 0; font-size: var(--fs-body); line-height: 1.6; color: var(--xs-text); text-wrap: balance; }
    .xs-scrollhint { margin: 18px 0 0; font-size: 13px; font-weight: 500; color: #7A8191; }
    .xs-block p.xs-quote:not(.xs-eyebrow) { margin: 4px 0 14px; padding: 4px 0 4px 16px; border-left: 2px solid var(--xs-stroke); color: var(--xs-ink); font-style: normal; }
    .xs-strong { font-weight: 600; color: var(--xs-ink); }
    .xs-statement .xs-statement-text { max-width: 36rem; margin: 14px auto 0; font-size: var(--fs-body); line-height: 1.6; color: rgba(255, 255, 255, .9); text-wrap: balance; }
    .xs-statement .xs-signature { margin: 18px 0 0; font-size: var(--fs-small); font-weight: 600; color: #fff; }
    .xs-restart { margin-top: 20px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500;
      background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .2s ease; }
    .xs-restart:hover { background: rgba(255, 255, 255, .26); }
    .xs-restart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
    /* Historia de Excel en modal centrado: capa encima de la página (fondo translúcido, entrada fade + scale, scroll interno) */
    .xs-modal { width: min(880px, calc(100vw - 48px)); max-width: none; max-height: min(88vh, 960px); padding: 0; border: 0; border-radius: 20px;
      background: var(--xs-paper); color: var(--xs-text); box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 40px 100px -30px rgba(10,20,50,.55);
      overflow-y: auto; overscroll-behavior: contain; }
    .xs-modal::backdrop { background: rgba(8, 12, 24, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    .xs-modal[open] { animation: xs-pop .4s cubic-bezier(.2, .8, .2, 1); }
    .xs-modal[open]::backdrop { animation: xs-fade .3s ease; }
    .xs-modal.is-closing { animation: xs-pop-out .22s ease forwards; }
    .xs-modal.is-closing::backdrop { animation: xs-fade-out .22s ease forwards; }
    @keyframes xs-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
    @keyframes xs-pop-out { to { opacity: 0; transform: scale(.97); } }
    @keyframes xs-fade { from { opacity: 0; } }
    @keyframes xs-fade-out { to { opacity: 0; } }
    .xs-modal .xs-inner { border: 0; border-radius: 0; background: transparent; }
    .xs-modal .xs-inner::before { display: none; }
    /* Cerrar: fijo en la esquina superior derecha mientras se lee */
    .xs-modal-x { position: sticky; top: 14px; float: right; z-index: 2; width: 36px; height: 36px; margin: 14px 14px -50px 0;
      border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--xs-ink);
      background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
      box-shadow: 0 1px 2px rgba(16,24,40,.08); transition: background-color .2s ease, transform .2s ease; }
    .xs-modal-x:hover { background: #fff; transform: scale(1.05); }
    .xs-modal-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .xs-modal-x svg { width: 14px; height: 14px; }
    @media (max-width: 639px) { .xs-modal { width: calc(100vw - 24px); max-height: 90vh; border-radius: 16px; } }
    @media (prefers-reduced-motion: reduce) { .xs-modal[open], .xs-modal[open]::backdrop, .xs-modal.is-closing, .xs-modal.is-closing::backdrop { animation: none; } }
    /* ================= Modal editorial (rediseño): capa ligera sobre la página, lectura tipo publicación =================
       Solo tokens existentes del sitio (se adapta a claro/oscuro). Sin divisores: el espacio marca las secciones. */
    .xs-modal {
      --xs-ink: rgb(var(--c-ink)); --xs-text: rgb(var(--c-muted)); --xs-line: var(--line); --xs-stroke: var(--line-strong);
      width: min(720px, calc(100vw - 48px)); max-height: min(86vh, 920px); border-radius: 24px;
      background: rgb(var(--c-surface)); color: var(--xs-text);
      box-shadow: 0 0 0 1px var(--card-border), 0 32px 80px -36px rgba(10, 20, 50, .45);
      scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
    }
    /* Bordes de lectura suaves: el texto entra y sale con un desvanecido (no queda "cortado" por la caja) */
    .xs-modal::before, .xs-modal::after { content: ""; position: sticky; z-index: 1; display: block; pointer-events: none; }
    .xs-modal::before { top: 0; height: 28px; margin-bottom: -28px; background: linear-gradient(rgb(var(--c-surface)), rgb(var(--c-surface) / 0)); }
    .xs-modal::after { bottom: 0; height: 48px; margin-top: -48px; background: linear-gradient(rgb(var(--c-surface) / 0), rgb(var(--c-surface))); }
    .xs-modal::-webkit-scrollbar { width: 10px; }
    .xs-modal::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
    .xs-modal::-webkit-scrollbar-track { background: transparent; margin: 24px 0; }
    .xs-modal::backdrop { background: rgba(8, 12, 24, .32); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
    .xs-modal[open] { animation: xs-pop .45s cubic-bezier(.16, 1, .3, 1); }
    @keyframes xs-pop { from { opacity: 0; transform: translateY(8px) scale(.975); } to { opacity: 1; transform: none; } }
    @keyframes xs-pop-out { to { opacity: 0; transform: translateY(4px) scale(.985); } }

    /* Cerrar: discreto, parte de la composición */
    .xs-modal-x { top: 18px; width: 32px; height: 32px; margin: 18px 18px -50px 0; color: rgb(var(--c-muted));
      background: var(--soft-bg); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .xs-modal-x:hover { background: var(--soft-bg-hover); color: rgb(var(--c-ink)); transform: none; }
    .xs-modal-x svg { width: 12px; height: 12px; }

    /* Columna de lectura: medida editorial (~62 caracteres) */
    .xs-modal .xs-inner { padding: 72px clamp(24px, 9vw, 80px) 56px; }
    .xs-modal .xs-panel-title { text-align: left; padding: 0 0 72px; border: 0; }
    .xs-modal .xs-eyebrow { gap: 10px; margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: rgb(var(--c-muted)); }
    .xs-modal .xs-eyebrow::before { display: none; }
    .xs-modal .xs-eyebrow--plain { justify-content: flex-start; }
    .xs-modal .xs-panel-title h3 { margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; color: rgb(var(--c-ink)); text-wrap: balance; }
    .xs-modal .xs-intro { max-width: 32rem; margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: rgb(var(--c-muted)); text-wrap: pretty; }
    .xs-modal .xs-scrollhint { margin: 28px 0 0; font-size: 13px; color: rgb(var(--c-muted)); opacity: .8; }

    /* Secciones: sin divisores; el número de capítulo y el espacio construyen el ritmo */
    .xs-modal .xs-block { padding: 0 0 64px; border: 0; }
    .xs-modal .xs-block .xs-eyebrow { color: var(--accent); font-size: 13px; font-weight: 300; letter-spacing: .1em; }   /* títulos de capítulo: ligeros y minimalistas */
    .xs-modal .xs-block p:not(.xs-eyebrow) { max-width: 34rem; margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: rgb(var(--c-muted)); }
    .xs-modal .xs-block p.xs-lead:not(.xs-eyebrow) { max-width: 30rem; margin: 0 0 18px; font-size: clamp(24px, 2.8vw, 28px); font-weight: 400; line-height: 1.22; letter-spacing: -0.02em; color: rgb(var(--c-ink)); text-wrap: balance; }
    .xs-modal .xs-block p.xs-callout:not(.xs-eyebrow) { margin-top: 20px; font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: rgb(var(--c-ink)); text-decoration: none; }
    .xs-modal .xs-block p.xs-quote:not(.xs-eyebrow) { margin: 8px 0 16px; padding: 2px 0 2px 18px; border-left: 2px solid var(--accent); font-size: 18px; line-height: 1.5; color: rgb(var(--c-ink)); }
    .xs-modal .xs-strong { color: rgb(var(--c-ink)); }

    /* Cierre: la respuesta (degradado de la card de Taskility), con aire propio */
    .xs-modal .xs-statement { margin-top: 8px; padding: clamp(40px, 6vw, 56px) clamp(24px, 5vw, 48px); border-radius: 20px; text-align: left; }
    .xs-modal .xs-statement .xs-eyebrow { color: rgba(255, 255, 255, .85); }
    .xs-modal .xs-statement h3 { margin: 0; font-size: clamp(26px, 3.2vw, 32px); font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
    .xs-modal .xs-statement .xs-statement-text { margin: 16px 0 0; max-width: 32rem; font-size: 17px; text-wrap: pretty; }
    .xs-modal .xs-statement .xs-signature { margin-top: 22px; }

    @media (max-width: 639px) {
      .xs-modal { width: calc(100vw - 24px); max-height: 90vh; border-radius: 20px; }
      .xs-modal .xs-inner { padding: 64px 22px 40px; }
      .xs-modal .xs-panel-title { padding-bottom: 56px; }
      .xs-modal .xs-block { padding-bottom: 52px; }
      .xs-modal .xs-block p:not(.xs-eyebrow) { font-size: 16px; }
      .xs-modal-x { margin: 14px 14px -46px 0; top: 14px; }
    }
    /* Lectura con principio y fin: barra fija con capítulo, tiempo restante y progreso */
    .xs-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
      min-height: 52px; padding: 10px 14px 10px 22px;
      background: rgb(var(--c-surface) / .86); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
    .xs-bar-step { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; min-width: 0; font-size: 13px; line-height: 1.35; }
    .xs-bar-step #xsStep { font-weight: 600; color: rgb(var(--c-ink)); }
    .xs-bar-left { color: rgb(var(--c-muted)); }
    .xs-bar-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); overflow: hidden; }
    .xs-bar-progress i { display: block; height: 100%; width: 0; background: var(--grad); background-size: 100vw 100%; border-radius: 0 3px 3px 0; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
    .xs-modal .xs-bar .xs-modal-x { position: static; float: none; flex: none; margin: 0; }
    .xs-modal::before { display: none; }                 /* la barra ya separa el texto del borde superior */
    .xs-modal .xs-inner { padding-top: 48px; }
    .xs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
    .xs-meta span { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgb(var(--c-ink)); background: var(--soft-bg); }
    @media (max-width: 639px) { .xs-bar { padding-left: 22px; } .xs-modal .xs-inner { padding-top: 36px; } }
    @media (prefers-reduced-motion: reduce) { .xs-bar-progress i { transition: none; } }
    /* Lectura continua en una columna amplia: cada capítulo se lee de corrido (número → frase → desarrollo),
       con líneas de ~70 caracteres para que no se sienta como leer en el celular */
    @media (min-width: 900px) {
      .xs-modal { width: min(880px, calc(100vw - 64px)); }
      .xs-modal .xs-inner { padding: 44px 88px 56px; }
      .xs-modal .xs-panel-title { padding-bottom: 56px; }
      .xs-modal .xs-block { padding-bottom: 48px; }
      .xs-modal .xs-block p:not(.xs-eyebrow) { max-width: 40rem; margin-bottom: 10px; }
      .xs-modal .xs-block p.xs-lead:not(.xs-eyebrow) { max-width: 36rem; }
      .xs-modal .xs-intro { max-width: 38rem; }
    }
    /* Logo en la barra del modal y frase de duración (sin pill) */
    .xs-bar-logo { display: inline-flex; align-items: center; flex: none; }
    .xs-bar-logo svg { display: block; height: 22px; width: auto; }
    .xs-modal .xs-meta-line { margin: 22px 0 0; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -0.005em; color: rgb(var(--c-ink)); }
    .xs-modal .xs-meta-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
    .xs-meta-time { font-weight: 400; color: rgb(var(--c-muted)); }
    .xs-meta-time::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 0 0; border-radius: 50%; background: currentColor; opacity: .6; vertical-align: middle; }
    /* La solución (último capítulo): toma los colores de Taskility — degradado en etiqueta, frase y remate + línea de marca */
    .xs-modal .xs-block--solution { position: relative; }
    .xs-modal .xs-block--solution::before { content: ""; position: absolute; left: -24px; top: 2px; bottom: 52px; width: 2px; border-radius: 2px;
      background: linear-gradient(180deg, #125488 0%, #2A93D5 30%, #37CAEC 60%, #3DD9D6 85%, #ADD9D8 100%); }
    .xs-modal .xs-block--solution .xs-eyebrow,
    .xs-modal .xs-block--solution p.xs-lead:not(.xs-eyebrow),
    .xs-modal .xs-block--solution p.xs-callout:not(.xs-eyebrow) {
      background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content;
    }
    .xs-modal .xs-block--solution .xs-eyebrow { font-weight: 600; }
    .xs-modal .xs-block--solution p.xs-callout:not(.xs-eyebrow) { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
    .xs-modal .xs-block--solution .xs-block-body p:not(.xs-callout):not(.xs-eyebrow) { color: rgb(var(--c-ink)); }
    @media (max-width: 639px) { .xs-modal .xs-block--solution::before { left: -12px; } }
    /* Eje compartido: el logo de la barra arranca donde arranca el texto del artículo */
    .xs-modal { --xs-gutter: clamp(24px, 9vw, 80px); }
    @media (max-width: 639px) { .xs-modal { --xs-gutter: 22px; } }
    @media (min-width: 900px) { .xs-modal { --xs-gutter: 88px; } }
    .xs-modal .xs-inner { padding-left: var(--xs-gutter); padding-right: var(--xs-gutter); }
    .xs-modal .xs-bar { padding-left: var(--xs-gutter); }

    /* Cerrar flotante (solo con la historia abierta) */
    .xs-close { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: none; align-items: center; gap: 8px;
      padding: 12px 18px; border: 1px solid rgba(23, 33, 64, .08); border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500;
      background: rgba(232, 235, 240, .92); color: #172140; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
      box-shadow: 0 12px 28px -14px rgba(23, 33, 64, .45); transition: background-color .2s ease, transform .2s ease; }
    .xs-close svg { width: 14px; height: 14px; }
    .xs-close:hover { background: #DFE3EA; transform: translateY(-1px); }
    .xs-close.visible { display: inline-flex; }

    /* Móvil: la cabecera ocupa todo el ancho; la línea sale del centro de la primera card y dobla hacia el botón */
    @media (max-width: 639px) {
      .xs-head { width: 100%; padding-top: 52px; }
      .xs-stem { left: calc(25% - 3px); width: 25%; height: 26px; background: none; border-left: 1px solid var(--xs-stroke); border-bottom: 1px solid var(--xs-stroke); border-bottom-left-radius: 12px; }
      .xs-stem::after { left: auto; right: -4px; bottom: -4px; }
      .xs-close { right: 16px; bottom: 16px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .xs-ring { animation: none; display: none; }
      .xs-panel, .xs-chev, .xs-btn { transition: none; }
    }
    /* ================= Cookies: aviso mínimo (cápsula de una línea), preferencias y aviso ================= */
    .ck-banner { position: fixed; left: 50%; bottom: 16px; z-index: 90; translate: -50% 0; display: flex; align-items: center; gap: 14px;
      width: max-content; max-width: calc(100vw - 24px); padding: 6px 6px 6px 18px; border-radius: 999px;
      border: 1px solid var(--card-border); background: rgb(var(--c-surface) / .82);
      -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
      box-shadow: 0 8px 24px -16px rgba(23, 33, 64, .35); color: rgb(var(--c-ink));
      animation: ck-in .4s cubic-bezier(.2, .8, .2, 1) .15s both; }
    .ck-banner[hidden] { display: none; }
    @keyframes ck-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
    .ck-text { margin: 0; font-size: 13px; line-height: 1.4; color: rgb(var(--c-muted)); }
    .ck-link { color: rgb(var(--c-ink)); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
    .ck-link:hover { text-decoration-color: currentColor; }
    .ck-actions { display: flex; flex: none; align-items: center; gap: 6px; }
    .ck-config { padding: 0 8px; font-size: 13px; color: rgb(var(--c-muted)); text-decoration: none; }
    .ck-config:hover { color: rgb(var(--c-ink)); }
    body .ck-actions .btn-soft { min-height: 30px; padding: 6px 14px; font-size: 13px; }
    /* Preferencias: la cápsula se abre en una tarjeta compacta solo si se pide */
    .ck-banner.is-prefs { flex-direction: column; align-items: stretch; gap: 0; width: min(380px, calc(100vw - 24px)); padding: 16px; border-radius: 18px; }
    .ck-banner.is-prefs .ck-actions { justify-content: flex-end; margin-top: 12px; }
    .ck-prefs { margin-top: 8px; border-top: 1px solid var(--line); }
    .ck-prefs[hidden] { display: none; }
    .ck-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .ck-opt-name { display: block; font-size: 13px; font-weight: 500; line-height: 1.4; color: rgb(var(--c-ink)); }
    .ck-opt-desc { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: rgb(var(--c-muted)); }
    .ck-always { flex: none; font-size: 12px; color: rgb(var(--c-muted)); padding-top: 1px; }
    .ck-switch { position: relative; flex: none; width: 36px; height: 22px; }
    .ck-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
    .ck-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--soft-bg-hover); transition: background-color .2s ease; pointer-events: none; }
    .ck-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s ease; }
    .ck-switch input:checked + span { background: #0C34FA; }
    .ck-switch input:checked + span::after { transform: translateX(14px); }
    .ck-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
    /* Móvil: misma cápsula, en dos líneas cortas */
    @media (max-width: 639px) {
      .ck-banner:not(.is-prefs) { left: 12px; right: 12px; translate: none; width: auto; flex-wrap: wrap; gap: 8px 10px; padding: 10px 10px 10px 14px; border-radius: 16px; }
      .ck-banner:not(.is-prefs) .ck-text { flex: 1 1 100%; }
      .ck-banner:not(.is-prefs) .ck-actions { margin-left: auto; }
      .ck-banner.is-prefs { left: 12px; right: 12px; translate: none; width: auto; }
    }
    @media (prefers-reduced-motion: reduce) { .ck-banner { animation: none; } .ck-switch span, .ck-switch span::after { transition: none; } }    /* Consentimiento por región: México (tácito, solo aviso + oposición) · resto (expreso: aceptar / rechazar) */
    .ck-banner[data-mode="mx"] .ck-optin, .ck-banner[data-mode="optin"] .ck-mx { display: none; }
    .ck-msg-done { display: none; }
    .ck-banner[data-mode="mx"] .ck-msg-optin, .ck-banner[data-mode="optin"] .ck-msg-mx { display: none; }
    .ck-banner.is-done .ck-msg-mx, .ck-banner.is-done .ck-msg-optin { display: none; }
    .ck-banner.is-done .ck-msg-done { display: inline; }
    .ck-banner.is-done .ck-actions > :not(#ckDismiss) { display: none; }
    .ck-banner.is-prefs .ck-mx, .ck-banner.is-prefs .ck-optin { display: none; }
    .ck-banner.is-prefs #ckConfig { display: inline-flex; }
    /* Entendido: acción principal del aviso (azul de marca), junto a la opción de desactivar con el mismo tamaño */
    body .ck-actions .ck-understood { min-height: 30px; padding: 6px 16px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer; }
    .ck-x { flex: none; width: 30px; height: 30px; margin-left: 2px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; background: transparent; color: rgb(var(--c-muted)); transition: background-color .2s ease, color .2s ease; }
    .ck-x:hover { background: var(--soft-bg); color: rgb(var(--c-ink)); }
    .ck-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .ck-x svg { width: 13px; height: 13px; }
    .ck-banner[data-mode="mx"] .ck-text { max-width: 520px; }
    @media (max-width: 639px) { .ck-banner.is-done .ck-actions { margin-left: auto; } }    /* Aviso de cookies (ventana) */
    .ck-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(84vh, 900px); padding: 0; border: 1px solid var(--card-border); border-radius: 20px;
      background: rgb(var(--c-surface)); color: rgb(var(--c-ink)); box-shadow: 0 40px 80px -30px rgba(10, 20, 50, .45); }
    .ck-dialog::backdrop { background: rgba(10, 16, 30, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    .ck-dialog-in { padding: clamp(24px, 4vw, 40px); }
    .ck-dialog-close { position: sticky; top: 0; float: right; width: 36px; height: 36px; margin: -8px -8px 0 0; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
      background: var(--soft-bg); color: rgb(var(--c-ink)); }
    .ck-dialog-close:hover { background: var(--soft-bg-hover); }
    .ck-dialog-close svg { width: 14px; height: 14px; }
    .ck-dialog h2 { margin: 0 0 6px; font-size: var(--fs-h3); font-weight: 300; line-height: 1.2; letter-spacing: -0.018em; }
    .ck-dialog h3 { margin: 28px 0 8px; font-size: var(--fs-h5); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
    .ck-dialog p, .ck-dialog li { font-size: var(--fs-body); line-height: 1.6; color: rgb(var(--c-muted)); }
    .ck-dialog p { margin: 0 0 10px; }
    .ck-dialog ul { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
    .ck-dialog a { color: rgb(var(--c-ink)); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
    .ck-updated { font-size: 13px !important; }
    .ck-table { width: 100%; margin: 8px 0 12px; border-collapse: collapse; font-size: var(--fs-small); }
    .ck-table th, .ck-table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
    .ck-table th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c-muted)); }
    .ck-table td { color: rgb(var(--c-muted)); }
    .ck-table td:first-child { color: rgb(var(--c-ink)); font-weight: 500; }
    @media (max-width: 639px) { .ck-table, .ck-table tbody, .ck-table tr, .ck-table td { display: block; } .ck-table thead { display: none; } .ck-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); } .ck-table td { border: 0; padding: 2px 0; } }
    /* Enlaces legales del footer */
    .footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12px; line-height: 1.6; }
    .footer-legal a, .footer-legal button { color: rgba(255, 255, 255, .75); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
    .footer-legal a:hover, .footer-legal button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
    @media (min-width: 768px) { .footer-legal { justify-content: flex-end; } }

/* Ventanas (<dialog>) centradas como en el navegador: el Tailwind v4 de la app pone margin:0 a todo.
   :where() no suma especificidad, así que cualquier regla propia de una ventana sigue mandando. */
:where(dialog:modal) { margin: auto; }

/* Historia de Excel: frase de entrada de una sección, en ligera y del tamaño del texto (no como frase destacada) */
.xs-block p.xs-lead.xs-lead--soft:not(.xs-eyebrow) { margin-bottom: 14px; font-size: var(--fs-body); font-weight: 300; line-height: 1.6; letter-spacing: 0; color: var(--xs-text); }

/* Historia de Excel (desplegable): bajo la primera card, en columna y centrado —
   línea → "Taskility empieza donde Excel deja de ser suficiente" → botón → "Ábrelo…" */
.xs .xs-title { grid-column: 1; grid-row: 2; justify-self: center; margin-top: 14px; text-align: center; }
.xs .xs-btn { grid-row: 3; }
.xs .xs-hint { grid-row: 4; justify-self: center; text-align: center; padding-left: 0; }
@media (max-width: 639px) { .xs .xs-title { grid-column: 1 / -1; } }
