/* Estilos propios de la landing "agente-documental" (convertidos desde agente-documental.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;
      --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;
      --soft-bg-active: #DCDBD7;
      --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;
      --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;
      --soft-bg-active: rgba(255,255,255,0.2);
      --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;
      --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;
      --soft-bg-active: rgba(255,255,255,0.2);
      --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; }
    /* Zoom uniforme hacia la ventana de Gmail: recorta solo el fondo decorativo, nunca deforma */
    :root { --media-zoom: 1.2; }
    .doc-media-frame { overflow: hidden; border-radius: 12px; border: 1px solid var(--card-border); }
    .doc-media-mobile { display: block; width: 100%; height: auto; transform: scale(var(--media-zoom)); transform-origin: var(--media-origin, 50% 52%); }

    /* Desktop: comportamiento sticky-scroll.
       El texto siempre es nítido y estable (sin opacidad ni desplazamiento ligados al scroll);
       el paso activo se señala solo con una línea fina a la izquierda. */
    @media (min-width: 768px) {
      /* Un paso a la vez: cada paso ocupa el área visible bajo el header (el avance paso a paso lo controla el script) */
      .doc-step {
        position: relative;
        min-height: calc(100vh - var(--header-h));
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 0 0 24px;
      }
      .doc-step::before {
        content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 56px; border-radius: 2px;
        background: var(--accent); transform: translateY(-50%) scaleY(0); transition: transform .35s ease;
      }
      .doc-step.active::before { transform: translateY(-50%) scaleY(1); }
      /* Cada paso es tocable: lleva su texto al centro, frente a su tarjeta */
      .doc-step { cursor: pointer; outline: none; }
      .doc-step:not(.active):hover::before { transform: translateY(-50%) scaleY(.45); opacity: .5; }
      .doc-step:focus-visible { box-shadow: -2px 0 0 0 var(--accent); }
      /* La tarjeta se fija centrada en el área visible: queda a la misma altura que el paso activo */
      .doc-visual { top: max(calc(var(--header-h) + 16px), calc(50vh + var(--header-h) / 2 - var(--doc-card-h, 396px) / 2)); }
      /* La tarjeta toma la proporción original de la imagen (1672 × 941): nada se recorta ni se deforma */
      .doc-card { position: relative; aspect-ratio: 1672 / 941; min-height: 272px; }
      .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; }
      /* Paso con imagen: la tarjeta tiene su misma proporción, así que se ve completa y sin deformarse */
      .doc-panel--media { padding: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(180deg, #F4F9FF, #EAF5FE); }
      .doc-panel--media img { width: 100%; height: 100%; object-fit: contain; display: block; transform: scale(var(--media-zoom)); transform-origin: var(--media-origin, 50% 52%); }
    }

    @media (prefers-reduced-motion: reduce) {
      .card, .card::before, .doc-step, .doc-panel, #content-display { transition: none !important; }
    }
    /* Editorial grid: headline grande, divisor sutil y 3 columnas separadas por líneas verticales */
    .egrid { padding: 64px 0; }
    .egrid-title { max-width: 100%; }
    .egrid-cols { margin-top: 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; }
    .egrid-item { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 28px 0; color: inherit; text-decoration: none; }
    .egrid-item + .egrid-item { border-top: 1px solid var(--line); }
    .egrid-icon {
      flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
      background: var(--soft-bg); color: rgb(var(--c-ink));
    }
    .egrid-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
    /* Iconos de apoyo, no protagonistas: del alto de una línea del título y alineados con ella */
    .egrid-icon--img { background: transparent; width: 22px; height: 22px; margin-top: 1px; }
    .egrid-icon--img img { width: 22px; height: 22px; object-fit: contain; display: block; }
    .egrid-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
    .egrid-item-title { font-size: var(--fs-h5); line-height: 1.4; font-weight: 400; letter-spacing: -.01em; color: rgb(var(--c-ink)); }
    .egrid-item-desc { font-size: var(--fs-small); line-height: 1.6; color: rgb(var(--c-muted)); }
    @media (min-width: 768px) {
      .egrid { padding: 96px 0; }
      .egrid-title { max-width: 72%; }
      .egrid-cols { margin-top: 56px; grid-template-columns: repeat(3, 1fr); }
      .egrid-item { padding: 36px 32px 40px 32px; }
      .egrid-item:first-child { padding-left: 0; }
      .egrid-item + .egrid-item { border-top: 0; border-left: 1px solid var(--line); }
      .egrid-item:last-child { padding-right: 0; }
    }

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

    /* 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); }
    /* Botones de área con el botón gris del sitio; el activo, en un gris más profundo */
    .glow-section .dept-pill.btn-soft { color: var(--soft-fg); background: var(--soft-bg); border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .glow-section .dept-pill.btn-soft:hover { background: var(--soft-bg-hover); }
    /* Espacio reservado para el video demo (16:9) */
    .video-slot {
      width: 100%; max-width: 880px; aspect-ratio: 16 / 9; border-radius: 16px;
      border: 1px solid var(--card-border); background: var(--card-bg); box-shadow: var(--card-shadow);
      overflow: hidden; position: relative;
    }
    /* ===== Ambient Mode (tipo YouTube) ===== */
    .ambient { position: relative; width: 100%; max-width: 880px; isolation: isolate; }
    .ambient .video-slot { max-width: none; }
    .ambient-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
    .ambient.has-video .video-slot { border-color: transparent; background: #000; }
    .ambient.has-video .video-slot-inner { display: none; }
    /* Copia ampliada y muy desenfocada del propio video, detrás del reproductor */
    .ambient-glow {
      position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none;
      opacity: 0; transition: opacity 1.2s ease;
      /* Se desvanece progresivamente hacia afuera hasta fundirse con la página */
      -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%);
    }
    .ambient.is-lit .ambient-glow { opacity: var(--ambient-strength, .5); }
    .ambient-canvas {
      position: absolute; inset: 12% 9%; width: 82%; height: 76%;
      filter: blur(56px) saturate(1.35); transform: scale(1.12);
      opacity: 0; transition: opacity 1.4s ease;
    }
    .ambient-canvas.is-front { opacity: 1; }
    :root { --ambient-strength: .45; }
    @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ambient-strength: .7; } }
    :root[data-theme="dark"] { --ambient-strength: .7; }
    @media (prefers-reduced-motion: reduce) { .ambient-canvas { transition-duration: 2.4s; } }
    section:has(> .ambient) { overflow-x: clip; }

    .video-slot-inner {
      position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
      background: radial-gradient(ellipse 70% 70% at 50% 50%, var(--glow-2), transparent 70%);
    }
    .video-play {
      width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center;
      background: var(--soft-bg); color: var(--soft-fg);
    }
    .video-play svg { width: 26px; height: 26px; margin-left: 3px; }
    .video-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c-muted)); }
    /* YouTube: portada propia con botón de play; al dar clic se carga el reproductor en el mismo espacio */
    .yt-facade { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
    .yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s ease; }
    .yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.28), transparent 45%); pointer-events: none; }
    .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;
    }
    .yt-play svg { width: 28px; height: 28px; margin-left: 4px; }
    .yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: scale(1.06); background: rgba(12,52,250,.85); }
    .yt-facade:hover .yt-thumb { transform: scale(1.015); }
    .yt-facade:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    /* Portada propia cuando la de YouTube no está disponible: azul de marca profundo con luz suave */
    .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%);
    }
    .yt-facade.no-thumb .yt-thumb { display: none; }
    .yt-facade.no-thumb::before {
      content: "Video demo"; position: absolute; left: 0; right: 0; top: calc(50% + 56px); text-align: center;
      font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8);
    }
    .yt-facade.no-thumb.preview-note::before { content: "El video se reproducirá aquí en el sitio publicado"; letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 14px; }
    .yt-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #000; }
    /* El resplandor ambiental usa la portada cuando el video es de YouTube */
    .ambient-img { position: absolute; inset: 12% 9%; width: 82%; height: 76%; object-fit: cover; filter: blur(56px) saturate(1.35); transform: scale(1.12); }
    @media (prefers-reduced-motion: reduce) { .yt-thumb, .yt-play { transition: none; } }

    /* "Haz que la documentación fluya sola": sin halo azul de fondo */
    section[aria-labelledby="areas-title"].glow-section::before { display: none; }
    .glow-section .dept-pill.btn-soft.active { color: var(--soft-fg); background: var(--soft-bg-active); box-shadow: inset 0 0 0 1px rgba(23,33,64,0.10); }

    /* "Haz que la documentación fluya sola": cuadrícula editorial de 3 tiempos (sin cajas, estilo Apple) */
    .flow-grid { display: grid; grid-template-columns: 1fr; row-gap: 48px; }
    .flow-col { position: relative; display: flex; flex-direction: column; }
    /* Transición al cambiar de área: el contenido sale hacia arriba y el nuevo entra desde abajo, en cascada */
    .flow-swap {
      transition: opacity .55s ease, transform .7s cubic-bezier(.16,1,.3,1), filter .55s ease;
    }
    .flow-col:nth-child(2) .flow-swap { transition-delay: .1s; }
    .flow-col:nth-child(3) .flow-swap { transition-delay: .2s; }
    .flow-grid.is-leaving .flow-swap { opacity: 0; transform: translateY(-10px); filter: blur(4px); transition-duration: .22s; transition-delay: 0s; }
    .flow-grid.is-entering .flow-swap { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: none; }

    .flow-rule { height: 1px; margin-bottom: 28px; background: var(--line); }
    .flow-col--ai .flow-rule { background: var(--grad); transform-origin: left center; }
    .flow-grid.is-drawing .flow-col--ai .flow-rule { animation: flowDraw 1.1s cubic-bezier(.16,1,.3,1) .2s both; }
    @keyframes flowDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .flow-grid.await-view .flow-col--ai .flow-rule { transform: scaleX(0); }

    /* Etiquetas discretas: gris más claro y peso regular */
    .flow-label { margin-bottom: 12px; font-size: var(--fs-small); line-height: 1.5; font-weight: 400; color: rgb(var(--c-muted) / .65); }
    .flow-col--ai .flow-label { font-weight: 600; }
    .flow-text { text-wrap: pretty; }
    .flow-text--muted { color: rgb(var(--c-muted)); }

    @media (min-width: 768px) {
      .flow-grid { grid-template-columns: repeat(3, 1fr); column-gap: 0; min-height: 200px; align-content: start; }
      .flow-col { padding-right: 48px; }
      .flow-col:last-child { padding-right: 0; }
      /* La línea es continua entre columnas: se lee como una sola progresión */
      .flow-col:not(:last-child) .flow-rule { margin-right: -48px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .flow-swap, .flow-grid.is-leaving .flow-swap, .flow-grid.is-entering .flow-swap { transform: none; filter: none; }
      .flow-grid.is-drawing .flow-col--ai .flow-rule { animation: none; }
      .flow-grid.await-view .flow-col--ai .flow-rule { transform: none; }
    }
    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); }
    /* ================= 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; }
    }
    /* ================= 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; }
