/* Estilos propios de la landing "agentes-ia" (convertidos desde agentes-ia.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);
      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; } }

    /* 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; }
    .ops-map .stage.in .roads { animation: map-fade 1.2s ease backwards; }
    .ops-map .stage.in .b { animation: map-rise 1.1s var(--ease) backwards; animation-delay: var(--d); }
    .ops-map .stage.in .route { animation: map-draw 1.4s var(--ease) backwards; animation-delay: var(--d); }
    .ops-map .stage.in .flow { animation-name: map-fade, map-flow; animation-duration: 1s, 2.4s; animation-timing-function: ease, linear;
      animation-iteration-count: 1, infinite; animation-fill-mode: backwards, none; animation-delay: calc(var(--d) + 1.2s), 0s; }
    .ops-map .stage.in .turn { animation: map-fade 1s ease backwards; animation-delay: calc(var(--d) + 1s); }
    .ops-map .stage.in .st { animation: map-pop .8s var(--ease) backwards; animation-delay: var(--d); }
    .ops-map .stage.in .label { animation: map-fadeUp 1s var(--ease) backwards; animation-delay: var(--d); }
    .ops-map .stage.in .core { animation: map-fadeUpCore 1s var(--ease) backwards; animation-delay: .9s; }
    @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: 1280px) {
      .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 */
    .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…": la captura nace desde la línea divisoria inferior de la sección.
       Arriba se alinea con el título; abajo no hay margen, padding ni radio (esquinas inferiores rectas). */
    .gestion-section { overflow: hidden; }
    /* Apilada (< 1280 px): nunca más ancha que la mitad de su resolución nativa (1672 / 2) para seguir nítida en Retina */
    .gestion-media { position: relative; margin-bottom: 0; padding-bottom: 0; max-width: 836px; }
    @media (min-width: 1280px) { .gestion-media { max-width: none; } }
    .gestion-product {
      display: block; width: 100%; height: auto;
      border-radius: 12px 12px 0 0;
      border: 1px solid var(--card-border); border-bottom: 0;
      will-change: transform;
    }
    @media (min-width: 1280px) {
      /* La altura la define el texto: la imagen ocupa de la parte alta del título hasta la línea divisoria.
         object-fit: cover a resolución nativa (sin reescalar el archivo); se recorta desde abajo, nunca se deforma. */
      .gestion-media { min-height: 0; }
      .gestion-product { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center top; }
    }
    @media (max-width: 767px) { .gestion-product { border-radius: 10px 10px 0 0; } }
    @media (prefers-reduced-motion: reduce) { .gestion-product { transform: none !important; } }
    /* Sello de seguridad (CSA STAR): visual de apoyo, a resolución 2x de su tamaño en pantalla */
    .security-badge { display: block; width: 176px; height: auto; justify-self: start; }
    @media (min-width: 1024px) { .security-badge { width: 200px; justify-self: end; } }
    /* Enlaces discretos: solo indican que hay más información disponible */
    .quiet-links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 8px; }
    .quiet-links a {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: var(--fs-small); line-height: 1.5; color: rgb(var(--c-muted) / .75); text-decoration: none;
      transition: color .2s ease;
    }
    .quiet-links a:hover, .quiet-links a:focus-visible { color: var(--accent); }
    .quiet-links svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
    /* ================= 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; } }
    /* ================= Sección "Agentes a la medida": siempre en modo oscuro =================
       Redefine los tokens del tema solo dentro de la sección, así todo lo que contiene
       (tipografía, botones, degradado) toma su versión oscura sin importar el tema elegido. */
    .dark-zone {
      --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-border: rgba(130,170,240,0.14); --line-strong: rgba(130,170,240,0.25);
      --grad: linear-gradient(90deg, #6cc4f5 0%, #37CAEC 45%, #7fe3e0 75%, #c9ecec 100%);
      --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);
      color-scheme: dark; position: relative; isolation: isolate; overflow: hidden;
      background: rgb(4 8 20); color: rgb(var(--c-ink));
    }
    .dark-zone::before {
      content: ""; position: absolute; z-index: -1; left: -10%; top: -30%; width: 70%; height: 90%;
      background: radial-gradient(closest-side, rgba(42,147,213,.16), rgba(42,147,213,0)); filter: blur(40px); pointer-events: none;
    }
    .custom-form-card { border: 1px solid var(--card-border); border-radius: 16px; padding: clamp(24px, 4vw, 40px);
      background: rgba(255,255,255,.025); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
    .cf-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; color: rgb(var(--c-ink)); }
    .cf-field {
      width: 100%; border-radius: 12px; border: 1px solid rgba(130,170,240,.18); background: rgba(255,255,255,.04);
      padding: 12px 16px; font: inherit; font-size: 14px; line-height: 1.5; color: rgb(var(--c-ink)); outline: none;
      transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    }
    .cf-field::placeholder { color: rgb(var(--c-muted) / .75); }
    .cf-field:hover { border-color: rgba(130,170,240,.28); }
    .cf-field:focus { border-color: rgba(55,202,236,.6); box-shadow: 0 0 0 3px var(--accent-ring); background: rgba(255,255,255,.06); }
    .cf-field:-webkit-autofill { -webkit-text-fill-color: rgb(var(--c-ink)); box-shadow: 0 0 0 1000px rgb(14 22 42) inset; }
    .cf-area { resize: none; }
    .cf-select { position: relative; }
    .cf-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
    .cf-select select:invalid { color: rgb(var(--c-muted) / .75); }
    .cf-select select option { color: #E7EDF8; background: #0B1326; }
    .cf-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
      border-right: 1.5px solid rgb(var(--c-muted)); border-bottom: 1.5px solid rgb(var(--c-muted)); transform: rotate(45deg); pointer-events: none; }
    .cf-field.is-error { border-color: rgba(239,100,97,.7); }
    .cf-submit { width: 100%; justify-content: center; height: 48px; }
    .cf-status { text-align: center; font-size: 14px; line-height: 1.5; color: #f5c46b; }
    /* Hero: subtítulo en dos líneas de largo parejo */
    .agents-lead { max-width: 52rem; text-wrap: balance; }

    /* ================= Agentes: retícula horizontal continua (tipo celdas) =================
       5 módulos unidos, sin separación: una sola retícula con divisiones finas. El ancho de cada módulo se calcula
       para que en pantalla se vean 2 completos y una parte del tercero. Cada módulo tiene 2 celdas: visual + contenido. */
    #agentes-rail { padding-block: clamp(64px, 8vw, 96px); }
    .rail-wrap {
      position: relative; container-type: inline-size;
      --rail-inset: max(var(--gutter), calc((100cqw - var(--page-max)) / 2));
      --cell-w: clamp(272px, calc((100cqw - var(--rail-inset)) / 2.45), 620px);
      --cell-pad: clamp(24px, 2.6vw, 36px);
    }
    .rail-scroller {
      overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--rail-inset); padding-inline: var(--rail-inset);
      scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .rail-scroller::-webkit-scrollbar { display: none; }
    .rail-scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    .rail-track { display: flex; width: max-content; border-block: 1px solid var(--line); }
    .rail-card {
      flex: 0 0 var(--cell-w); width: var(--cell-w); margin: 0; scroll-snap-align: start;
      display: flex; flex-direction: column; border-left: 1px solid var(--line);
    }
    .rail-track { border-right: 1px solid var(--line); }   /* cierre de la retícula sin alterar el ancho del último módulo */
    /* Celda superior: vitrina del feature, misma proporción en todos los módulos */
    .rail-media {
      aspect-ratio: 3 / 2; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
      padding: var(--cell-pad); border-bottom: 1px solid var(--line); background: rgb(var(--c-ink) / .02);
    }
    .rail-media img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
    /* Celda inferior: mismo padding y mismo ritmo vertical en todos los módulos */
    .rail-body { flex: 1; padding: var(--cell-pad); display: flex; flex-direction: column; gap: 12px; min-height: 168px; }
    .rail-title { margin: 0; font-size: var(--fs-h4, 22px); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; color: rgb(var(--c-ink)); }
    .rail-desc { margin: 0; font-size: var(--fs-body, 16px); line-height: 1.5; color: rgb(var(--c-muted)); max-width: 40ch; }

    /* Flechas a media altura de la celda visual, sobre los bordes de la retícula */
    .rail-nav[hidden] { display: none; }
    .rail-arrow {
      position: absolute; top: calc(var(--cell-w) / 3); z-index: 2; translate: 0 -50%;
      width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
      border: 1px solid var(--card-border); cursor: pointer; color: rgb(var(--c-ink));
      background: rgb(var(--c-surface) / .82);
      -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
      box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 10px 24px -12px rgba(16,40,90,.35);
      transition: opacity .25s ease, transform .15s ease, background-color .2s ease;
    }
    .rail-arrow[data-dir="-1"] { left: calc(var(--rail-inset) - 22px); }
    .rail-arrow[data-dir="1"] { right: calc(var(--rail-inset) - 22px); }
    .rail-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .rail-arrow:hover { background: rgb(var(--c-surface)); transform: scale(1.06); }
    .rail-arrow:active { transform: scale(.95); }
    .rail-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .rail-arrow:disabled { opacity: 0; pointer-events: none; }
    @media (hover: none) { .rail-nav { display: none; } }
    /* Encabezado e indicador de posición de la retícula */
    .rail-head { margin-bottom: clamp(32px, 4vw, 48px); }
    .rail-foot { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
    .rail-foot[hidden] { display: none; }
    .rail-count { flex: none; font-size: 13px; line-height: 1; letter-spacing: .04em; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
    .rail-count-now { color: rgb(var(--c-ink)); }
    .rail-progress { position: relative; flex: 1; max-width: 240px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
    .rail-progress-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: inherit; background: rgb(var(--c-ink) / .7);
      transform: translateX(var(--rail-x, 0%)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), width .3s ease; }
    @media (prefers-reduced-motion: reduce) { .rail-progress-bar { transition: none; } }
    /* 8) La flecha izquierda vive en el margen exterior, sin tapar la primera vitrina */
    .rail-arrow[data-dir="-1"] { left: max(8px, calc(var(--rail-inset) - 52px)); }
    /* 5) Móvil: el segundo módulo asoma más (≈35 %) para invitar a deslizar */
    @media (max-width: 639px) { .rail-wrap { --cell-w: calc((100cqw - var(--rail-inset)) / 1.35); } }
    /* 10) Desplazamiento libre que se acomoda suavemente al módulo más cercano */
    .rail-scroller { scroll-snap-type: x proximity; }
    /* Hero: indicador de confianza CSA STAR. Sin contenedor: un logotipo pequeño y una línea de texto discreta */
    .trust-pill {
      display: flex; width: fit-content; align-items: center; gap: 12px; margin: 0 auto 32px;
      color: rgb(var(--c-ink)); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: .01em; white-space: nowrap;
    }
    a.trust-pill { text-decoration: none; border-radius: 999px; transition: opacity .2s ease; }
    a.trust-pill:hover { opacity: .72; }
    a.trust-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
    .trust-pill-logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
    .trust-pill-logo:not([src]) { visibility: hidden; }    /* Título "Conoce a cada [agente] agente": el personaje vive dentro de la línea, a la altura del texto */
    .rail-title-agent ai-agent { display: inline-block; width: 1.5em; vertical-align: -0.38em; margin: 0 .06em; }
    /* CTA bajo la retícula de agentes: centrado, con aire, una sola acción principal */
    .rail-cta { margin-top: clamp(72px, 9vw, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; }
    .rail-cta .t-sub { margin-top: 12px; max-width: 34rem; }
    .rail-cta-btn {
      display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 28px; margin-top: 32px; border-radius: 999px;
      font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
      transition: filter .15s ease, transform .1s ease;
    }
    .rail-cta-btn:hover { filter: brightness(1.15); }
    .rail-cta-btn:active { transform: scale(.97); }
    .rail-cta-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

    /* Celdas con contenido final: nombre del agente (etiqueta) → titular → descripción */
    .rail-body { gap: 0; min-height: 0; }
    .rail-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
    .rail-body .rail-title { margin: 0 0 12px; }
    .rail-body .rail-desc { max-width: 46ch; }

    /* Tipografía de las celdas (escala afinada)
       Etiqueta 11 px / 600 / +0.1em → Titular 24·22·20 px / 400 / -0.015em → Descripción 16·15 px / 400 / 1.6
       El titular sube a regular (400) para sostener descripciones largas; la etiqueta baja un punto para no competir. */
    .rail-eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .1em; }
    .rail-body .rail-title { margin: 0 0 14px; font-size: 24px; font-weight: 400; line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; }
    .rail-body .rail-desc { font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: 0; max-width: 44ch; text-wrap: pretty; }
    @media (max-width: 1023px) { .rail-body .rail-title { font-size: 22px; } }
    @media (max-width: 639px) {
      .rail-body .rail-title { font-size: 20px; line-height: 1.25; margin-bottom: 12px; }
      .rail-body .rail-desc { font-size: 15px; line-height: 1.55; }
    }
    /* Vitrina con imagen: la pieza llena la celda de borde a borde (recorte "cover" que conserva completa la pantalla del producto) */
    .rail-media--img { padding: 0; background: #accdfe; }
    .rail-media--img img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center; }
    /* 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; }
    }
    /* ================= 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; } }

/* Formulario "Agentes a la medida": estado de envío */
.cf-submit.is-loading { cursor: progress; opacity: .85; }
.cf-submit:disabled { pointer-events: none; }
.cf-spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: cf-spin .7s linear infinite;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cf-spinner { animation-duration: 1.6s; } }

/* 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; }
