/* ============================================================================
   talk2doc — landing pública (/)
   ============================================================================

   PROCEDENCIA. La base de este fichero es el sistema visual del prototipo
   `docs/talk2doc Web App (offline).html`, pasado por un acotador que prefija
   CADA selector con `body:has(.t2d-landing)`.

   POR QUÉ ESE PREFIJO, Y POR QUÉ NO SE PUEDE QUITAR. `index.html` y
   `drive.html` extienden el MISMO `base.html`. Este fichero solo lo carga
   `index.html`, pero se carga DESPUÉS de `pibico.css` y `collab.css`, y el
   CSS del prototipo trae reglas de elemento desnudo (`html`, `body`, `*`,
   `a`, `h1`-`h4`, `button`) y redefine clases compartidas (`.app-header`,
   `.app-footer`, `.app-main`, `.field`, `.avatar-btn`). Sin el prefijo, la
   landing quedaría bien y cualquier otra cosa que use esas clases, no.

   QUÉ SE DESCARTÓ DEL PROTOTIPO, A PROPÓSITO:
   · `.slide-panel` / `.panel-backdrop` — el prototipo los da con
     `z-index:201`. En producción son 1500 porque `.app-header` es 1400;
     adoptarlo metería los paneles DEBAJO de la navbar. Los aporta
     `collab.css`, que también carga aquí.
   · `.pibico-badge-*` y `.thin-scroll` — ya están en `pibico.css`.

   Los tokens `--bg-paper`, `--ink`, `--ink-deep` y las 8 rampas pastel viven
   dentro del ámbito de la landing, NO en `pibico.css`: ese fichero es
   byte-idéntico en api_auth, api_talk2doc y api_script, y tocarlo rompería
   la paridad entre servicios.
   ========================================================================= */

/* talk2doc — tipografías pibiCo
   Raleway (marca) · Montserrat (titulares) · Inter (cuerpo) · JetBrains Mono (código)

   ENTREGA OFFLINE: la guía pibiCo exige WOFF2 locales. Descarga las cuatro familias
   en assets/fonts/, sustituye el @import de abajo por reglas @font-face apuntando a
   esos ficheros (una por peso: Raleway 600/600i/700, Montserrat 400/600/700,
   Inter 400/500/600, JetBrains Mono 400) con font-display: swap.
   Sin conexión el sitio funciona igual con las fuentes de sistema de reserva. */
/* cyrillic-ext */
/* cyrillic */
/* greek-ext */
/* greek */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* greek-ext */
/* greek */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* greek-ext */
/* greek */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* greek */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* cyrillic-ext */
/* cyrillic */
/* vietnamese */
/* latin-ext */
/* latin */
/* ============================================================
   pibico.css — fundamentos de marca pibiCo
   Tokens, reset, tipografía, cristal, botones, formularios,
   paneles laterales, pastillas, toasts, finger tabs.
   ============================================================ */
body:has(.t2d-landing) {
  /* Primarios */
  --primary-color:   #4682b4;
  --secondary-color: #6a9bc3;
  --accent-color:    #2c5171;
  --text-color:      #333;
  --text-light:      #666;

  /* Gradiente de marca */
  --bg-gradient: linear-gradient(135deg, #2c5171 0%, #4682b4 50%, #6a9bc3 100%);
  --bg-paper:    linear-gradient(180deg, #f8f9fa 0%, #e8e6dc 100%);
  --ink:         #0d1a26;
  --ink-deep:    #081018;

  /* Cristal */
  --glass-bg:     rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Semánticos */
  --ok:   #10b981;
  --warn: #fbbf24;
  --err:  #ef4444;
  --idle: #94a3b8;

  /* Rampas pastel */
  --rose-50:#FFF0F0; --rose-200:#FCCDD0; --rose-400:#F28B93; --rose-600:#D4505E; --rose-800:#9E3A4A;
  --peach-50:#FFF4EC; --peach-200:#FCDCC8; --peach-400:#F2A872; --peach-600:#D47838; --peach-800:#944A20;
  --marigold-50:#FFF8E6; --marigold-200:#FCE8A8; --marigold-400:#F2C84E; --marigold-600:#C49A18; --marigold-800:#7A5A10;
  --mint-50:#ECFDF5; --mint-200:#B8F0D8; --mint-400:#5CCEA0; --mint-600:#28946A; --mint-800:#1A5C3A;
  --lavender-50:#F4F0FF; --lavender-200:#D8CCFA; --lavender-400:#A88EF0; --lavender-600:#7456C8; --lavender-800:#4A3580;
  --orchid-50:#FDF0F8; --orchid-200:#F5CCE2; --orchid-400:#E48EBE; --orchid-600:#C0508A; --orchid-800:#7A2E5A;
  --sky-50:#EEF6FF; --sky-200:#C0DFFA; --sky-400:#6AB4F0; --sky-600:#2E82C8; --sky-800:#1A4A7A;
  --slate-50:#F0F2F5; --slate-200:#CDD2DA; --slate-400:#8E96A8; --slate-600:#5A6478; --slate-800:#3A4050;

  /* Tipografía */
  --font-brand:   'Raleway', 'Montserrat', Arial, sans-serif;
  --font-heading: 'Montserrat', Arial, 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Radios */
  --radius-card: 24px;
  --radius-card-mobile: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50%;
}
body:has(.t2d-landing) *,
body:has(.t2d-landing) *::before,
body:has(.t2d-landing) *::after { box-sizing: border-box; }
body:has(.t2d-landing) { -webkit-text-size-adjust: 100%; }
body:has(.t2d-landing) {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}
body:has(.t2d-landing) h1,
body:has(.t2d-landing) h2,
body:has(.t2d-landing) h3,
body:has(.t2d-landing) h4 { font-family: var(--font-heading); margin: 0; text-wrap: pretty; }
body:has(.t2d-landing) a { color: var(--primary-color); text-decoration: none; transition: color 0.15s; }
body:has(.t2d-landing) a:hover { color: var(--accent-color); }
body:has(.t2d-landing) button { font-family: var(--font-body); }
body:has(.t2d-landing) :focus-visible { outline: none; }
body:has(.t2d-landing) ::selection { background: rgba(70,130,180,0.25); }
/* ------------------------------------------------------------
   Shell de aplicación
   ------------------------------------------------------------ */
body:has(.t2d-landing) .app-layout {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
body:has(.t2d-landing) .app-header {
  position: sticky; top: 0; z-index: 100;
  height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1;
}
body:has(.t2d-landing) .app-header-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.125rem; color: #1a3a54;
}
body:has(.t2d-landing) .app-header-actions { display: flex; align-items: center; gap: 0.5rem; }
body:has(.t2d-landing) .app-header-btn {
  width: 36px; height: 36px; min-width: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(44,81,113,0.12); border: none; padding: 0;
  color: #1a3a54; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s;
  flex-shrink: 0; text-decoration: none;
}
body:has(.t2d-landing) .app-header-btn:hover { background: rgba(44,81,113,0.2); }
body:has(.t2d-landing) .app-header-btn svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
body:has(.t2d-landing) .app-header-btn.on { background: var(--accent-color); color: #fff; }
body:has(.t2d-landing) .avatar-btn {
  background: var(--primary-color); color: #fff;
  font-weight: 700; border-radius: 50%; font-size: 0.8rem;
}
body:has(.t2d-landing) .avatar-btn:hover { background: var(--accent-color); }
body:has(.t2d-landing) .credit-badge {
  background: rgba(44,81,113,0.15); color: #1a3a54;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  padding: 2px 8px; border-radius: 10px; line-height: 1; white-space: nowrap;
}
body:has(.t2d-landing) .header-div { width: 1px; height: 20px; background: rgba(44,81,113,0.18); margin: 0 2px; }
body:has(.t2d-landing) .app-main {
  flex: 1; display: flex; flex-direction: row;
  overflow: hidden; padding: 12px; gap: 12px;
  min-height: 0;
}
body:has(.t2d-landing) .app-footer {
  height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  font-family: var(--font-body); font-size: 0.75rem; color: var(--text-light);
  line-height: 1;
}
body:has(.t2d-landing) .footer-sep { color: #ccc; }
/* ------------------------------------------------------------
   Tarjetas
   ------------------------------------------------------------ */
body:has(.t2d-landing) .pibico-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden; line-height: 1.2;
}
body:has(.t2d-landing) .content-area {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: none; border-radius: var(--radius-card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}
body:has(.t2d-landing) .sidebar {
  width: 45%; max-width: 440px; flex-shrink: 0; min-height: 0; min-width: 0;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
}
body:has(.t2d-landing) .list-item {
  background: rgba(255,255,255,0.5);
  border: none; border-radius: var(--radius);
  padding: 6px 10px; cursor: pointer; transition: all 0.2s;
}
body:has(.t2d-landing) .list-item:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
body:has(.t2d-landing) .list-item.active { background: rgba(70,130,180,0.12); box-shadow: 0 2px 8px rgba(70,130,180,0.15); }
body:has(.t2d-landing) .card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px 8px; flex-shrink: 0;
}
body:has(.t2d-landing) .card-head h2 {
  font-size: 0.875rem; font-weight: 600; color: var(--accent-color);
  line-height: 1; margin: 0;
}
/* ------------------------------------------------------------
   Finger tabs
   ------------------------------------------------------------ */
body:has(.t2d-landing) .pibico-card-area {
  position: relative; display: flex; flex-direction: column;
  min-height: 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
body:has(.t2d-landing) .pibico-glass {
  position: absolute; inset: 0; background: rgba(255,255,255,0.9);
  pointer-events: none; z-index: 1;
}
body:has(.t2d-landing) .pibico-tab-row {
  position: relative; z-index: 3;
  display: flex; justify-content: center; flex-wrap: wrap;
  padding: 6px 4px 0; row-gap: 2px;
}
body:has(.t2d-landing) .pibico-tab {
  flex: 1 1 56px; min-width: 48px; max-width: 110px;
  padding: 6px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
  color: rgba(44,81,113,0.55);
  border: none; background: none; text-decoration: none;
  font-family: var(--font-body); white-space: nowrap;
  transition: color 0.15s;
}
body:has(.t2d-landing) .pibico-tab:hover { color: rgba(44,81,113,0.9); }
body:has(.t2d-landing) .pibico-tab.active { color: var(--tab-color, #2c5171); }
body:has(.t2d-landing) .pibico-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body:has(.t2d-landing) .pibico-tab-label { font-size: 8px; font-weight: 500; line-height: 1; letter-spacing: 0.2px; }
body:has(.t2d-landing) .pibico-tab.active .pibico-tab-label { font-weight: 600; }
body:has(.t2d-landing) .pibico-content {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden; padding: 3px;
}
/* ------------------------------------------------------------
   Botones
   ------------------------------------------------------------ */
body:has(.t2d-landing) .pibico-btn-primary,
body:has(.t2d-landing) .pibico-btn-outline,
body:has(.t2d-landing) .pibico-btn-ghost,
body:has(.t2d-landing) .pibico-btn-danger {
  padding: 3px 1rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  line-height: 1.2; min-height: 32px; cursor: pointer;
  transition: all 0.2s; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
body:has(.t2d-landing) .pibico-btn-primary { background: var(--primary-color); color: #fff; }
body:has(.t2d-landing) .pibico-btn-primary:hover:not(:disabled) {
  background: var(--accent-color); transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(70,130,180,0.3);
}
body:has(.t2d-landing) .pibico-btn-outline { background: transparent; color: var(--accent-color); border-color: rgba(44,81,113,0.35); }
body:has(.t2d-landing) .pibico-btn-outline:hover { background: rgba(44,81,113,0.08); transform: translateY(-1px); }
/* Regla de la casa: un botón claro sobre fondo claro lleva línea. Sin ella el
 * «Cancelar» del pie del panel era texto suelto flotando sobre el blanco y no
 * se leía como control. Los botones sobre banda oscura (`.btn-hero-*`) ya
 * resuelven el contraste por fondo y no la necesitan. */
body:has(.t2d-landing) .pibico-btn-ghost {
  background: transparent; color: var(--text-light);
  border: 1px solid rgba(44,81,113,0.22);
}
body:has(.t2d-landing) .pibico-btn-ghost:hover {
  background: rgba(0,0,0,0.05); color: var(--text-color);
  border-color: rgba(44,81,113,0.4);
}
body:has(.t2d-landing) .pibico-btn-danger { background: rgba(239,68,68,0.12); color: #dc2626; }
body:has(.t2d-landing) .pibico-btn-danger:hover { background: rgba(239,68,68,0.2); transform: translateY(-1px); }
body:has(.t2d-landing) .pibico-btn-icon {
  width: 32px; height: 32px; min-width: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: rgba(44,81,113,0.1); color: #1a3a54;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
}
body:has(.t2d-landing) .pibico-btn-icon:hover { background: rgba(44,81,113,0.18); transform: translateY(-1px); }
body:has(.t2d-landing) .pibico-btn-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body:has(.t2d-landing) button:disabled { opacity: 0.5; cursor: not-allowed; }
/* ------------------------------------------------------------
   Formularios
   ------------------------------------------------------------ */
body:has(.t2d-landing) .field { display: flex; flex-direction: column; gap: 3px; width: 100%; margin: 0; }
body:has(.t2d-landing) .field > span {
  font-size: 11px; color: var(--accent-color); font-weight: 600;
  line-height: 1; text-transform: uppercase; letter-spacing: 0.3px;
}
body:has(.t2d-landing) .field input,
body:has(.t2d-landing) .field textarea,
body:has(.t2d-landing) .field select {
  width: 100%; padding: 6px 9px;
  border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff; line-height: 1.3;
  color: var(--text-color);
}
body:has(.t2d-landing) .field textarea { resize: vertical; min-height: 80px; }
body:has(.t2d-landing) .field input:focus,
body:has(.t2d-landing) .field textarea:focus,
body:has(.t2d-landing) .field select:focus {
  outline: none; border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(70,130,180,0.15);
}
body:has(.t2d-landing) .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body:has(.t2d-landing) .field-check { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 0; }
body:has(.t2d-landing) .pibico-input {
  width: 100%; padding: 6px 12px;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.875rem; line-height: 1.2;
  background: #fff; color: var(--text-color); transition: all 0.2s;
}
body:has(.t2d-landing) .pibico-input:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(70,130,180,0.1);
}
/* ------------------------------------------------------------
   Paneles laterales
   ------------------------------------------------------------ */
/* El `.panel-close` del prototipo (× blanca sobre blanco translúcido) daba por
 * supuesta una cabecera de panel oscura. La de producción es blanca, así que el
 * botón quedaba invisible. La landing usa ya el `.icon-btn-ghost` canónico, que
 * viste `collab.css`; esta regla solo queda como red por si vuelve el marcado
 * antiguo, ahora con el color de la casa. */
body:has(.t2d-landing) .panel-close {
  width: 28px; height: 28px; border: none; background: transparent;
  color: var(--accent-color, #2c5171); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 18px; line-height: 1; transition: background 0.2s;
}
body:has(.t2d-landing) .panel-close:hover { background: rgba(44,81,113,0.1); }
/* ------------------------------------------------------------
   Pastillas, badges, puntos de estado
   ------------------------------------------------------------ */
body:has(.t2d-landing) .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; line-height: 1.4;
}
body:has(.t2d-landing) .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
body:has(.t2d-landing) .status-connected { background: var(--ok); }
body:has(.t2d-landing) .status-connecting { background: var(--warn); animation: pulse 1.5s ease-in-out infinite; }
body:has(.t2d-landing) .status-disconnected { background: var(--err); }
body:has(.t2d-landing) .status-inactive { background: var(--idle); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
body:has(.t2d-landing) .mono { font-family: var(--font-mono); }
/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
body:has(.t2d-landing) .toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 300; padding: 10px 24px; border-radius: 8px;
  background: rgba(13,27,42,0.95); color: #fff;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.3s; pointer-events: none; max-width: 80vw;
}
body:has(.t2d-landing) .toast.show { opacity: 1; }
body:has(.t2d-landing) .toast.ok { background: rgba(16,185,129,0.95); }
body:has(.t2d-landing) .toast.err { background: rgba(239,68,68,0.95); }
/* ------------------------------------------------------------
   Barras de scroll finas
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
body:has(.t2d-landing) * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
@media (max-width: 768px) {
body:has(.t2d-landing) .app-main { flex-direction: column; padding: 8px; gap: 8px; }
body:has(.t2d-landing) .sidebar { width: 100%; max-width: none; }
body:has(.t2d-landing) .app-header { padding: 0 1rem; }
}
/* ============================================================
   landing.css — talk2doc, página pública
   ============================================================ */
body:has(.t2d-landing).t2d-landing {
  background: #f4f6f8;
  overflow-x: hidden;
}

/* `pibico.css:1032` define `.t2d-landing` para la landing ANTERIOR:
 *
 *     .t2d-landing { padding: 0 1rem; overflow-y: auto;
 *                    height: calc(100vh - 48px - 28px); }
 *
 * Esa hoja es byte-idéntica en api_auth / api_talk2doc / api_script, así que
 * no se toca: se neutraliza aquí. Las tres declaraciones hacían daño:
 *
 *   · `padding: 0 1rem`  → 16 px de calle a cada lado, de modo que ninguna
 *     banda a sangre llegaba al borde de la ventana.
 *   · `height` + `overflow-y:auto` → el contenedor se convertía en su PROPIO
 *     scroller: 10.116 px de landing scrolleando dentro de un div de 1.163 px
 *     mientras el documento solo tenía 206 px de recorrido. De ahí que las 24
 *     animaciones `.rv` no dispararan nunca (observan el viewport, que apenas
 *     se movía) y que la nav no pasara a `.solid`. */
body:has(.t2d-landing) .t2d-landing {
  padding: 0;
  height: auto;
  overflow-y: visible;
}
body:has(.t2d-landing) .skip {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: #fff; color: var(--accent-color);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-size: 0.8125rem; font-weight: 600;
}
body:has(.t2d-landing) .skip:focus { left: 0; }
body:has(.t2d-landing) .wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
body:has(.t2d-landing) .wrap-narrow { max-width: 900px; }
/* ---------- Navegación ---------- */
body:has(.t2d-landing) .t2d-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: 60px; display: flex; align-items: center;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, height 0.3s;
  border-bottom: 1px solid transparent;
}
body:has(.t2d-landing) .t2d-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
body:has(.t2d-landing) .t2d-nav.solid {
  height: 54px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(44,81,113,0.1);
  box-shadow: 0 2px 12px rgba(13,26,38,0.06);
}
body:has(.t2d-landing) .brand { display: flex; align-items: center; gap: 9px; }
body:has(.t2d-landing) .brand-mark {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, #6a9bc3, #2c5171);
  display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 700; font-size: 11px;
  color: #fff; letter-spacing: -0.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
body:has(.t2d-landing) .brand-word {
  font-family: var(--font-brand); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em; color: #fff; transition: color 0.3s;
}
body:has(.t2d-landing) .t2d-nav.solid .brand-word { color: var(--primary-color); }
body:has(.t2d-landing) .nav-links { display: flex; align-items: center; gap: 26px; }
body:has(.t2d-landing) .nav-links a {
  font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.72);
  transition: color 0.2s; white-space: nowrap;
}
body:has(.t2d-landing) .nav-links a:hover { color: #fff; }
body:has(.t2d-landing) .t2d-nav.solid .nav-links a { color: var(--text-light); }
body:has(.t2d-landing) .t2d-nav.solid .nav-links a:hover { color: var(--accent-color); }
body:has(.t2d-landing) .nav-cta { display: flex; align-items: center; gap: 10px; }
body:has(.t2d-landing) .btn-nav-ghost {
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.28); color: #fff;
  font-size: 0.8125rem; font-weight: 600; transition: all 0.2s;
}
body:has(.t2d-landing) .btn-nav-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-1px); }
body:has(.t2d-landing) .t2d-nav.solid .btn-nav-ghost { border-color: rgba(44,81,113,0.25); color: var(--accent-color); }
body:has(.t2d-landing) .t2d-nav.solid .btn-nav-ghost:hover { background: rgba(44,81,113,0.07); color: var(--accent-color); }
body:has(.t2d-landing) .btn-solid {
  padding: 7px 16px; border-radius: var(--radius-sm);
  background: var(--primary-color); color: #fff;
  font-size: 0.8125rem; font-weight: 600; transition: all 0.2s;
}
body:has(.t2d-landing) .btn-solid:hover { background: #5a94c6; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(70,130,180,0.35); }
body:has(.t2d-landing) .nav-burger { display: none; }
/* ---------- Hero ---------- */
body:has(.t2d-landing) .hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink-deep); overflow: hidden;
  padding-bottom: 0;
}
body:has(.t2d-landing) .hero-media { position: absolute; inset: 0; z-index: 0; }
body:has(.t2d-landing) .hero-media video,
body:has(.t2d-landing) .hero-media img.hero-still {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 1;
  /* El metraje es un archivo en penumbra, ya rodado oscuro. Un punto de brillo
     y contraste lo saca de la nada sin quemar la luz de la ventana. */
  filter: brightness(1.12) contrast(1.04);
}
/* La cortina anterior estaba calibrada para el metraje abstracto de antes, que
   era claro: un radial de 0.88→0.97 sobre casi todo el cuadro. Con el archivo
   real eso lo dejaba en negro y no se reconocía nada. Ahora es DIRECCIONAL —
   opaca donde va el texto (izquierda) y casi transparente a la derecha, que es
   donde están las estanterías y la luz. El propio plano ya trae el tercio
   izquierdo en sombra, así que ambas cosas se suman en vez de pelearse. */
body:has(.t2d-landing) .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,16,24,0.92) 0%, rgba(8,16,24,0.78) 30%, rgba(8,16,24,0.34) 62%, rgba(8,16,24,0.18) 100%),
    linear-gradient(180deg, rgba(8,16,24,0.62) 0%, rgba(8,16,24,0) 26%, rgba(8,16,24,0.55) 100%);
}
body:has(.t2d-landing) .hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(122,168,205,0.075) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
body:has(.t2d-landing) .hero-inner { position: relative; z-index: 2; padding: 130px 0 0; }
body:has(.t2d-landing) .hero-kicker {
  font-family: var(--font-brand); font-weight: 600; font-style: italic;
  font-size: 0.9375rem; color: #8fb8d6; letter-spacing: 0.01em;
  margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
}
body:has(.t2d-landing) .hero-kicker::before {
  content: ""; width: 40px; height: 1px; background: #4682b4; display: block;
}
body:has(.t2d-landing) .hero h1 {
  /* El titular del prototipo era «Habla con todo…», tres palabras cortas, y
     aguantaba 8.2vw. El nuevo —«Tus archivos se quedan donde están»— es el
     doble de largo y a esa escala se comía la pantalla entera en tres líneas.
     Menos escala y más medida: dos líneas en escritorio. */
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  color: #fff; margin: 0 0 14px; max-width: 22ch;
}
body:has(.t2d-landing) .hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #cfe2f0 0%, #7aa8cd 55%, #4682b4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body:has(.t2d-landing) .hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5;
  color: rgba(226,238,247,0.78); max-width: 46ch; margin: 22px 0 32px;
}
body:has(.t2d-landing) .hero-sub strong { color: #fff; font-weight: 600; }
body:has(.t2d-landing) .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 34px; }
body:has(.t2d-landing) .btn-hero {
  padding: 14px 26px; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s; border: 1px solid transparent; cursor: pointer;
}
body:has(.t2d-landing) .btn-hero-primary { background: #fff; color: var(--accent-color); }
body:has(.t2d-landing) .btn-hero-primary:hover {
  color: var(--accent-color); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(122,168,205,0.3);
}
body:has(.t2d-landing) .btn-hero-outline { border-color: rgba(255,255,255,0.25); color: #fff; background: rgba(255,255,255,0.04); }
body:has(.t2d-landing) .btn-hero-outline:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }
body:has(.t2d-landing) .btn-hero svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body:has(.t2d-landing) .hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; padding: 0 0 26px;
  border-top: 1px solid rgba(255,255,255,0.09); padding-top: 22px;
}
body:has(.t2d-landing) .hero-meta div { display: flex; flex-direction: column; gap: 4px; }
body:has(.t2d-landing) .hero-meta dt,
body:has(.t2d-landing) .hero-meta .m-num {
  font-family: var(--font-mono); font-size: 1.35rem; color: #fff; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1;
}
body:has(.t2d-landing) .hero-meta .m-lab {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: rgba(143,184,214,0.75); font-weight: 500;
}
/* Cinta de conectores */
/* La banda va ENCIMA del vídeo, que se mueve: sobre el suelo iluminado del
   pasillo el texto quedaba en 3,02:1 (mínimo AA, 4,5) y sobre la zona oscura en
   4,68:1 — es decir, cumplía o no según el fotograma. Opacando el soporte a 0,78
   el peor caso sube a 10,4:1 y deja de depender de lo que haya detrás. */
body:has(.t2d-landing) .ticker {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,16,24,0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: hidden; padding: 11px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
body:has(.t2d-landing) .ticker-track { display: flex; gap: 42px; width: max-content; animation: slide 46s linear infinite; }
body:has(.t2d-landing) .ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body:has(.t2d-landing) .ticker-item {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em;
  color: #c6def0; white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
}
body:has(.t2d-landing) .ticker-item::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(122,168,205,0.95); flex-shrink: 0; }
/* ---------- Bandas ---------- */
body:has(.t2d-landing) .band { padding: 108px 0; position: relative; }
body:has(.t2d-landing) .band--paper { background: #f4f6f8; }
body:has(.t2d-landing) .band--paper-alt { background: linear-gradient(180deg, #f8f9fa 0%, #eceae1 100%); }
body:has(.t2d-landing) .band--ink { background: var(--ink); color: #dce8f1; }
body:has(.t2d-landing) .band--gradient { background: var(--bg-gradient); color: #fff; }
body:has(.t2d-landing) .band--tight { padding: 76px 0; }
body:has(.t2d-landing) .eyebrow {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary-color);
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
}
body:has(.t2d-landing) .eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
body:has(.t2d-landing) .band--ink .eyebrow,
body:has(.t2d-landing) .band--gradient .eyebrow { color: #8fb8d6; }
body:has(.t2d-landing) .band--gradient .eyebrow { color: rgba(255,255,255,0.7); }
body:has(.t2d-landing) .sec-title {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.03; color: var(--ink);
  margin: 0 0 18px; max-width: 22ch;
}
body:has(.t2d-landing) .band--ink .sec-title,
body:has(.t2d-landing) .band--gradient .sec-title { color: #fff; }
body:has(.t2d-landing) .sec-lede {
  font-size: 1.0625rem; line-height: 1.6; color: var(--text-light);
  max-width: 58ch; margin: 0;
}
body:has(.t2d-landing) .band--ink .sec-lede { color: rgba(196,216,232,0.72); }
body:has(.t2d-landing) .band--gradient .sec-lede { color: rgba(255,255,255,0.8); }
body:has(.t2d-landing) .sec-head { margin-bottom: 52px; }
body:has(.t2d-landing) .sec-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
/* ---------- El asistente en vivo ---------- */
body:has(.t2d-landing) .ask {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px;
  align-items: start;
}
body:has(.t2d-landing) .ask-panel {
  background: #fff; border-radius: 20px;
  border: 1px solid rgba(44,81,113,0.09);
  box-shadow: 0 20px 60px -30px rgba(13,26,38,0.35), 0 2px 6px rgba(13,26,38,0.04);
  overflow: hidden; display: flex; flex-direction: column;
}
body:has(.t2d-landing) .ask-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid rgba(44,81,113,0.08);
  background: linear-gradient(180deg, #fbfcfd, #f4f7f9);
}
body:has(.t2d-landing) .ask-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: #cfd8e0; }
body:has(.t2d-landing) .ask-bar .ask-title {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-color); margin-left: 4px;
}
body:has(.t2d-landing) .ask-bar .ask-src {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem;
  color: var(--text-light);
}
body:has(.t2d-landing) .ask-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 16px 4px; }
body:has(.t2d-landing) .ask-chip {
  border: 1px solid rgba(44,81,113,0.16); background: #fff;
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
  color: var(--accent-color); transition: all 0.18s; text-align: left;
}
body:has(.t2d-landing) .ask-chip:hover { background: var(--sky-50); border-color: rgba(70,130,180,0.4); transform: translateY(-1px); }
body:has(.t2d-landing) .ask-chip.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
body:has(.t2d-landing) .ask-thread { padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 12px; min-height: 232px; }
body:has(.t2d-landing) .ask-q {
  align-self: flex-end; max-width: 82%;
  background: var(--accent-color); color: #fff;
  padding: 9px 13px; border-radius: 14px 14px 4px 14px;
  font-size: 0.875rem; line-height: 1.45;
}
body:has(.t2d-landing) .ask-a {
  max-width: 96%; background: var(--slate-50); color: var(--text-color);
  padding: 11px 14px; border-radius: 14px 14px 14px 4px;
  font-size: 0.875rem; line-height: 1.62;
}
body:has(.t2d-landing) .ask-a.thinking { color: var(--text-light); font-style: italic; }
body:has(.t2d-landing) .ask-a .cursor {
  display: inline-block; width: 7px; height: 14px; vertical-align: -2px;
  background: var(--primary-color); animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
body:has(.t2d-landing) .cite {
  display: inline-flex; align-items: center; gap: 3px;
  vertical-align: 1px; margin: 0 1px;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400;
  background: rgba(70,130,180,0.14); color: var(--accent-color);
  border: none; padding: 1px 6px; border-radius: 999px; cursor: pointer;
  transition: all 0.15s;
}
body:has(.t2d-landing) .cite:hover,
body:has(.t2d-landing) .cite.on { background: var(--accent-color); color: #fff; }
body:has(.t2d-landing) .ask-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-top: 1px solid rgba(44,81,113,0.07);
  background: #fbfcfd; margin-top: auto;
}
body:has(.t2d-landing) .ask-foot input {
  flex: 1; border: 1px solid rgba(44,81,113,0.16); border-radius: 999px;
  padding: 8px 14px; font-family: var(--font-body); font-size: 0.8125rem;
  background: #fff; color: var(--text-color);
}
body:has(.t2d-landing) .ask-foot input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(70,130,180,0.1); }
body:has(.t2d-landing) .ask-send {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--primary-color); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: all 0.2s; flex-shrink: 0;
}
body:has(.t2d-landing) .ask-send:hover { background: var(--accent-color); transform: translateY(-1px); }
body:has(.t2d-landing) .ask-send svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Columna de fuentes */
body:has(.t2d-landing) .src-col { display: flex; flex-direction: column; gap: 10px; }
body:has(.t2d-landing) .src-col-head {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-light); padding-left: 2px;
}
body:has(.t2d-landing) .src-card {
  background: #fff; border: 1px solid rgba(44,81,113,0.09);
  border-radius: 14px; padding: 12px 14px;
  transition: all 0.25s; position: relative;
  opacity: 0.5;
}
body:has(.t2d-landing) .src-card.on {
  opacity: 1; border-color: rgba(70,130,180,0.45);
  box-shadow: 0 10px 30px -18px rgba(44,81,113,0.5);
  transform: translateY(-1px);
}
body:has(.t2d-landing) .src-card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
body:has(.t2d-landing) .src-name {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body:has(.t2d-landing) .src-where {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.625rem;
  color: var(--text-light); white-space: nowrap;
}
body:has(.t2d-landing) .src-quote {
  font-size: 0.75rem; line-height: 1.55; color: var(--text-light);
  border-left: 2px solid rgba(70,130,180,0.3); padding-left: 9px;
}
body:has(.t2d-landing) .src-card.on .src-quote { color: var(--text-color); border-left-color: var(--primary-color); }
body:has(.t2d-landing) .src-page { font-family: var(--font-mono); font-size: 0.625rem; color: var(--primary-color); margin-top: 7px; }
/* ---------- Constelación de conectores ---------- */
body:has(.t2d-landing) .constel { position: relative; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
body:has(.t2d-landing) .constel-canvas-wrap { position: relative; min-height: 430px; }
body:has(.t2d-landing) .constel canvas { width: 100%; height: 430px; display: block; }
body:has(.t2d-landing) .constel-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center; pointer-events: none;
}
body:has(.t2d-landing) .constel-core .cc-ring {
  width: 122px; height: 122px; border-radius: 50%;
  border: 1px solid rgba(122,168,205,0.35);
  display: grid; place-items: center; margin: 0 auto 12px;
  background: radial-gradient(circle, rgba(70,130,180,0.22), transparent 70%);
}
body:has(.t2d-landing) .constel-core .cc-in {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(140deg, #6a9bc3, #2c5171);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.6875rem; color: #fff;
  box-shadow: 0 0 40px rgba(70,130,180,0.45);
}
body:has(.t2d-landing) .constel-core .cc-lab {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(143,184,214,0.8);
}
body:has(.t2d-landing) .constel-list { display: flex; flex-direction: column; gap: 6px; }
/* La pastilla ACLARABA el fondo (`rgba(255,255,255,.035)` sobre una banda que
   en su punto más claro es rgb(72,109,141)), así que el texto encima se quedaba
   sin sitio: medido, `.cx-kind` daba 1,82:1 y el nombre 4,06:1, con el mínimo AA
   en 4,5. Ni con blanco puro se alcanzaba. La solución no era aclarar el texto
   sino oscurecer el soporte: tinta al 40 %, y entonces el nombre sube a 9,06:1
   y la etiqueta a 6,52:1. */
body:has(.t2d-landing) .cx {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px; border-radius: 10px; cursor: default;
  background: rgba(8,20,34,0.40); border: 1px solid rgba(122,168,205,0.18);
  transition: all 0.2s;
}
body:has(.t2d-landing) .cx:hover,
body:has(.t2d-landing) .cx.lit { background: rgba(44,81,113,0.62); border-color: rgba(122,168,205,0.55); transform: translateX(3px); }
body:has(.t2d-landing) .cx-name { font-size: 0.8125rem; font-weight: 500; color: #fff; }
body:has(.t2d-landing) .cx-kind {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.625rem;
  color: #c6def0; text-transform: uppercase; letter-spacing: 0.06em;
}
body:has(.t2d-landing) .constel-note {
  margin-top: 14px; font-size: 0.8125rem; color: rgba(255,255,255,0.92);
  line-height: 1.5;
}
body:has(.t2d-landing) .constel-note b { color: #fff; font-weight: 600; }
/* ---------- Mezclador de búsqueda ---------- */
body:has(.t2d-landing) .mixer { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
body:has(.t2d-landing) .mixer-desk {
  background: #fff; border: 1px solid rgba(44,81,113,0.09); border-radius: 18px;
  padding: 18px; box-shadow: 0 16px 44px -30px rgba(13,26,38,0.4);
  display: flex; flex-direction: column; gap: 16px;
}
body:has(.t2d-landing) .mx-row { display: flex; flex-direction: column; gap: 7px; }
body:has(.t2d-landing) .mx-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body:has(.t2d-landing) .mx-name { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; color: var(--accent-color); }
body:has(.t2d-landing) .mx-val { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary-color); }
body:has(.t2d-landing) .mx-desc { font-size: 0.6875rem; line-height: 1.45; color: var(--text-light); }
body:has(.t2d-landing) input[type=range].mx {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: rgba(44,81,113,0.14); border-radius: 999px; outline: none; margin: 0;
}
body:has(.t2d-landing) input[type=range].mx::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary-color); cursor: grab; border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(44,81,113,0.4);
}
body:has(.t2d-landing) input[type=range].mx::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--primary-color);
  cursor: grab; border: 2px solid #fff; box-shadow: 0 1px 6px rgba(44,81,113,0.4);
}
body:has(.t2d-landing) .mx-presets { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid rgba(44,81,113,0.07); }
body:has(.t2d-landing) .mx-preset {
  border: 1px solid rgba(44,81,113,0.22); background: #fff; color: var(--accent-color);
  padding: 5px 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
}
body:has(.t2d-landing) .mx-preset:hover { background: var(--sky-50); }
body:has(.t2d-landing) .mx-preset.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
body:has(.t2d-landing) .mixer-out { display: flex; flex-direction: column; gap: 8px; }
body:has(.t2d-landing) .mixer-query {
  display: flex; align-items: center; gap: 9px; margin-bottom: 4px;
  font-size: 0.8125rem; color: var(--text-light);
}
body:has(.t2d-landing) .mixer-query code {
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-color);
  background: rgba(70,130,180,0.1); padding: 3px 9px; border-radius: 6px;
}
body:has(.t2d-landing) .res {
  display: grid; grid-template-columns: 34px 1fr 120px; gap: 12px; align-items: center;
  background: #fff; border: 1px solid rgba(44,81,113,0.08); border-radius: 12px;
  padding: 11px 14px; transition: box-shadow 0.2s, border-color 0.2s;
}
body:has(.t2d-landing) .res:hover { border-color: rgba(70,130,180,0.3); box-shadow: 0 6px 20px -12px rgba(13,26,38,0.35); }
body:has(.t2d-landing) .res-rank { font-family: var(--font-mono); font-size: 1rem; color: rgba(44,81,113,0.35); text-align: center; }
body:has(.t2d-landing) .res-name { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
body:has(.t2d-landing) .res-why { font-size: 0.6875rem; color: var(--text-light); line-height: 1.4; }
body:has(.t2d-landing) .res-why b { color: var(--accent-color); font-weight: 600; }
body:has(.t2d-landing) .res-bars { display: flex; flex-direction: column; gap: 3px; }
body:has(.t2d-landing) .rb { display: flex; align-items: center; gap: 5px; }
body:has(.t2d-landing) .rb-lab { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--text-light); width: 24px; }
body:has(.t2d-landing) .rb-track { flex: 1; height: 3px; background: rgba(44,81,113,0.1); border-radius: 999px; overflow: hidden; }
body:has(.t2d-landing) .rb-fill { height: 100%; border-radius: 999px; transition: width 0.35s cubic-bezier(0.4,0,0.2,1); }
body:has(.t2d-landing) .rb-fill.t { background: var(--sky-400); }
body:has(.t2d-landing) .rb-fill.s { background: var(--lavender-400); }
body:has(.t2d-landing) .rb-fill.f { background: var(--marigold-400); }
body:has(.t2d-landing) .res-score { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--primary-color); text-align: right; }
/* ---------- Funcionalidades ---------- */
body:has(.t2d-landing) .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(44,81,113,0.1); border-radius: 18px; overflow: hidden; }
body:has(.t2d-landing) .feat {
  background: #fff; padding: 26px 24px 24px; position: relative;
  transition: background 0.25s; min-height: 190px;
  display: flex; flex-direction: column;
}
body:has(.t2d-landing) .feat:hover { background: #fbfcfd; }
body:has(.t2d-landing) .feat-num {
  font-family: var(--font-mono); font-size: 0.625rem; color: rgba(44,81,113,0.35);
  margin-bottom: 16px; letter-spacing: 0.1em;
}
body:has(.t2d-landing) .feat-ic { width: 22px; height: 22px; margin-bottom: 12px; color: var(--primary-color); }
body:has(.t2d-landing) .feat-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body:has(.t2d-landing) .feat h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em; }
body:has(.t2d-landing) .feat p { font-size: 0.8125rem; line-height: 1.55; color: var(--text-light); margin: 0; }
/* ---------- Casos ---------- */
body:has(.t2d-landing) .cases { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.08); border-radius: 18px; overflow: hidden; }
body:has(.t2d-landing) .case {
  display: grid; grid-template-columns: 300px 1fr 1fr; gap: 0;
  background: var(--ink); align-items: stretch;
}
body:has(.t2d-landing) .case-img { position: relative; overflow: hidden; min-height: 240px; }
body:has(.t2d-landing) .case-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.7) contrast(1.05); transition: transform 0.7s cubic-bezier(0.2,0,0.2,1); }
body:has(.t2d-landing) .case:hover .case-img img { transform: scale(1.05); }
body:has(.t2d-landing) .case-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13,26,38,0.55), rgba(13,26,38,0.1)); }
body:has(.t2d-landing) .case-body { padding: 30px 32px; display: flex; flex-direction: column; }
body:has(.t2d-landing) .case-tag {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8fb8d6; margin-bottom: 12px;
}
body:has(.t2d-landing) .case-body h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; margin: 0 0 12px; }
body:has(.t2d-landing) .case-body p { font-size: 0.875rem; line-height: 1.6; color: rgba(196,216,232,0.7); margin: 0; }
body:has(.t2d-landing) .case-q { padding: 30px 32px 30px 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
body:has(.t2d-landing) .case-q .qlab {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(143,184,214,0.5); margin-bottom: 4px;
}
body:has(.t2d-landing) .qline {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 0.8125rem; line-height: 1.5; color: rgba(220,232,241,0.82);
  padding: 8px 12px; border-radius: 9px; background: rgba(122,168,205,0.06);
  border: 1px solid rgba(122,168,205,0.1); transition: all 0.2s;
}
body:has(.t2d-landing) .qline:hover { background: rgba(70,130,180,0.15); border-color: rgba(122,168,205,0.3); }
body:has(.t2d-landing) .qline::before { content: "?"; font-family: var(--font-mono); color: var(--primary-color); flex-shrink: 0; }
/* ---------- Soberanía / versus ---------- */
body:has(.t2d-landing) .vs-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(44,81,113,0.08); margin-bottom: 34px; gap: 2px;
}
body:has(.t2d-landing) .vs-switch button {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 20px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  color: var(--text-light); transition: all 0.22s;
}
body:has(.t2d-landing) .vs-switch button.active { background: #fff; color: var(--accent-color); box-shadow: 0 2px 8px rgba(13,26,38,0.1); }
body:has(.t2d-landing) .vs-stage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch;
}
body:has(.t2d-landing) .vs-diagram {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--ink); min-height: 340px;
}
body:has(.t2d-landing) .vs-diagram canvas { width: 100%; height: 340px; display: block; }
body:has(.t2d-landing) .vs-cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px;
  background: linear-gradient(180deg, transparent, rgba(8,16,24,0.9));
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(143,184,214,0.85);
}
body:has(.t2d-landing) .vs-points { display: flex; flex-direction: column; gap: 1px; background: rgba(44,81,113,0.1); border-radius: 18px; overflow: hidden; }
body:has(.t2d-landing) .vp { background: #fff; padding: 17px 20px; }
body:has(.t2d-landing) .vp h4 { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin: 0 0 5px; display: flex; align-items: center; gap: 8px; }
body:has(.t2d-landing) .vp p { font-size: 0.8125rem; line-height: 1.55; color: var(--text-light); margin: 0; }
body:has(.t2d-landing) .vp .tick { width: 15px; height: 15px; flex-shrink: 0; }
body:has(.t2d-landing) .vp .tick svg { width: 15px; height: 15px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body:has(.t2d-landing) .vp.yes .tick { color: var(--ok); }
body:has(.t2d-landing) .vp.no .tick { color: var(--idle); }
body:has(.t2d-landing) .honesty {
  margin-top: 28px; padding: 18px 22px; border-radius: 14px;
  background: rgba(44,81,113,0.05); border: 1px dashed rgba(44,81,113,0.2);
  font-size: 0.875rem; line-height: 1.6; color: var(--text-color); max-width: 74ch;
}
body:has(.t2d-landing) .honesty b { color: var(--accent-color); }
/* ---------- Precios ---------- */
body:has(.t2d-landing) .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
body:has(.t2d-landing) .plan {
  background: rgba(255,255,255,0.95); border-radius: 18px; padding: 26px 24px 24px;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 50px -34px rgba(8,16,24,0.6);
  border: 1px solid rgba(255,255,255,0.5);
}
body:has(.t2d-landing) .plan.hot { background: #fff; box-shadow: 0 26px 64px -30px rgba(8,16,24,0.7); transform: translateY(-8px); }
body:has(.t2d-landing) .plan-name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; color: var(--accent-color); }
body:has(.t2d-landing) .plan-tag {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary-color);
}
body:has(.t2d-landing) .plan-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
body:has(.t2d-landing) .plan-price .pv { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
body:has(.t2d-landing) .plan-price .pu { font-size: 0.8125rem; color: var(--text-light); }
body:has(.t2d-landing) .plan-note { font-size: 0.75rem; color: var(--text-light); margin: 0 0 18px; }
body:has(.t2d-landing) .plan ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
body:has(.t2d-landing) .plan li { font-size: 0.8125rem; line-height: 1.45; color: var(--text-color); display: flex; gap: 8px; align-items: flex-start; }
body:has(.t2d-landing) .plan li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--primary-color); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body:has(.t2d-landing) .plan .plan-cta { margin-top: auto; }
body:has(.t2d-landing) .plan .plan-cta a,
body:has(.t2d-landing) .plan .plan-cta button {
  width: 100%; padding: 11px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  display: block; text-align: center; transition: all 0.2s;
}
body:has(.t2d-landing) .plan .plan-cta .fill { background: var(--primary-color); color: #fff; }
body:has(.t2d-landing) .plan .plan-cta .fill:hover { background: var(--accent-color); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(44,81,113,0.3); }
body:has(.t2d-landing) .plan .plan-cta .line { background: transparent; color: var(--accent-color); border: 1px solid rgba(44,81,113,0.25); }
body:has(.t2d-landing) .plan .plan-cta .line:hover { background: rgba(44,81,113,0.06); transform: translateY(-1px); }
/* Calculadora pibiCash */
body:has(.t2d-landing) .calc {
  margin-top: 46px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 18px;
  padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr 250px; gap: 30px;
  align-items: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body:has(.t2d-landing) .calc h3 { font-size: 0.9375rem; font-weight: 600; color: #fff; margin: 0 0 4px; }
body:has(.t2d-landing) .calc-lead { font-size: 0.8125rem; color: rgba(255,255,255,0.72); line-height: 1.5; margin: 0; }
body:has(.t2d-landing) .calc-ctl { display: flex; flex-direction: column; gap: 14px; }
body:has(.t2d-landing) .cc-row { display: flex; flex-direction: column; gap: 6px; }
body:has(.t2d-landing) .cc-top { display: flex; align-items: baseline; justify-content: space-between; }
body:has(.t2d-landing) .cc-lab { font-size: 0.75rem; color: rgba(255,255,255,0.82); font-weight: 500; }
body:has(.t2d-landing) .cc-num { font-family: var(--font-mono); font-size: 0.8125rem; color: #fff; }
body:has(.t2d-landing) input[type=range].cc {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: rgba(255,255,255,0.25); border-radius: 999px; outline: none; margin: 0;
}
body:has(.t2d-landing) input[type=range].cc::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; cursor: grab; box-shadow: 0 2px 8px rgba(8,16,24,0.4);
}
body:has(.t2d-landing) input[type=range].cc::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: none;
  cursor: grab; box-shadow: 0 2px 8px rgba(8,16,24,0.4);
}
body:has(.t2d-landing) .calc-out { text-align: right; }
body:has(.t2d-landing) .calc-out .co-cash { font-family: var(--font-mono); font-size: 2rem; color: #fff; line-height: 1; letter-spacing: -0.02em; }
body:has(.t2d-landing) .calc-out .co-unit { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 6px; }
body:has(.t2d-landing) .calc-out .co-plan {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.16); border-radius: 999px; padding: 6px 13px;
  font-size: 0.75rem; font-weight: 600; color: #fff;
}
body:has(.t2d-landing) .calc-out .co-price { font-family: var(--font-mono); font-size: 0.8125rem; color: rgba(255,255,255,0.8); margin-top: 8px; }
/* ---------- Soberanía: figura ---------- */
body:has(.t2d-landing) .sov {
  margin: 30px 0 0; display: grid; grid-template-columns: 300px 1fr; gap: 22px;
  align-items: center; background: var(--ink); border-radius: 16px; overflow: hidden;
}
body:has(.t2d-landing) .sov img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; filter: saturate(0.75); }
body:has(.t2d-landing) .sov figcaption { font-size: 0.875rem; line-height: 1.65; color: rgba(196,216,232,0.75); padding: 22px 26px 22px 0; }
body:has(.t2d-landing) .sov figcaption strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }
/* ---------- CTA final + pie ---------- */
body:has(.t2d-landing) .final { text-align: center; position: relative; overflow: hidden; }
body:has(.t2d-landing) .final-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22; z-index: 0;
  mask-image: radial-gradient(70% 80% at 50% 50%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 0%, transparent 78%);
}
body:has(.t2d-landing) .final .wrap { position: relative; z-index: 1; }
body:has(.t2d-landing) .final h2 {
  font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.02; color: #fff; margin: 0 auto 20px; max-width: 20ch;
}
body:has(.t2d-landing) .final p { font-size: 1.0625rem; line-height: 1.6; color: rgba(196,216,232,0.72); max-width: 52ch; margin: 0 auto 32px; }
body:has(.t2d-landing) .final .hero-cta { justify-content: center; }
body:has(.t2d-landing) .t2d-foot { background: var(--ink-deep); color: rgba(196,216,232,0.6); padding: 56px 0 26px; }
body:has(.t2d-landing) .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
body:has(.t2d-landing) .foot-brand .brand-word { color: #fff; }
body:has(.t2d-landing) .foot-brand p { font-size: 0.8125rem; line-height: 1.6; margin: 14px 0 0; max-width: 34ch; color: rgba(196,216,232,0.55); }
body:has(.t2d-landing) .foot-col h4 {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(143,184,214,0.6); margin: 0 0 14px; font-weight: 400;
}
body:has(.t2d-landing) .foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
body:has(.t2d-landing) .foot-col a { font-size: 0.8125rem; color: rgba(196,216,232,0.62); }
body:has(.t2d-landing) .foot-col a:hover { color: #fff; }
body:has(.t2d-landing) .foot-bar {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(122,168,205,0.12);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: rgba(196,216,232,0.45);
}
body:has(.t2d-landing) .foot-bar .mono { font-family: var(--font-mono); }
/* ---------- Spot 15s ---------- */
body:has(.t2d-landing) .spot-wrap { position: relative; border-radius: 18px; overflow: hidden; background: #000; }
body:has(.t2d-landing) .spot-wrap video { width: 100%; display: block; }
body:has(.t2d-landing) .spot-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8,16,24,0.35); border: none; cursor: pointer; transition: background 0.25s;
}
body:has(.t2d-landing) .spot-play:hover { background: rgba(8,16,24,0.15); }
body:has(.t2d-landing) .spot-play span {
  width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: grid; place-items: center; color: var(--accent-color);
  box-shadow: 0 10px 40px rgba(8,16,24,0.5);
}
body:has(.t2d-landing) .spot-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
body:has(.t2d-landing) .spot-play.hide { display: none; }
body:has(.t2d-landing) .spot-meta {
  display: flex; gap: 20px; align-items: center; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(143,184,214,0.6);
}
/* ---------- Revelado al hacer scroll ---------- */
body:has(.t2d-landing) .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2,0,0.2,1), transform 0.7s cubic-bezier(0.2,0,0.2,1); }
body:has(.t2d-landing) .rv.in { opacity: 1; transform: none; }
/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
body:has(.t2d-landing) .sec-head--split { grid-template-columns: 1fr; gap: 22px; }
body:has(.t2d-landing) .ask { grid-template-columns: 1fr; }
body:has(.t2d-landing) .constel { grid-template-columns: 1fr; }
body:has(.t2d-landing) .mixer { grid-template-columns: 1fr; }
body:has(.t2d-landing) .feat-grid { grid-template-columns: repeat(2, 1fr); }
body:has(.t2d-landing) .case { grid-template-columns: 220px 1fr; }
body:has(.t2d-landing) .case-q { grid-column: 1 / -1; padding: 0 32px 30px; }
body:has(.t2d-landing) .vs-stage { grid-template-columns: 1fr; }
body:has(.t2d-landing) .plans { grid-template-columns: 1fr; }
body:has(.t2d-landing) .plan.hot { transform: none; }
body:has(.t2d-landing) .calc { grid-template-columns: 1fr; gap: 20px; }
body:has(.t2d-landing) .calc-out { text-align: left; }
body:has(.t2d-landing) .foot-grid { grid-template-columns: 1fr 1fr; }
body:has(.t2d-landing) .sov { grid-template-columns: 1fr; }
body:has(.t2d-landing) .sov figcaption { padding: 0 22px 22px; }
}
@media (max-width: 720px) {
body:has(.t2d-landing) .wrap { padding: 0 20px; }
body:has(.t2d-landing) .band { padding: 72px 0; }
/* Aquí el prototipo hacía `.nav-links { display: none }`: sin menú en móvil,
 * porque no tenía hamburguesa. El bloque `@media (max-width: 900px)` del final
 * de esta hoja monta el cajón desplegable y lo oculta con `visibility`, y gana
 * por orden de aparición. Se retira la regla muerta para que ese orden deje de
 * ser lo único que separa un menú móvil funcionando de uno que no existe. */
body:has(.t2d-landing) .hero-inner { padding-top: 110px; }
body:has(.t2d-landing) .hero h1 { max-width: none; }
body:has(.t2d-landing) .feat-grid { grid-template-columns: 1fr; }
body:has(.t2d-landing) .case { grid-template-columns: 1fr; }
body:has(.t2d-landing) .case-img { min-height: 180px; }
body:has(.t2d-landing) .case-body { padding: 24px; }
body:has(.t2d-landing) .case-q { padding: 0 24px 24px; }
body:has(.t2d-landing) .res { grid-template-columns: 26px 1fr; }
body:has(.t2d-landing) .res-bars,
body:has(.t2d-landing) .res-score { grid-column: 2; }
body:has(.t2d-landing) .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================================
   Integración con base.html
   ========================================================================= */

/* La cáscara de la app es una columna flex de altura de viewport:
   `collab.css:151` da `.app-main { flex:1; display:flex; overflow:hidden;
   min-height:0 }` para que las dos tarjetas del drive scrolleen por dentro y
   la página nunca crezca. En una landing eso es exactamente lo contrario de
   lo que hace falta: recortaba las nueve secciones a la altura de la ventana
   y solo se veía el hero.

   Hay que desmontar las CUATRO propiedades: con quitar `overflow` no basta,
   porque `flex:1` + `min-height:0` siguen limitando la altura. */
body:has(.t2d-landing) main.app-main {
  flex: none; min-height: auto; height: auto;
  display: block; overflow: visible;
  padding: 0; gap: 0;
}
body:has(.t2d-landing) { background: #fff; min-height: 100vh; height: auto; overflow-x: hidden; }
html:has(.t2d-landing) { height: auto; }

/* Safari en iOS hace zoom al enfocar cualquier control con tipo < 16 px, y al
 * volver del zoom la página queda desplazada y el teclado ha empujado el
 * layout. `collab.css` ya lo evita para la app; se repite aquí explícitamente
 * porque la landing declara sus propios tamaños en `.field`, `#askInput` y el
 * calculador, y basta con que uno se escape para reproducir el salto.
 * El `<meta viewport>` NO se toca: bloquear el zoom con `maximum-scale` lo
 * arreglaría de paso, pero a costa de la accesibilidad. */
@media (max-width: 768px) {
  body:has(.t2d-landing) input,
  body:has(.t2d-landing) textarea,
  body:has(.t2d-landing) select { font-size: 16px !important; }
}

/* La landing sustituye cabecera y pie por los suyos vía {% block navbar %} y
   {% block footer %}, así que los de la app no llegan a renderizarse aquí.
   Estas reglas son el cinturón por si alguna vez se revierte ese override. */
body:has(.t2d-landing) > .app-header,
body:has(.t2d-landing) > .app-footer { display: none; }

/* El selector de idioma es el partial compartido `_lang_dropdown.html`, que
   vive dentro de la nav oscura hasta que ésta se vuelve `.solid`. */
body:has(.t2d-landing) .t2d-nav .pibico-lang-btn {
  background: transparent; border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
}
body:has(.t2d-landing) .t2d-nav.solid .pibico-lang-btn {
  border-color: rgba(44,81,113,0.25); color: var(--accent-color);
}
body:has(.t2d-landing) .t2d-nav .pibico-lang-menu { z-index: 130; }

/* Enlace de salto: existe en `t2d_base.css`, aquí solo se recoloca sobre la
   nav fija. */
body:has(.t2d-landing) .skip-link:focus { top: 8px; z-index: 140; }

/* ============================================================================
   Menú móvil (patrón canónico de api_memo: `.menu-movil` + `.menu.abierto`)
   ========================================================================= */
body:has(.t2d-landing) .nav-burger {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.28);
  color: #fff; border-radius: 8px; padding: 6px 8px; cursor: pointer; line-height: 0;
}
body:has(.t2d-landing) .t2d-nav.solid .nav-burger {
  border-color: rgba(44,81,113,0.25); color: var(--accent-color);
}
@media (max-width: 900px) {
  body:has(.t2d-landing) .nav-burger { display: block; }
  body:has(.t2d-landing) .nav-links {
    position: fixed; inset: 60px 0 auto 0; display: flex; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: rgba(13,26,38,0.97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(122,168,205,0.18);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  body:has(.t2d-landing) .nav-links.abierto {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  }
  body:has(.t2d-landing) .nav-links a { padding: 13px 0; font-size: 0.9375rem; color: rgba(255,255,255,0.85); }
  body:has(.t2d-landing) .nav-links a + a { border-top: 1px solid rgba(122,168,205,0.14); }
}

/* ============================================================================
   Constelación: alternativa táctil
   El prototipo la explora con `:hover` («Pasa el cursor por un repositorio»),
   que en móvil no existe. El JS marca `.cx.on` al tocar; esto le da el mismo
   destaque que el hover.
   ========================================================================= */
body:has(.t2d-landing) .cx.on,
body:has(.t2d-landing) .cx:hover { background: rgba(122,168,205,0.14); border-color: rgba(122,168,205,0.4); }
@media (hover: none) {
  body:has(.t2d-landing) .constel-note::after { content: " Tócalo para verlo."; }
}

/* ============================================================================
   Tema oscuro — se estrena aquí, acotado a la landing
   Tres estados, porque el visitante tiene tres: elección explícita clara,
   elección explícita oscura, y «lo que diga el sistema» (que no estampa nada).
   La app no lo hereda todavía: eso es la fase 2.
   ========================================================================= */
@media (prefers-color-scheme: dark) {
  body:has(.t2d-landing):not([data-theme="light"]) {
    --bg-paper:    linear-gradient(180deg, #131c24 0%, #0d1a26 100%);
    --text-color:  #dbe5ee;
    --text-light:  #9fb3c5;
    --glass-bg:     rgba(19, 28, 36, 0.82);
    --glass-border: rgba(122, 168, 205, 0.18);
  }
  body:has(.t2d-landing):not([data-theme="light"]) { background: #0d1a26; }
  body:has(.t2d-landing):not([data-theme="light"]) .band--paper,
  body:has(.t2d-landing):not([data-theme="light"]) .band--paper-alt { color: var(--text-color); }
  body:has(.t2d-landing):not([data-theme="light"]) .t2d-nav.solid {
    background: rgba(13,26,38,0.88); border-bottom-color: rgba(122,168,205,0.18);
  }
  body:has(.t2d-landing):not([data-theme="light"]) .t2d-nav.solid .nav-links a,
  body:has(.t2d-landing):not([data-theme="light"]) .t2d-nav.solid .brand-word { color: #dbe5ee; }
}
body[data-theme="dark"]:has(.t2d-landing) {
  --bg-paper:    linear-gradient(180deg, #131c24 0%, #0d1a26 100%);
  --text-color:  #dbe5ee;
  --text-light:  #9fb3c5;
  --glass-bg:     rgba(19, 28, 36, 0.82);
  --glass-border: rgba(122, 168, 205, 0.18);
  background: #0d1a26;
}
body[data-theme="dark"]:has(.t2d-landing) .t2d-nav.solid {
  background: rgba(13,26,38,0.88); border-bottom-color: rgba(122,168,205,0.18);
}
body[data-theme="dark"]:has(.t2d-landing) .t2d-nav.solid .nav-links a,
body[data-theme="dark"]:has(.t2d-landing) .t2d-nav.solid .brand-word { color: #dbe5ee; }

/* Movimiento reducido: el prototipo ya lo respeta en las revelaciones `.rv`;
   esto cubre además el vídeo del hero, que va en autoplay. */
@media (prefers-reduced-motion: reduce) {
  body:has(.t2d-landing) .hero-media video { display: none; }
  body:has(.t2d-landing) .hero-media { background-image: url("/static/images/hero-poster.webp?v=3"); background-size: cover; background-position: center; }
}
