/* GENERADO por scripts/generate-seo-css.mjs — NO editar a mano.
 * Fuente: src/styles/_tokens.css + src/styles/_typography.css + src/styles/_seo-pages.css (UI Kit). */

/* ═══ src/styles/_tokens.css ═══ */
/* ============================================================================
 * UI Kit v2 Design Tokens — Silicon Valley 10/10 Refresh (2026-05-23)
 *
 * Sistema: navy monocromático puro (sin cyan, sin acentos cromáticos).
 * `--brand-primary` INVIERTE entre light y dark mode (patrón Linear / Vercel).
 *
 * Spec: docs/superpowers/specs/2026-05-23-ui-kit-v2-design.md
 * ============================================================================ */

:root {
  /* === Surface (backgrounds, layers) === */
  --surface-1: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f4f4f5;
  --surface-elevated: #ffffff;

  /* === Text === */
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --text-disabled: #a1a1aa;

  /* === Border === */
  --border-subtle: #e4e4e7;
  --border-default: #d4d4d8;
  --border-strong: #71717a;

  /* === Brand === */
  --brand-primary: #09090b;
  --brand-primary-hover: #18181b;
  --brand-primary-active: #27272a;
  --brand-on-primary: #ffffff;

  /* === NeoAI brand (la única familia con color de acento: identifica TODO lo de IA) ===
   * Gradiente violeta→índigo→azul. Úsalo en íconos, badges, botón de envío y bordes
   * de las superficies NeoAI. El acento sólido es para texto/íconos donde el gradiente
   * no aplica; el soft, para fondos tenues. */
  --neoai-from: #7c3aed;
  --neoai-mid: #4f46e5;
  --neoai-to: #2563eb;
  --neoai-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
  --neoai-accent: #6d28d9;
  --neoai-accent-soft: color-mix(in srgb, #7c3aed 12%, transparent);
  --neoai-accent-border: color-mix(in srgb, #7c3aed 28%, transparent);
  --neoai-on-accent: #ffffff;
  --neoai-glow: 0 6px 20px -6px rgba(99, 64, 224, 0.45);

  /* === Focus === */
  --focus-ring: rgba(9, 9, 11, 0.12);
  /* Grosor y separación del anillo de foco. Estaban escritos a mano en cada componente, con lo
     que un cambio de accesibilidad obligaba a tocar veinte archivos. */
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;

  /* Profundidad. No había escala: cada componente inventaba su número y convivían 100 y 1000 para
     lo mismo (un desplegable), así que quién tapaba a quién dependía del archivo. */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-overlay: 1200;
  --z-modal: 1300;
  --z-popover: 1400;
  --z-tooltip: 1500;
  --z-toast: 1600;

  /* La fija en caliente NeoCookieBannerComponent al medir el banner; 0 es el estado sin banner.
     Sin este valor por defecto, el layout que la usa perdía la regla entera antes del primer
     pintado del banner. */
  --cookie-banner-height: 0px;

  /* Ancho máximo del contenido. Vivía escrito a mano en cada layout, así que un cambio de medida
     obligaba a buscarlo por todo el proyecto. */
  --container-max: 1200px;
  --focus-ring-emerald: rgba(16, 185, 129, 0.18);

  /* === Semantic === */
  --semantic-success: #10b981;
  --semantic-success-bg: #ecfdf5;
  --semantic-warning: #f59e0b;
  --semantic-warning-bg: #fffbeb;
  --semantic-error: #ef4444;
  --semantic-error-bg: #fef2f2;

  /* === Inverse surface (sidebar, dark-cards in light theme) ===
   * These tokens do NOT flip in dark mode — sidebar is always-dark per
   * Linear/Stripe pattern. */
  --surface-inverse: #09090b;
  --surface-inverse-elevated: #18181b;
  --text-on-inverse: #ffffff;
  --text-on-inverse-muted: rgba(255, 255, 255, 0.6);
  --text-on-inverse-subtle: rgba(255, 255, 255, 0.4);
  --border-on-inverse: rgba(255, 255, 255, 0.08);
  --border-on-inverse-strong: rgba(255, 255, 255, 0.16);
  --hover-on-inverse: rgba(255, 255, 255, 0.08);
  --active-on-inverse: rgba(255, 255, 255, 0.12);

  /* === Spacing === */
  --space-0: 0;
  --space-px: 1px;
  --space-0_5: 2px;
  --space-1: 4px;
  --space-1_5: 6px;
  --space-2: 8px;
  --space-2_5: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-10: 56px;
  --space-12: 72px;
  --space-16: 96px;
  --space-20: 128px;

  /* === Radii === */
  --radius-none: 0;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* === Layout (fixed regions) ===
   *
   * `--neo-navbar-height` es la altura del NeoNavbarComponent cuando está
   * `position: fixed` al top del viewport. Single source of truth — cualquier
   * page con navbar fixed debe compensar este valor en su padding-top, o
   * envolver el contenido con `.neo-page` (utility class global en styles.css).
   *
   * Si cambias esta altura, debes actualizar también la regla `.neo-navbar`
   * en src/app/ui-kit/components/neo-navbar/neo-navbar.component.css.
   */
  --neo-navbar-height: 102px;
  --neo-navbar-height-scrolled: 94px;

  /* === Shadow stratification === */
  --shadow-xs: 0 1px 1px rgba(9, 9, 11, 0.04);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 1px 2px rgba(9, 9, 11, 0.02);
  --shadow-md: 0 1px 2px rgba(9, 9, 11, 0.04), 0 4px 8px -2px rgba(9, 9, 11, 0.06), 0 8px 16px -4px rgba(9, 9, 11, 0.04);
  --shadow-lg: 0 1px 2px rgba(9, 9, 11, 0.06), 0 8px 16px -4px rgba(9, 9, 11, 0.08), 0 16px 32px -8px rgba(9, 9, 11, 0.08);
  --shadow-xl: 0 1px 3px rgba(9, 9, 11, 0.08), 0 12px 24px -6px rgba(9, 9, 11, 0.10), 0 24px 48px -12px rgba(9, 9, 11, 0.10);
}

/* === Dark mode override === */
[data-theme="dark"] {
  --surface-1: #09090b;
  --surface-2: #18181b;
  --surface-3: #27272a;
  --surface-elevated: #1c1c1f;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-disabled: #52525b;

  --border-subtle: #27272a;
  --border-default: #3f3f46;
  --border-strong: #71717a;

  --brand-primary: #fafafa;
  --brand-primary-hover: #e4e4e7;
  --brand-primary-active: #d4d4d8;
  --brand-on-primary: #09090b;

  --focus-ring: rgba(250, 250, 250, 0.15);
  --focus-ring-emerald: rgba(16, 185, 129, 0.25);

  /* NeoAI en dark: gradiente un poco más luminoso + acento claro legible sobre fondo oscuro */
  --neoai-from: #a78bfa;
  --neoai-mid: #818cf8;
  --neoai-to: #60a5fa;
  --neoai-gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #60a5fa 100%);
  --neoai-accent: #c4b5fd;
  --neoai-accent-soft: color-mix(in srgb, #a78bfa 16%, transparent);
  --neoai-accent-border: color-mix(in srgb, #a78bfa 32%, transparent);
  --neoai-glow: 0 6px 20px -6px rgba(129, 140, 248, 0.5);

  --semantic-success: #10b981;
  --semantic-success-bg: rgba(16, 185, 129, 0.10);
  --semantic-warning: #f59e0b;
  --semantic-warning-bg: rgba(245, 158, 11, 0.10);
  --semantic-error: #f87171;
  --semantic-error-bg: rgba(239, 68, 68, 0.10);

  --shadow-xs: 0 1px 1px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 8px -2px rgba(0, 0, 0, 0.5), 0 8px 16px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 16px -4px rgba(0, 0, 0, 0.6), 0 16px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 1px 3px rgba(0, 0, 0, 0.6), 0 12px 24px -6px rgba(0, 0, 0, 0.7), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}


/* ═══ src/styles/_typography.css ═══ */
/* ============================================================================
 * UI Kit v2 Typography — Inter Variable (Display + Body).
 *
 * Optical sizing: ≥1.25rem usa Inter Display (tracking más cerrado, contraste
 * más alto, optimizado para sizes grandes); <1.25rem usa Inter Body.
 * ============================================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/Inter-Variable.woff2') format('woff2');
  font-variation-settings: 'opsz' 16;
}

@font-face {
  font-family: 'Inter Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/InterDisplay-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/InterDisplay-Variable.woff2') format('woff2');
  font-variation-settings: 'opsz' 32;
}

:root {
  /* Family */
  --font-display: 'Inter Display', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  /* Sizes calibradas para Inter (no 16px-base genérica) */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;     /* umbral Display */
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Tracking */
  --tracking-tightest: -0.04em;
  --tracking-tight: -0.025em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
}

html, body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Optical sizing helpers */
.t-display {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
}

.t-body {
  font-family: var(--font-body);
  letter-spacing: var(--tracking-normal);
}

/* Auto-apply Inter Display a headings via tamaño */
h1, h2 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

h3, h4 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-snug);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

h5, h6 {
  font-family: var(--font-body);
  letter-spacing: var(--tracking-normal);
  font-weight: var(--weight-semibold);
}


/* ═══ src/styles/_seo-pages.css ═══ */
/* ============================================================================
 * Páginas SEO server-rendered (motor B2B: /directorio-judicial detalle,
 * /jurisprudencia). El backend .NET solo enlaza /assets/seo/seo.css; este
 * archivo se compila con `npm run seo:css` (prebuild) concatenando
 * _tokens.css + _typography.css + este archivo → fuente única del design
 * system. NO usar colores/valores raw aquí: solo tokens del UI Kit.
 * ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Navbar: mismo look del navbar público (oscuro, logo blanco, links pill) ── */
.nav { background: #0f1226; height: 84px; display: flex; align-items: center; }
.nav__in {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-5);
  display: flex; align-items: center; gap: var(--space-2);
}
.nav__logo img { display: block; width: 112px; height: 56px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: var(--space-1); list-style: none; padding: 0; margin: 0 auto; }
.nav__links a {
  color: var(--text-on-inverse); font-size: 0.875rem; font-weight: 500;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
}
.nav__links a:hover { background: var(--hover-on-inverse); text-decoration: none; }
.nav__ctas { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }

.btn {
  display: inline-block; font-size: 0.875rem; font-weight: 600;
  padding: 9px 18px; border-radius: var(--radius-full); white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--ghost { color: var(--text-on-inverse); border: 1px solid var(--border-on-inverse); }
.btn--ghost:hover { background: var(--hover-on-inverse); }
.btn--white { background: var(--surface-1); color: var(--brand-primary); }
.btn--white:hover { background: var(--surface-3); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__ctas .btn--ghost { display: none; }
}

main { max-width: 880px; margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-16); }

/* ── Hero de marca (2026-10-09): la miga, el <h1> y el subtítulo de cada página (SeoHtml.SplitHero)
   sobre el navy con retícula y brillos de la home. ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #f8fafc;
  background: radial-gradient(110% 80% at 50% 0%, #1d2147 0%, #0f1226 55%, #080a17 100%);
  padding: var(--space-10) var(--space-5) var(--space-12);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(124, 58, 237, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.13) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000 25%, transparent 80%);
  mask-image: radial-gradient(75% 70% at 50% 40%, #000 25%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(40% 70% at 0% 0%, rgba(219, 39, 119, 0.3), transparent 70%),
    radial-gradient(45% 75% at 100% 100%, rgba(34, 211, 238, 0.22), transparent 70%);
}
.hero__in { max-width: 880px; margin: 0 auto; }
.hero .bc, .hero .bc a { color: rgba(199, 210, 254, 0.78); }
.hero h1 { color: #fff; font-size: clamp(1.875rem, 6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: var(--space-3); overflow-wrap: break-word; }
.hero h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: var(--space-4); border-radius: var(--radius-full); background: linear-gradient(90deg, #f472b6 0%, #a78bfa 45%, #22d3ee 100%); }
.hero .sub { color: rgba(226, 232, 240, 0.85); font-size: 1rem; margin-bottom: 0; }


.bc { font-size: 0.8125rem; color: var(--text-tertiary); margin-bottom: var(--space-5); }
.bc a { color: var(--text-tertiary); }

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2;
  letter-spacing: -0.02em; font-weight: 700; margin-bottom: var(--space-2);
}
.sub { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: var(--space-6); }

.card {
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--space-6);
  margin-bottom: var(--space-4); box-shadow: var(--shadow-xs);
}
.card h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--space-3); }

dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); font-size: 0.9375rem; }
dt { color: var(--text-tertiary); }

.mail { font-family: var(--font-mono); font-size: 0.875rem; word-break: break-all; }
.mail a { color: var(--text-primary); font-weight: 500; }

/* ── CTAs: marca (inverse) e IA (gradiente NeoAI) ── */
.cta { border-radius: var(--radius-lg); padding: var(--space-7); margin: var(--space-6) 0; color: var(--text-on-inverse); }
.cta--brand {
  background:
    radial-gradient(closest-side at 0% 0%, rgba(219, 39, 119, 0.3), transparent 70%),
    radial-gradient(closest-side at 100% 100%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(110% 80% at 50% 0%, #1d2147 0%, #0f1226 55%, #080a17 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 24px 60px rgba(15, 18, 38, 0.22);
}
.cta--ai { background: var(--neoai-gradient); color: var(--neoai-on-accent); }
.cta h2 { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--space-2); }
.cta p { opacity: 0.9; font-size: 0.9375rem; margin-bottom: var(--space-4); max-width: 56ch; }
.cta a {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-1); color: var(--brand-primary);
  font-weight: 600; font-size: 0.875rem; line-height: 1.375; letter-spacing: -0.006em;
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4);
}
.cta a:hover { background: var(--surface-3); text-decoration: none; }

/* The despacho offer asks for the name or radicado right there: the box sends it to /buscar as `q`. */
.cta-search { display: flex; gap: var(--space-2); max-width: 56ch; }
.cta-search input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.9375rem;
  background: var(--surface-1); color: var(--text-primary);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}
.cta-search input:focus-visible { outline: var(--focus-ring-width) solid var(--text-on-inverse); outline-offset: var(--focus-ring-offset); }
.cta-search button {
  font: inherit; font-weight: 600; font-size: 0.875rem; white-space: nowrap; cursor: pointer;
  background: var(--surface-1); color: var(--brand-primary);
  border: 0; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4);
}
.cta-search button:hover { background: var(--surface-3); }
@media (max-width: 480px) { .cta-search { flex-direction: column; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

ul.links { columns: 2; column-gap: var(--space-7); font-size: 0.875rem; list-style: none; padding: 0; }
ul.links li { margin-bottom: 9px; break-inside: avoid; }
ul.links a { color: var(--text-secondary); }
ul.links a:hover { color: var(--text-primary); }
@media (max-width: 640px) { ul.links { columns: 1; } }

/* ── Prosa editorial para texto legal (sentencias) ── */
.prose-wrap {
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 48px);
  margin-bottom: var(--space-4); box-shadow: var(--shadow-xs);
}
.prose { max-width: 70ch; margin: 0 auto; font-size: 1.0625rem; line-height: 1.8; color: var(--text-primary); }
.prose p { margin-bottom: 1.15em; overflow-wrap: break-word; }
.prose p.desc {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-tertiary); margin-bottom: 0.6em;
}
.prose p.fn { font-size: 0.84375rem; line-height: 1.65; color: var(--text-tertiary); margin-bottom: 0.7em; }
.prose p.fn:first-of-type { border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); margin-top: var(--space-7); }
.prose .source { font-size: 0.875rem; color: var(--text-secondary); }

/* Sumario de temas de la relatoría, arriba del texto de la sentencia. Una sola columna
   (a diferencia de ul.links): son frases largas, no enlaces cortos. */
ul.temas { list-style: none; padding: 0; font-size: 0.9375rem; line-height: 1.6; }
ul.temas li { margin-bottom: var(--space-3); color: var(--text-secondary); }
ul.temas li:last-child { margin-bottom: 0; }
ul.temas b {
  display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

.trunc {
  background: var(--semantic-warning-bg); border: 1px solid var(--semantic-warning);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 0.875rem;
}

.pn { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 0.875rem; margin: var(--space-5) 0; }
.pn a {
  display: inline-flex; align-items: center;
  color: var(--text-secondary); border: 1px solid var(--border-default);
  font-weight: 600; font-size: 0.875rem;
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4);
}
.pn a:hover { border-color: var(--border-default); text-decoration: none; }

/* ── Actividad judicial: sección del despacho e Índice de actividad judicial (JudicialActivitySeoPages) ── */
.card h3.act-h3 { font-size: 0.875rem; font-weight: 600; margin-top: var(--space-5); color: var(--text-secondary); }
.act-types { list-style: none; padding: 0; font-size: 0.9375rem; margin-top: var(--space-2); }
.act-types li {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--border-subtle);
}
.act-types li span:last-child { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.act-note { font-size: 0.8125rem; color: var(--text-tertiary); margin-top: var(--space-4); }
.act-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.act-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.act-kpi strong {
  display: block; font-family: var(--font-display); font-size: 1.625rem; font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.act-kpi span { font-size: 0.8125rem; color: var(--text-tertiary); }
.act-table-wrap { overflow-x: auto; margin-top: var(--space-4); }
.act-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.act-table th, .act-table td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.act-table th { color: var(--text-tertiary); font-weight: 500; }
.act-table .num { text-align: right; }
.act-table tr:target td { background: var(--surface-3); }
.act-chart { margin: var(--space-2) 0 0; }
.act-chart svg { display: block; width: 100%; height: auto; }
.act-chart rect { fill: var(--neoai-mid); }
.act-chart text { fill: var(--text-secondary); font-size: 12px; font-family: var(--font-body); }
.act-chart figcaption { font-size: 0.8125rem; color: var(--text-tertiary); margin-top: var(--space-2); }
@media (max-width: 640px) {
  .card dl.act-dl { grid-template-columns: 1fr; }
  .card dl.act-dl dt { margin-top: var(--space-2); }
}

/* ── Footer: mismo look del footer público (oscuro) ── */
footer { background: var(--surface-inverse); color: var(--text-on-inverse-muted); margin-top: var(--space-12); padding: var(--space-10) var(--space-5); }
.foot__in {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap;
  gap: var(--space-6); align-items: center; justify-content: space-between; font-size: 0.8125rem;
}
.foot__in img { width: 112px; height: 56px; object-fit: contain; }
footer a { color: var(--text-on-inverse); }
footer nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
/* The official badge brings its own transparent top/bottom margin: shown whole, never cropped. */
.foot__app { line-height: 0; }
.foot__app img { height: 48px; width: auto; }

/* ── Banda «Para firmas y abogados litigantes» (SeoHtml.ProBand), la misma de las páginas del SPA ── */
.pro {
  position: relative; isolation: isolate; overflow: hidden; color: #f8fafc;
  background: radial-gradient(110% 80% at 50% 0%, #1d2147 0%, #0f1226 55%, #080a17 100%);
  padding: var(--space-16) var(--space-5);
}
.pro::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(124, 58, 237, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.13) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 25%, transparent 80%);
  mask-image: radial-gradient(75% 70% at 50% 45%, #000 25%, transparent 80%);
}
.pro::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(40% 50% at 0% 0%, rgba(219, 39, 119, 0.3), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, rgba(34, 211, 238, 0.22), transparent 70%);
}
.pro__in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-12); align-items: center; }
.pro__pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.8125rem; font-weight: 600; color: #c7d2fe;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-full); padding: var(--space-1) var(--space-3); margin-bottom: var(--space-5);
}
.pro__dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2); }
.pro h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: #fff; margin-bottom: var(--space-4); }
.pro__accent { display: block; background: linear-gradient(90deg, #f472b6 0%, #a78bfa 45%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro__lead { color: rgba(226, 232, 240, 0.85); line-height: 1.7; max-width: 56ch; margin-bottom: var(--space-5); }
.pro__points { list-style: none; padding: 0; margin: 0 0 var(--space-7); display: grid; gap: var(--space-3); }
.pro__points li { position: relative; padding-left: var(--space-7); color: #e2e8f0; font-size: 0.9375rem; line-height: 1.5; }
.pro__points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px;
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 55%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}
.pro__points li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pro__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pro__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 var(--space-6); border-radius: var(--radius-full); font-weight: 700; font-size: 0.9375rem;
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04);
}
.pro__btn:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.pro__btn--primary { color: #0f1226; background: #fff; border-color: #fff; }
.pro__btn--primary:hover { background: #ede9fe; }
.pro__screen {
  display: flex; flex-direction: column; gap: var(--space-3); max-width: 380px; width: 100%; margin: 0 auto;
  padding: var(--space-7) var(--space-4) var(--space-5); border-radius: 36px;
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(219, 39, 119, 0.35), transparent 60%),
    radial-gradient(120% 70% at 90% 100%, rgba(34, 211, 238, 0.3), transparent 60%),
    #11142d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.25);
  transform: rotate(2deg);
}
.pro__clock { text-align: center; font-family: var(--font-display); font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.pro__date { text-align: center; font-size: 0.8125rem; color: rgba(226, 232, 240, 0.85); margin-bottom: var(--space-2); }
.pro__card {
  display: flex; flex-direction: column; gap: 3px; padding: var(--space-3) var(--space-4); border-radius: 18px;
  background: rgba(255, 255, 255, 0.95); color: #0f172a; font-size: 0.78rem; line-height: 1.4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.pro__card > span { color: #475569; }
.pro__card strong { font-size: 0.84rem; }
.pro__head { display: flex; justify-content: space-between; align-items: center; font-size: 0.6875rem; font-weight: 600; color: #64748b; }
.pro__head span { color: #64748b; }
.pro__app { padding: 2px 8px; border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pro__head .pro__app--wa { background: #dcfce7; color: #15803d; }
.pro__head .pro__app--mail { background: #e0e7ff; color: #4338ca; }
.pro__head .pro__app--ai { background: linear-gradient(90deg, #7c3aed, #2563eb); color: #fff; }
.pro__card > .pro__case { font-family: var(--font-mono); font-size: 0.6875rem; color: #6d28d9; overflow-wrap: anywhere; }
.pro__card--ai { background: rgba(17, 20, 45, 0.92); color: #f8fafc; border: 1px solid rgba(167, 139, 250, 0.45); }
.pro__card--ai > span { color: #cbd5e1; }
.pro + footer { margin-top: 0; }
@media (max-width: 900px) {
  .pro { padding: var(--space-12) var(--space-4) var(--space-16); }
  .pro__in { grid-template-columns: 1fr; gap: var(--space-10); }
  .pro__screen { transform: none; }
  .pro__actions { flex-direction: column; }
}

/* ── /descargar: la página de descarga de la app (AppDownloadPage.cs) ─────────────────────────────
   Más ancha que el resto de páginas SEO (main mide 880px): rompe el contenedor hacia los lados para
   que el texto y el teléfono quepan uno junto al otro. */
.dl {
  /* Rediseño 2026-10-09: un panel navy con retícula y brillos neón, la identidad de la home. */
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100vw - 2 * var(--space-5)));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-12); align-items: center;
  padding: var(--space-12) var(--space-12);
  border-radius: 32px; overflow: hidden; isolation: isolate;
  color: #f8fafc;
  background: radial-gradient(110% 90% at 30% 0%, #1d2147 0%, #0f1226 55%, #080a17 100%);
  box-shadow: 0 40px 90px rgba(15, 18, 38, 0.35);
}
.dl::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(124, 58, 237, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.13) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 25%, transparent 85%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 25%, transparent 85%);
}
.dl::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(40% 50% at 0% 0%, rgba(219, 39, 119, 0.32), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, rgba(34, 211, 238, 0.24), transparent 70%);
}
.dl__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.8125rem; font-weight: 600; color: #c7d2fe;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-full); padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-5);
}
.dl__eyebrow i { width: 8px; height: 8px; border-radius: var(--radius-full); background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2); }
.dl h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: var(--space-4); color: #fff; font-weight: 800; }
.dl__accent { display: block; background: linear-gradient(90deg, #f472b6 0%, #a78bfa 45%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl__lead { font-size: 1.0625rem; color: rgba(226, 232, 240, 0.85); max-width: 46ch; margin-bottom: var(--space-6); line-height: 1.7; }
.dl__perks { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: grid; gap: var(--space-4); }
.dl__perks li { display: flex; gap: var(--space-3); align-items: center; font-size: 0.9375rem; color: #f1f5f9; }
.dl__perks svg {
  flex: none; width: 40px; height: 40px; padding: 10px; box-sizing: border-box;
  border-radius: 13px; color: #fff;
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 55%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.dl__perks strong { display: block; font-weight: 700; color: #fff; }
.dl__perks span { color: #cbd5e1; font-size: 0.875rem; }
.dl__stores { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
/* La insignia oficial de Google Play trae margen transparente arriba y abajo (8px a esta altura):
   se compensa para que su borde negro mida y se alinee como lo demás, sin recortarla (las normas
   de la marca piden usarla entera). */
.dl__badge { display: inline-block; margin: -8px 0; line-height: 0; transition: transform 0.15s ease; }
.dl__badge:hover { transform: translateY(-1px); }
.dl__badge img { height: 74px; width: auto; }
.dl__badge--apple img { height: 58px; margin: 8px 0; }
.dl__soon {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 58px; padding: 0 var(--space-5);
  border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0; font-size: 0.875rem; font-weight: 600; background: rgba(255, 255, 255, 0.05);
}
.dl__soon svg { width: 18px; height: 18px; }
.dl__web { font-size: 0.9375rem; color: #cbd5e1; margin: 0; }
.dl__web a { color: #a5f3fc; font-weight: 700; }

.dl__visual { position: relative; display: flex; justify-content: center; padding: var(--space-6) 0; }
.dl__phone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 624 / 1318;
  border-radius: 46px; padding: 12px; background: #05060d; transform: rotate(-4deg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(255, 255, 255, 0.12) inset, 0 0 60px rgba(124, 58, 237, 0.3);
}
/* The screen keeps a side margin of its own (the app's background colour) so the content never touches
   the bezel: the store screenshot is cropped edge to edge. */
.dl__phone img {
  display: block; width: 100%; height: 100%; box-sizing: border-box; object-fit: cover;
  padding: var(--space-2) var(--space-2) 0; background: var(--surface-2); border-radius: 34px;
}
.dl__qr {
  position: absolute; left: 0; bottom: 12%;
  display: flex; align-items: center; gap: var(--space-3); color: #0f172a;
  background: rgba(255, 255, 255, 0.97); border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
}
.dl__qr img { width: 92px; height: 92px; image-rendering: pixelated; border-radius: var(--radius-sm); }
.dl__qr strong { display: block; font-size: 0.9375rem; }
.dl__qr span { display: block; font-size: 0.8125rem; color: #475569; max-width: 16ch; }

@media (max-width: 900px) {
  .dl { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-8) var(--space-5); border-radius: 24px; }
  .dl__qr { display: none; }        /* en el celular el QR no sirve: ya estás en el teléfono */
  .dl__phone { width: min(220px, 58vw); }
  .dl__visual { padding: var(--space-4) 0; }
}
@media (prefers-reduced-motion: reduce) { .dl__badge { transition: none; } }

/* /redes — «Síguenos en redes» (2026-10-14). Reusa el panel navy de /descargar (.dl) y suma un botón
   grande por red. Los enlaces salen de los ajustes (sección Social), no del HTML. */
.rs__list { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.rs__net {
  display: flex; align-items: center; gap: var(--space-4); padding: 14px 16px; border-radius: 18px;
  background: #fff; color: #09090b; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease;
}
.rs__net:hover { transform: translateY(-2px); }
.rs__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.rs__ic svg { width: 26px; height: 26px; }
.rs__net--facebook .rs__ic { background: #1877f2; }
.rs__net--instagram .rs__ic { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rs__net--tiktok .rs__ic { background: #000; }
.rs__net--linkedin .rs__ic { background: #0a66c2; }
.rs__net--youtube .rs__ic { background: #ff0000; }
.rs__txt { display: flex; flex-direction: column; min-width: 0; }
.rs__txt strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.rs__txt span { font-size: 0.85rem; color: #71717a; }
.rs__go {
  margin-left: auto; flex: none; font-size: 0.8125rem; font-weight: 800; color: #fff; padding: 7px 14px;
  border-radius: 999px; background: linear-gradient(135deg, #7c3aed, #2563eb);
}
.rs__visual img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
