/* =========================================================
   Desk Manager — Landing
   HTML + CSS + JS puro. Sin dependencias.
   ========================================================= */

:root {
  /* Marca */
  --blue: #0568fd;
  --blue-ink: #0345aa;
  --blue-tint: #e8f0ff;
  --indigo: #4241c4;
  --violet: #7a5af8;
  --coral: #ee8061;
  --coral-tint: #fdebe5;
  --green: #1f8a5b;
  --green-tint: #e2f3ea;

  /* Neutros */
  --ink: #0a1628;
  --ink-2: #425166;
  --ink-3: #6b7a90;
  --line: #e3e8ef;
  --line-soft: #eef2f7;
  --paper: #ffffff;
  --surface: #f6f9fc;
  --navy: #0a1f44;
  --navy-2: #0e2a5c;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-hero: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 2px 6px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.18), 0 8px 16px -8px rgba(0, 0, 0, 0.2);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: var(--fs-base);
  cursor: pointer; white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: #fff; }

/* Flecha estilo Stripe: el trazo aparece al hacer hover */
.arrow { position: relative; display: inline-block; width: 10px; height: 10px; margin-left: 2px; }
.arrow::before, .arrow::after { content: ""; position: absolute; top: 50%; transition: transform 180ms var(--ease), opacity 180ms var(--ease); }
.arrow::after { right: 1px; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translate(-3px, -50%) rotate(45deg); }
.arrow::before { right: 1px; width: 10px; height: 2px; background: currentColor; transform: translateY(-50%) scaleX(0); transform-origin: right; opacity: 0; }
a:hover .arrow::after, button:hover .arrow::after { transform: translate(0, -50%) rotate(45deg); }
a:hover .arrow::before, button:hover .arrow::before { transform: translateY(-50%) scaleX(1); opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease), backdrop-filter 220ms;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand img { height: 30px; width: auto; }
.nav { margin-right: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: background-color 160ms var(--ease); }
.nav-list a:hover { background: rgba(10, 22, 40, 0.06); }
.nav-mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.link-login { font-weight: 600; font-size: 0.95rem; padding: 8px 6px; }
.link-login:hover { color: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 200ms var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 120px; overflow: hidden; isolation: isolate; }
.hero-gradient {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 100%;
  transform-origin: top left; transform: skewY(-8deg); overflow: hidden;
  top: -40%;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 52%);
  mask-image: linear-gradient(100deg, transparent 18%, #000 52%);
}
.hero-gradient canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  backdrop-filter: blur(8px); transition: border-color 180ms var(--ease);
}
.pill:hover { border-color: var(--ink-3); }
.pill-tag { background: var(--ink); color: #fff; font-weight: 600; font-size: var(--fs-xs); padding: 3px 10px; border-radius: 999px; }
.hero h1 { margin-top: 24px; font-size: var(--fs-hero); font-weight: 750; letter-spacing: -0.04em; line-height: 1.0; max-width: 13ch; }
.grad-text { background: linear-gradient(95deg, var(--blue) 0%, var(--indigo) 55%, var(--coral) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: var(--fs-sm); color: var(--ink-3); }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%231f8a5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Mockups del hero */
.hero-visual { position: relative; min-height: 520px; }
.app-window {
  position: absolute; top: 8px; left: 0; width: 640px; max-width: none;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: 13px;
}
.app-bar { display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 12px; background: #f3f5f9; border-bottom: 1px solid var(--line-soft); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #dde2ea; }
.app-url { flex: 1; max-width: 260px; margin-inline: auto; padding: 2px 12px; border-radius: 6px; background: #fff; color: var(--ink-3); font-size: 11px; text-align: center; transform: translateX(-24px); }
.app-body { display: grid; grid-template-columns: 52px 1fr; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; background: var(--navy); }
.app-mark { width: 26px; margin-bottom: 8px; filter: brightness(1.3); }
.side-ico { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.side-ico.is-active { background: var(--blue); box-shadow: 0 0 0 4px rgba(5, 104, 253, 0.25); }
.app-main { padding: 18px 20px 20px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; }
.eyebrow-s { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.app-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; }
.kpi p { font-size: 11px; color: var(--ink-3); }
.kpi strong { font-size: 17px; letter-spacing: -0.02em; }
.chart { position: relative; margin-top: 14px; height: 130px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.grid-lines line { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.line-in { stroke: var(--blue); }
.line-out { stroke: var(--coral); stroke-dasharray: 4 4; }
.chart-legend { position: absolute; top: 0; right: 0; display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); }
.lg::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.lg-in::before { background: var(--blue); }
.lg-out::before { background: var(--coral); }
.rows { margin-top: 12px; border-top: 1px solid var(--line-soft); }
.row { display: grid; grid-template-columns: 72px 1fr auto 74px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.r-id { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.r-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-amt { text-align: right; font-weight: 600; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-blue { background: var(--blue-tint); color: var(--blue-ink); }
.chip-green { background: var(--green-tint); color: var(--green); }
.chip-coral { background: var(--coral-tint); color: #b9472a; }

.phone {
  position: absolute; right: -10px; top: 150px; width: 230px; height: 440px;
  background: #0b0f17; border-radius: 36px; padding: 9px; box-shadow: var(--shadow-lg);
}
.phone-notch { position: absolute; top: 16px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #0b0f17; z-index: 2; }
.phone-screen { position: relative; height: 100%; border-radius: 28px; background: linear-gradient(180deg, #f3f6fb 0%, #fff 60%); padding: 44px 12px 12px; overflow: hidden; font-size: 12px; }
.phone-time { position: absolute; top: 14px; left: 22px; font-weight: 700; font-size: 12px; }
.toast { display: flex; gap: 10px; align-items: center; padding: 10px; background: rgba(255, 255, 255, 0.95); border-radius: 14px; box-shadow: var(--shadow-md); }
.toast-mark { width: 26px; height: 26px; padding: 4px; background: var(--blue-tint); border-radius: 7px; }
.toast-title { font-weight: 700; font-size: 12px; }
.toast-text { font-size: 10.5px; color: var(--ink-3); }
.phone-card { margin-top: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line-soft); }
.phone-total { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; }
.phone-steps { display: flex; gap: 4px; margin-top: 10px; }
.ps { flex: 1; padding-top: 6px; border-top: 3px solid var(--line); font-size: 9.5px; color: var(--ink-3); }
.ps.done { border-color: var(--blue); color: var(--ink-2); }
.ps.now { border-color: var(--coral); color: var(--ink); font-weight: 600; }
.phone-btn { display: block; margin-top: 12px; padding: 8px; border-radius: 999px; background: var(--blue); color: #fff; text-align: center; font-weight: 600; }
.phone-list { margin-top: 10px; }
.phone-list div { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: var(--ink-2); }
.phone-list b { color: var(--ink); }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line-soft); background: var(--surface); }
.strip-inner { display: flex; align-items: center; gap: 32px; padding-block: 22px; }
.strip-label { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; }
.strip-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; flex: 1; }
.strip-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; }
.strip-ico { width: 22px; height: 22px; background: var(--blue); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ico-sat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.ico-cloud { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19H7a5 5 0 1 1 1.1-9.9A6 6 0 0 1 19.6 11 4 4 0 0 1 17.5 19z'/%3E%3C/svg%3E"); }
.ico-users { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 12 0v1M16 4a4 4 0 0 1 0 8M22 21v-1a6 6 0 0 0-4-5.6'/%3E%3C/svg%3E"); }
.ico-phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.ico-mx { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 10.5h.01M12 10.5h.01M15.5 10.5h.01'/%3E%3C/svg%3E"); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(80px, 10vw, 136px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow { font-size: var(--fs-sm); font-weight: 650; color: var(--blue); letter-spacing: 0.01em; margin-bottom: 14px; }
.section h2 { font-size: var(--fs-xl); letter-spacing: -0.035em; }
.section-lead { margin-top: 20px; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

/* ---------- Tabs de producto ---------- */
.tab-list { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: 0.95rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tab-progress { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--line); opacity: 0; }
.tab-progress::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: inherit; }
.tab[aria-selected="true"] .tab-progress { opacity: 1; }

.tab-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 40px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering .panel-copy, .tab-panel.is-entering .panel-visual { animation: panelIn 420ms var(--ease) both; }
.tab-panel.is-entering .panel-visual { animation-delay: 60ms; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.03em; }
.panel-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3 8.6 13 14 7' fill='none' stroke='%230568fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

.panel-visual {
  position: relative; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(122, 90, 248, 0.22), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, rgba(5, 104, 253, 0.2), transparent 60%),
    linear-gradient(135deg, #eef3ff, #f7f2ff);
}
.card-ui { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px; font-size: 14px; }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.doc-id { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; }
.doc-meta dt { font-size: 11px; color: var(--ink-3); }
.doc-meta dd { font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); text-align: left; padding: 10px 0 8px; border-bottom: 1px solid var(--line-soft); }
.doc-table td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.doc-table .r { text-align: right; padding-left: 12px; }
.doc-table td.r { color: var(--ink-2); white-space: nowrap; }
.doc-table td:last-child { color: var(--ink); font-weight: 600; }
.doc-totals { margin-left: auto; width: min(260px, 100%); padding-top: 12px; }
.doc-totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); }
.doc-totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 17px; }

.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.inv-parties p:nth-child(2) { font-weight: 600; margin-top: 2px; }
.inv-parties .mono { color: var(--ink-3); }
.inv-uuid { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.inv-uuid .mono { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--surface); color: var(--ink-2); word-break: break-all; }
.inv-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 18px 0; }
.if-step { font-size: 12px; color: var(--ink-3); }
.if-step span { display: block; height: 4px; margin-bottom: 8px; border-radius: 4px; background: var(--line); }
.if-step.done span { background: var(--green); }
.if-step.done { color: var(--ink-2); }
.if-step.now span { background: linear-gradient(90deg, var(--green) 50%, var(--line) 50%); }
.if-step.now { color: var(--ink); font-weight: 600; }
.inv-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.inv-foot strong { font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }

.stock-list { padding: 8px 0; }
.stock-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 72px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.sl-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-list .num { text-align: right; color: var(--ink-2); font-size: 13px; }
.bar { height: 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--indigo)); }
.bar.low i { background: var(--coral); }
.request { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--coral-tint); }
.request p:last-child { font-weight: 500; font-size: 13px; }
.mini-btn { padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; font-size: 10px; font-weight: 700; color: hsl(var(--h) 60% 35%); background: hsl(var(--h) 80% 93%); vertical-align: middle; }

.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 170px; padding: 20px 4px 0; align-items: end; }
.b { position: relative; display: flex; gap: 4px; align-items: flex-end; height: calc(100% - 22px); justify-content: center; }
.b i { width: 40%; max-width: 18px; height: var(--h); border-radius: 5px 5px 2px 2px; transform-origin: bottom; }
.b .in { background: linear-gradient(180deg, var(--blue), var(--indigo)); }
.b .out { background: #f6b6a3; }
.b span { position: absolute; bottom: -22px; font-size: 11px; color: var(--ink-3); }
.tab-panel.is-entering .b i { animation: grow 700ms var(--ease) both; }
.tab-panel.is-entering .b:nth-child(2) i { animation-delay: 50ms; }
.tab-panel.is-entering .b:nth-child(3) i { animation-delay: 100ms; }
.tab-panel.is-entering .b:nth-child(4) i { animation-delay: 150ms; }
.tab-panel.is-entering .b:nth-child(5) i { animation-delay: 200ms; }
.tab-panel.is-entering .b:nth-child(6) i { animation-delay: 250ms; }
@keyframes grow { from { transform: scaleY(0); } }
.accounts { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.accounts div { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.accounts b { margin-left: auto; color: var(--ink); }
.acc-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* ---------- Flujo (dark) ---------- */
.flow { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.flow-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 104, 253, 0.45), transparent), radial-gradient(closest-side at 70% 60%, rgba(122, 90, 248, 0.35), transparent);
  filter: blur(40px);
}
.section-head.on-dark .eyebrow { color: #7fb0ff; }
.section-head.on-dark .section-lead { color: rgba(255, 255, 255, 0.72); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 24px 20px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.step::after { content: ""; position: absolute; top: 38px; right: -17px; width: 18px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05)); }
.step:last-child::after { display: none; }
.step.is-lit { background: rgba(5, 104, 253, 0.16); border-color: rgba(127, 176, 255, 0.55); transform: translateY(-4px); }
.step-n { font-family: var(--mono); font-size: 12px; color: #7fb0ff; }
.step h3 { margin-top: 18px; font-size: 1.6rem; }
.step-mod { margin-top: 4px; font-size: var(--fs-sm); font-weight: 600; color: #ffb59f; }
.step p:last-child { margin-top: 12px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.5; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 96px); padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.facts dt { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #fff, #9fc2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts dd { margin-top: 10px; color: rgba(255, 255, 255, 0.7); max-width: 24ch; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.tile:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.tile-copy p { margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile-wide .tile-copy { flex: 0.9; }
.tpu { flex: 1.1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 6px 16px; font-size: 13px; border: 1px solid var(--line-soft); }
.tpu-head { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; font-weight: 700; border-bottom: 1px solid var(--line-soft); }
.tpu-head b { color: var(--blue); }
.tpu-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.tpu-row:last-child { border-bottom: 0; }
.tpu-row b { color: var(--ink); }
.tag { justify-self: start; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.t-mat { background: var(--blue-tint); color: var(--blue-ink); }
.t-mo { background: var(--coral-tint); color: #b9472a; }
.t-eq { background: #efeafe; color: #5b3fd6; }
.t-ind { background: var(--green-tint); color: var(--green); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border-radius: 6px; background: #fff; border: 1px solid var(--line-soft); }
.cal .v { background: var(--blue); border-color: var(--blue); }
.cal .a { background: var(--coral); border-color: var(--coral); }
.cal .h { background: var(--green-tint); border-color: #bfe3cf; }

.files { display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; font-size: 13px; font-weight: 500; }
.file b { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 6px; font-size: 10px; color: #fff; }
.f-pdf b { background: #e5484d; }
.f-dwg b { background: var(--indigo); }
.f-xml b { background: var(--green); }

.notifs { display: grid; gap: 8px; }
.nt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm); }
.nt:nth-child(2) { margin-left: 14px; }
.nt:nth-child(3) { margin-left: 28px; }
.nt i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }

.tile-grad { color: #fff; border: 0; background: linear-gradient(110deg, var(--blue) 0%, var(--indigo) 60%, var(--violet) 100%); }
.tile-grad .tile-copy p { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.tile-grad h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); max-width: 22ch; }
.devices { position: relative; height: 130px; transform: scale(0.82); transform-origin: left bottom; }
.dv { position: absolute; bottom: 0; border: 2px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.12); }
.dv-laptop { left: 0; width: 210px; height: 130px; border-radius: 10px 10px 0 0; }
.dv-laptop::after { content: ""; position: absolute; left: -18px; right: -18px; bottom: -8px; height: 8px; border-radius: 0 0 8px 8px; background: rgba(255, 255, 255, 0.9); }
.dv-tablet { left: 170px; width: 92px; height: 120px; border-radius: 10px; background: rgba(255, 255, 255, 0.2); }
.dv-phone { left: 250px; width: 48px; height: 90px; border-radius: 10px; background: rgba(255, 255, 255, 0.28); }

/* ---------- Giros ---------- */
.industries { background: var(--surface); }
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ind { padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); transition: box-shadow 220ms var(--ease), transform 220ms var(--ease); }
.ind:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ind-ico { display: block; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-tint); position: relative; }
.ind-ico::after { content: ""; position: absolute; inset: 12px; background: var(--blue); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ico-build { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20h20M5 20V9l7-5 7 5v11M9 20v-6h6v6'/%3E%3C/svg%3E"); }
.ico-store { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l2-5h14l2 5M3 9h18v2a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0zM5 13v7h14v-7'/%3E%3C/svg%3E"); }
.ico-brief { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.ind:nth-child(2) .ind-ico { background: var(--coral-tint); }
.ind:nth-child(2) .ind-ico::after { background: var(--coral); }
.ind:nth-child(3) .ind-ico { background: #efeafe; }
.ind:nth-child(3) .ind-ico::after { background: var(--violet); }
.ind h3 { margin-top: 24px; font-size: 1.35rem; letter-spacing: -0.02em; }
.ind ul { margin-top: 18px; display: grid; gap: 12px; color: var(--ink-2); }
.ind li { position: relative; padding-left: 22px; }
.ind li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; border-radius: 2px; background: var(--blue); }

/* ---------- Seguridad ---------- */
.sec-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.sec-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.perms { padding-bottom: 14px; }
.perm-row, .perm-legend { display: grid; grid-template-columns: 1fr 40px 40px 40px; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.perm-legend { border: 0; padding-bottom: 0; font-size: 11px; color: var(--ink-3); text-align: center; font-weight: 400; }
.sw { justify-self: center; position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--line); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 200ms var(--ease); }
.sw.on { background: var(--blue); }
.sw.on::after { transform: translateX(12px); }
.sec-list { display: grid; gap: 28px; }
.sec-list dt { font-weight: 700; font-size: 1.1rem; }
.sec-list dd { margin-top: 6px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq-grid .btn { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: block; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { color: var(--blue); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: clamp(96px, 12vw, 160px); background: var(--navy); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg canvas { width: 100%; height: 100%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 68, 0.75) 0%, rgba(10, 31, 68, 0.15) 70%); }
.cta-inner h2 { font-size: var(--fs-xl); letter-spacing: -0.035em; max-width: 18ch; }
.cta-inner p { margin-top: 18px; font-size: var(--fs-md); color: rgba(255, 255, 255, 0.84); max-width: 46ch; }
.cta :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin-top: 16px; color: var(--ink-3); font-size: 0.95rem; max-width: 30ch; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); transition: border-color 160ms, color 160ms; color: var(--ink-2); }
.social a:hover { border-color: var(--blue); color: var(--blue); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer h4 { font-size: var(--fs-sm); font-weight: 650; margin-bottom: 14px; }
.footer nav li + li { margin-top: 10px; }
.footer nav a { color: var(--ink-3); font-size: 0.95rem; }
.footer nav a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--ink-3); }
.foot-bottom ul { display: flex; gap: 20px; }
.foot-bottom a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero .phone[data-reveal] { transition-delay: 180ms; }
.js .bento [data-reveal]:nth-child(2), .js .ind-grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.js .bento [data-reveal]:nth-child(3), .js .ind-grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.js .bento [data-reveal]:nth-child(4) { transition-delay: 240ms; }

.line-in, .line-out { stroke-dasharray: 1000; }
.line-out { stroke-dasharray: 4 4; }
.js .hero .line-in { stroke-dashoffset: 1000; animation: draw 1.6s 300ms var(--ease) forwards; }
.js .hero .area { opacity: 0; animation: fade 900ms 900ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-window { width: 560px; }
  .phone { right: -20px; }
}

@media (max-width: 960px) {
  .nav { position: fixed; inset: 72px 0 auto 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-list a:hover { background: transparent; color: var(--blue); }
  .nav-mobile-only { display: block; }
  .header-inner { justify-content: space-between; }
  .link-login { display: none; }
  .menu-btn { display: block; }
  .site-header.menu-open { background: #fff; }

  .hero { padding: 120px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 14ch; }
  .hero-gradient { top: 0; height: 62%; transform: none; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); opacity: 0.5; }
  .hero-visual { min-height: 0; padding-bottom: 40px; }
  .app-window { position: relative; width: 100%; top: 0; }
  .phone { top: auto; bottom: -10px; right: 8px; transform: scale(0.82); transform-origin: bottom right; }
  .js .hero .phone[data-reveal].is-in { transform: scale(0.82); }

  .strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .strip-list { justify-content: flex-start; }

  .tab-panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 20px; }
  .step::after { top: auto; bottom: -12px; left: 43px; right: auto; width: 2px; height: 14px; background: rgba(255, 255, 255, 0.25); }
  .step-n { grid-row: span 3; padding-top: 6px; }
  .step h3 { margin-top: 0; font-size: 1.35rem; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }

  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .tile-grad { grid-column: span 2; }
  .devices { transform: none; }
  .ind-grid { grid-template-columns: 1fr; }
  .sec-grid, .faq-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .header-actions .btn { display: none; }
  .hero-gradient { height: 48%; }
  .app-window { font-size: 12px; }
  .app-body { grid-template-columns: 40px 1fr; }
  .app-main { padding: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .r-id, .row .chip { display: none; }
  .app-url { display: none; }
  .phone { display: none; }
  .hero-visual { padding-bottom: 0; }
  .cta-row .btn { flex: 1 1 100%; }

  .tab-list { width: 100%; border-radius: 14px; }
  .doc-table th:nth-child(2), .doc-table td:nth-child(2) { display: none; }
  .payroll .doc-table th:nth-child(2), .payroll .doc-table td:nth-child(2) { display: none; }
  .card-ui { padding: 16px; font-size: 13px; }
  .stock-list li { grid-template-columns: 1fr 64px; }
  .stock-list .bar { grid-column: 1 / -1; grid-row: 2; }
  .inv-flow { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }

  .bento { grid-template-columns: 1fr; }
  .tile-wide, .tile-grad { grid-column: auto; flex-direction: column; align-items: stretch; }
  .cal { max-width: 300px; }
  .tile { padding: 22px; }
  .tpu-row { grid-template-columns: 1fr auto; }
  .tpu-row .tag { grid-column: 1 / -1; }
  .devices { flex-basis: auto; height: 130px; transform: scale(0.85); transform-origin: left bottom; }
  .sec-visual { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0ms !important; animation-delay: 0ms !important; transition-duration: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Páginas internas: compartido
   ========================================================= */
.nav-list a[aria-current="page"] { background: rgba(5, 104, 253, 0.08); color: var(--blue-ink); }
.note { font-weight: 400; color: var(--ink-3); font-size: 0.85em; }
.muted { color: var(--ink-3); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.split .checks { margin-top: 28px; }

/* =========================================================
   Precios
   ========================================================= */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 148px 0 clamp(72px, 9vw, 112px); }
.pricing-hero .hero-gradient { top: -55%; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 75%); mask-image: linear-gradient(180deg, #000 20%, transparent 75%); opacity: 0.55; }
.page-hero-copy.center { text-align: center; max-width: 760px; margin-inline: auto; }
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -0.04em; font-weight: 750; }
.page-hero-copy.center .lead { margin-inline: auto; max-width: 56ch; }

.billing-toggle { display: inline-flex; gap: 4px; margin-top: 32px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.billing-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.billing-toggle button[aria-checked="true"] { background: var(--ink); color: #fff; }
.save { padding: 2px 8px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 12px; font-weight: 700; }
.billing-toggle button[aria-checked="true"] .save { background: rgba(255, 255, 255, 0.16); color: #9ff0c4; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan-popular { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(95deg, var(--blue), var(--indigo)); color: #fff; font-size: 12px; font-weight: 700; }
.plan-name { font-size: 1.35rem; letter-spacing: -0.02em; }
.plan-desc { margin-top: 8px; min-height: 4.6em; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 20px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { color: var(--ink-3); font-weight: 500; }
.plan-billed { margin-top: 6px; min-height: 1.5em; font-size: var(--fs-sm); color: var(--ink-3); }
.plan-cta { margin-top: 20px; width: 100%; }
.plan-limits { margin-top: 24px; padding: 16px 0; border-block: 1px solid var(--line-soft); display: grid; gap: 8px; font-size: 0.95rem; color: var(--ink-2); }
.plan-limits b { color: var(--ink); }
.plan-includes { margin-top: 20px; font-size: var(--fs-sm); font-weight: 650; }
.plan-features { margin-top: 12px; display: grid; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.plan-features li { position: relative; padding-left: 26px; }
.plan-features li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%230568fd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan-features a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.plans-note { margin-top: 28px; text-align: center; color: var(--ink-3); font-size: 0.95rem; }

/* Calculadora */
.estimator-sec { background: var(--surface); }
.estimator { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.est-form { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); }
.est-group { margin: 0 0 8px; padding: 0; border: 0; }
.est-group legend { font-weight: 650; margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.seg button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.est-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); transition: opacity 200ms var(--ease); }
.est-row:last-of-type { border-bottom: 0; }
.est-row.is-disabled { opacity: 0.45; }
.est-label { font-weight: 600; }
.est-help { font-size: var(--fs-sm); color: var(--ink-3); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.stepper button:hover:not(:disabled) { background: var(--surface); }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.est-locked { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--blue-tint); color: var(--blue-ink); font-size: var(--fs-sm); }
.est-summary { position: sticky; top: 96px; padding: 28px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(122, 90, 248, 0.5), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow-lg); }
.est-summary .eyebrow-s { color: #9fc2ff; }
.est-lines { margin-top: 16px; display: grid; gap: 10px; }
.est-lines li { display: flex; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.est-lines li b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.est-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.est-total strong { font-size: 2.2rem; letter-spacing: -0.03em; }
.est-foot { margin-top: 8px; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.66); }
.est-cta { margin-top: 22px; width: 100%; }

/* Comparativa */
.compare-scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.compare thead th { position: sticky; top: 0; background: #fff; font-size: 1.05rem; padding-block: 20px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare tbody th a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.compare .grp th { background: var(--surface); font-size: var(--fs-sm); font-weight: 650; color: var(--ink); padding-block: 10px; }
.compare .hl { background: rgba(5, 104, 253, 0.045); }
.compare thead .hl { color: var(--blue-ink); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare i { display: inline-block; width: 20px; height: 20px; vertical-align: middle; border-radius: 50%; }
.compare i.yes { background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3 8.6 13 14 7' fill='none' stroke='%230568fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.compare i.no { width: 12px; height: 2px; border-radius: 2px; background: var(--line); }

/* Timbres */
.stamps-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stamp { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 22px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stamp-best { border: 2px solid var(--green); background: linear-gradient(180deg, #f2fbf6, #fff); }
.st-tag { position: absolute; top: -11px; left: 16px; padding: 2px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; }
.st-qty { font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.st-lbl { color: var(--ink-3); font-size: var(--fs-sm); }
.stamp b { margin-top: 14px; font-size: 1.2rem; }
.st-unit { font-size: var(--fs-sm); color: var(--ink-3); }

/* =========================================================
   Almacén
   ========================================================= */
.warm-text { background: linear-gradient(95deg, var(--coral) 0%, var(--violet) 60%, var(--indigo) 100%); -webkit-background-clip: text; background-clip: text; }
.kpis-4 { grid-template-columns: repeat(4, 1fr); }
.kpis-4 .kpi strong { font-size: 15px; }
.kpi.alert-red strong { color: #d4363b; }
.kpi.alert-amber strong { color: #b86200; }
.inv { margin-top: 14px; border-top: 1px solid var(--line-soft); }
.inv-row { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.inv-head { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); padding-block: 8px; }
.inv-row > span:first-child b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-row i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.inv-row > span:nth-child(2) { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-row .r { text-align: right; }
.inv-row .r b { display: block; }
em.ok, em.warn, em.info, em.bad { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 600; }
em.ok { color: var(--green); }
em.warn { color: #b86200; }
em.info { color: var(--blue-ink); }
em.bad { color: #d4363b; }
.neg { color: #d4363b; }
.pos { color: var(--green); }
.loan-lines { margin-top: 8px; }
.loan-lines div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; color: var(--ink-2); }
.loan-lines b { color: var(--ink); }

.chips-list { justify-content: flex-start; gap: 8px; }
.chips-list li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; }

.stockcard { font-size: 14px; }
.sc-bar { display: flex; height: 12px; margin: 22px 0 18px; border-radius: 12px; overflow: hidden; background: var(--line-soft); }
.sc-bar i { width: var(--w); }
.sc-free { background: linear-gradient(90deg, var(--blue), var(--indigo)); }
.sc-res { background: #f6b6a3; }
.sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sc-grid dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.sc-grid dd { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.sc-grid dd small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.sc-grid .em dd { color: var(--blue-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.d-free { background: var(--blue); }
.d-res { background: #f6b6a3; }
.d-in { background: var(--green); }
.sc-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.sc-levels div { padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.sc-levels span { display: block; font-size: 11.5px; color: var(--ink-3); }
.sc-levels b { font-size: 1rem; }

.steps-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps-6 .step h3 { font-size: 1.35rem; }

.frow { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.frow + .frow { margin-top: clamp(64px, 9vw, 112px); }
.frow.rev .frow-copy { order: 2; }
.frow-copy h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.03em; }
.frow-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }

.loan-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.loan-list li:last-child { border-bottom: 0; }
.loan-list .avatar { margin: 0; flex-shrink: 0; width: 34px; height: 34px; font-size: 11px; }
.loan-list div { flex: 1; min-width: 0; }
.loan-list b { display: block; }
.loan-list i { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loan-list em { font-size: 12px; white-space: nowrap; }

.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px 0; }
.rt-node b { display: block; font-family: var(--mono); font-size: 13px; }
.rt-node span { font-size: 12.5px; color: var(--ink-3); }
.rt-node:last-child { text-align: right; }
.rt-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px); }
.rt-line i { position: absolute; top: 50%; left: 55%; width: 26px; height: 18px; transform: translate(-50%, -50%); border-radius: 5px; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-tint); }
.js .rt-line i { animation: truck 3.6s var(--ease) infinite alternate; }
@keyframes truck { from { left: 12%; } to { left: 88%; } }
.miss { color: #b86200; font-weight: 600; }
.progress { height: 6px; margin: 16px 0 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.progress i { display: block; width: var(--w); height: 100%; background: linear-gradient(90deg, var(--green), #35b37a); border-radius: inherit; }

.mini-sec { background: var(--surface); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); }
.mini h3 { margin-top: 18px; font-size: 1.15rem; letter-spacing: -0.015em; }
.mini p { margin-top: 8px; color: var(--ink-2); font-size: 0.97rem; }
.mini-ico { display: block; position: relative; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); }
.mini-ico::after { content: ""; position: absolute; inset: 11px; background: var(--c); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.mini-ico[data-i="move"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M7 4 3 8M7 4l4 4M17 20V4M17 20l-4-4M17 20l4-4'/%3E%3C/svg%3E"); }
.mini-ico[data-i="undo"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10h-3'/%3E%3C/svg%3E"); }
.mini-ico[data-i="box"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.mini-ico[data-i="doc"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3C/svg%3E"); }
.mini-ico[data-i="stack"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20h20M4 20V10l8-6 8 6v10'/%3E%3Cpath d='M9 20v-5h6v5'/%3E%3C/svg%3E"); }
.mini-ico[data-i="cart"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h3l2.6 12.4a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L21 7H6'/%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='18' cy='21' r='1'/%3E%3C/svg%3E"); }

.price-call { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: radial-gradient(90% 120% at 100% 0%, rgba(238, 128, 97, 0.18), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(5, 104, 253, 0.14), transparent 60%), linear-gradient(135deg, #f3f6ff, #fbf5ff); border: 1px solid var(--line-soft); }
.pc-copy h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.035em; }
.pc-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 48ch; }
.pc-prices { display: grid; gap: 12px; }
.pc-item { padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.pc-amt { margin-top: 4px; font-size: 2.4rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }
.pc-amt span { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.pc-sub { color: var(--ink-3); font-size: var(--fs-sm); }

/* ---------- Responsive páginas internas ---------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-6 .step::after { display: none; }
  .stamps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .page-hero { padding: 120px 0 64px; }
  .pricing-hero .hero-gradient { top: 0; height: 60%; }
  .estimator { grid-template-columns: 1fr; }
  .est-summary { position: static; }
  .split, .frow, .price-call { grid-template-columns: minmax(0, 1fr); }
  .frow.rev .frow-copy { order: 0; }
  .steps-6 { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
  .seg { grid-template-columns: 1fr 1fr; }
  .est-form, .est-summary { padding: 20px; }
  .est-row { flex-wrap: wrap; }
  .stamps { grid-template-columns: 1fr 1fr; }
  .billing-toggle button { padding: 0 14px; }
  .kpis-4 { grid-template-columns: 1fr 1fr; }
  .kpis-4 .kpi:last-child { display: block; }
  .inv-row { grid-template-columns: 1fr auto; }
  .inv-row > span:nth-child(2) { display: none; }
  .sc-grid, .sc-levels { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; text-align: center; }
  .rt-node:last-child { text-align: center; }
  .rt-line { height: 40px; width: 2px; margin-inline: auto; background: repeating-linear-gradient(180deg, var(--blue) 0 6px, transparent 6px 12px); }
  .rt-line i { left: 50% !important; top: 50%; animation: none !important; }
}
.text-link { color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; text-decoration: none; }
.text-link.more:hover { color: var(--blue); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   Facturación
   ========================================================= */
.inv-client { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 14px; }
.inv-client > div { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; }
.inv-client p { font-size: 12px; }
.inv-client .mono { color: var(--ink-3); font-size: 10.5px; }
.inv-lines { margin-top: 12px; border-top: 1px solid var(--line-soft); }
.il { display: grid; grid-template-columns: 1.7fr 0.8fr 0.9fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.il-head { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.il b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.il .mono { color: var(--ink-2); font-size: 11px; }
.il .r { text-align: right; font-weight: 600; }
.inv-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.inv-bottom .doc-totals { width: 220px; margin: 0; font-size: 12.5px; }
.inv-bottom .doc-totals .grand { font-size: 15px; }
.inv-actions { display: flex; gap: 8px; padding-bottom: 4px; }
.mini-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.mini-btn.blue { background: var(--blue); }
.ph-uuid { margin-top: 2px; color: var(--ink-3); font-size: 10px; }

.types-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.type-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.type-code { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.type-card h3 { margin-top: 18px; font-size: 1.2rem; letter-spacing: -0.015em; }
.type-card p { margin-top: 8px; color: var(--ink-2); font-size: 0.97rem; }

.tax-profiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tax-profiles li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; }
.tax-lines { margin-top: 8px; }
.tax-lines div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.tax-lines .add dd { color: var(--green); }
.tax-lines .sub dd { color: #b9472a; }
.tax-lines .grand { border-bottom: 0; padding-top: 16px; color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.tax-note { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--blue-tint); color: var(--blue-ink); font-size: 13px; }
.fine { margin-top: 18px; font-size: var(--fs-sm); color: var(--ink-3); max-width: 52ch; }

.reasons { padding: 10px 0; display: grid; gap: 8px; }
.reasons li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--ink-2); font-size: 13.5px; }
.reasons li b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-3); }
.reasons li span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--blue-ink); }
.reasons li.on { border-color: var(--blue); background: rgba(5, 104, 253, 0.04); color: var(--ink); font-weight: 500; }
.reasons li.on b { color: var(--blue); }

.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.reg-grid div { padding: 12px 14px; border-radius: 10px; background: var(--surface); }
.reg-grid span { display: block; font-size: 12px; color: var(--ink-3); }
.reg-grid b { font-size: 1.15rem; letter-spacing: -0.01em; }
.reg-balance { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.reg-balance b { color: var(--ink); }
.reg-warn { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: #fff4e5; color: #b86200; font-size: 12px; font-weight: 600; }

.setup { display: grid; gap: 0; counter-reset: su; }
.setup li { position: relative; display: flex; gap: 18px; padding: 0 0 28px; }
.setup li:last-child { padding-bottom: 0; }
.setup li::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.setup li:last-child::before { display: none; }
.setup li.done::before { background: var(--blue); }
.su-n { counter-increment: su; flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-3); }
.su-n::after { content: counter(su); }
.setup li.done .su-n { border-color: var(--blue); background: var(--blue); }
.setup li.done .su-n::after { content: ""; width: 14px; height: 8px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-2px) rotate(-45deg); }
.setup li.now .su-n { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px var(--blue-tint); }
.setup h3 { font-size: 1.15rem; letter-spacing: -0.015em; padding-top: 5px; }
.setup p { margin-top: 4px; color: var(--ink-2); }

.pc-stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-stamps li { display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.pc-stamps span { font-size: var(--fs-sm); color: var(--ink-3); }
.pc-stamps b { font-size: 1.6rem; letter-spacing: -0.03em; }
.pc-stamps i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.pc-stamps li.best { border: 2px solid var(--green); }
.pc-stamps li.best i { color: var(--green); font-weight: 600; }

.mini-ico[data-i="search"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.mini-ico[data-i="user"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a7 7 0 0 1 14 0v1'/%3E%3Cpath d='m17 11 2 2 3-3'/%3E%3C/svg%3E"); }
.mini-ico[data-i="copy"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='13' height='13' rx='2'/%3E%3Cpath d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E"); }
.mini-ico[data-i="mail"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.mini-ico[data-i="brush"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='1.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='1.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='1.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='1.5'/%3E%3Cpath d='M12 2a10 10 0 0 0 0 20c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1.1.9-2 2-2h2.3A5.7 5.7 0 0 0 22 11.6C22 6.3 17.5 2 12 2z'/%3E%3C/svg%3E"); }
.mini-ico[data-i="export"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M12 12v6M9 15l3 3 3-3'/%3E%3C/svg%3E"); }

@media (max-width: 960px) {
  .types-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .types-grid, .pc-stamps { grid-template-columns: 1fr; }
  .inv-client { grid-template-columns: 1fr; }
  .inv-client > div:last-child { display: none; }
  .il { grid-template-columns: 1fr auto; }
  .il > span:nth-child(2) { display: none; }
  .inv-bottom { flex-direction: column-reverse; align-items: stretch; }
  .inv-bottom .doc-totals { width: 100%; }
  .reg-grid { grid-template-columns: 1fr; }
  .reasons li span { margin-left: 0; width: 100%; }
}
.pill-tag { white-space: nowrap; }

/* =========================================================
   Cotizaciones
   ========================================================= */
.exp { margin-top: 14px; }
.exp-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 2px; }
.exp-bar i { width: var(--w); }
.e-pay { background: var(--blue); }
.e-pr { background: var(--violet); }
.e-wh { background: var(--coral); }
.exp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 11.5px; color: var(--ink-2); }
.exp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.exp-legend li > i { width: 8px; height: 8px; border-radius: 2px; }
.exp-legend b { color: var(--ink); font-weight: 600; }
.profit-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; margin-top: 14px; }
.profit-row > div { padding: 12px 14px; border-radius: 10px; }
.pr-main { background: linear-gradient(135deg, #e9f7ef, #f6fbf8); border: 1px solid #cfeedd; }
.pr-side { border: 1px solid var(--line-soft); }
.profit-row p { font-size: 11px; color: var(--ink-3); }
.profit-row strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.pr-main strong { color: var(--green); }
.pr-side span { font-size: 11px; color: var(--ink-3); }

.tree-list { padding: 8px 0; }
.tree-list li { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-2); }
.tree-list li b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-list .num { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tree-list em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface); color: var(--ink-3); white-space: nowrap; }
.tree-list em.cost { color: #b9472a; background: var(--coral-tint); }
.t-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-family: var(--mono); font-size: 11px; }
.t-sec .t-ico { background: var(--ink); color: #fff; }
.t-con { padding-left: 18px !important; }
.t-con .t-ico { background: var(--blue-tint); color: var(--blue-ink); }
.t-art { padding-left: 36px !important; }
.t-art .t-ico { background: var(--surface); color: var(--ink-3); }

.req-sec .section-head { max-width: 820px; }
.req-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.req-picker { font-size: 13px; }
.rp-filters { display: inline-flex; gap: 4px; margin: 14px 0 6px; padding: 3px; border-radius: 999px; background: var(--surface); }
.rp-filters span { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.rp-filters .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.rp-row { display: grid; grid-template-columns: minmax(0, 1.8fr) 0.8fr 1fr 0.8fr 0.9fr; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.rp-row > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-row > span:first-child b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-head { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); padding-block: 8px; }
.rp-row .r { text-align: right; }
.rp-row em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.rp-row em.ok { color: var(--green); font-weight: 600; }
.rp-row.done, .rp-row.locked { color: var(--ink-3); }
.rp-row.locked b { color: var(--ink-3) !important; }
.rp-row.warn { background: linear-gradient(90deg, rgba(238, 128, 97, 0.08), transparent); }
.rp-note { grid-column: 1 / -1; margin-top: -2px; font-size: 11.5px; font-weight: 600; color: #b9472a; }
.ck { flex-shrink: 0; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line); }
.ck.on { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2 6.6 11 12 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.lock { flex-shrink: 0; width: 16px; height: 16px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }
.mini-bar { display: block; height: 4px; margin-top: 4px; margin-left: auto; width: 60px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: var(--w); background: var(--blue); }
.qty { display: inline-block; min-width: 54px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-weight: 600; color: var(--ink); background: #fff; }
.rp-row.warn .qty { border-color: var(--coral); }

.req-steps { display: grid; gap: 4px; counter-reset: rq; }
.req-steps li { position: relative; padding: 16px 18px 16px 58px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.req-steps li::before { counter-increment: rq; content: counter(rq); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(127, 176, 255, 0.18); color: #9fc2ff; font-weight: 700; font-size: 13px; }
.req-steps b { display: block; font-size: 1.05rem; }
.req-steps span { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.5; }
.req-note { margin-top: 32px; padding: 16px 20px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.82); }

.po-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.po-status div { padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.po-status span { display: block; font-size: 11.5px; color: var(--ink-3); }
.ok-t { color: var(--green); }
.est-progress { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--ink-2); }

.crew { margin-top: 10px; font-size: 13px; }
.crew-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(6, minmax(0, 0.6fr)); gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.crew-row > span:first-child { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.crew-head { font-size: 10.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.crew-head span:not(:first-child) { text-align: center; }
.crew-row i { font-style: normal; text-align: center; padding: 5px 0; border-radius: 6px; background: var(--blue-tint); color: var(--blue-ink); font-size: 11.5px; font-weight: 600; }
.crew-row i.x { background: var(--coral-tint); color: #b9472a; }
.crew-row i.o { background: var(--surface); color: var(--ink-3); }

.wf { margin-top: 12px; }
.wf li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 12px 12px; margin-bottom: 4px; border-radius: 8px; overflow: hidden; color: var(--ink-2); font-size: 14px; isolation: isolate; }
.wf li i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--coral-tint); z-index: -1; opacity: 0.8; }
.wf li.in i { background: var(--green-tint); }
.wf li b { color: var(--ink); font-weight: 600; }
.wf li.res { margin-top: 8px; background: var(--ink); color: #fff; font-weight: 600; }
.wf li.res b { color: #9ff0c4; font-size: 1.1rem; }

.tiers { display: grid; gap: 10px; }
.tiers li { padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.tiers li.hl { border: 2px solid var(--blue); }
.tiers b { display: block; margin-top: 4px; font-size: 1.02rem; }

.mini-ico[data-i="pen"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.mini-ico[data-i="note"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M7 9h6M7 13h10M7 17h7'/%3E%3C/svg%3E"); }
.mini-ico[data-i="lockc"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.mini-ico[data-i="tag"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }

@media (max-width: 960px) {
  .req-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .profit-row { grid-template-columns: 1fr; }
  .rp-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .rp-row > span:nth-child(2), .rp-row > span:nth-child(3) { display: none; }
  .tree-list li { grid-template-columns: 22px 1fr auto; }
  .tree-list em { display: none; }
  .t-con { padding-left: 8px !important; }
  .t-art { padding-left: 16px !important; }
  .po-status { grid-template-columns: 1fr; }
  .crew-row { grid-template-columns: minmax(0, 1.6fr) repeat(6, minmax(0, 0.5fr)); gap: 3px; }
  .crew-row .avatar { display: none; }
}
.card-ui { color: var(--ink); }
.mini-ico[data-i="folder"] { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }

/* =========================================================
   Precios unitarios
   ========================================================= */
.kpi-em { background: var(--blue-tint); border-color: transparent !important; }
.kpi-em strong { color: var(--blue-ink); }
.tpu-cats { margin-top: 12px; font-size: 12px; }
.tc-head { display: flex; justify-content: space-between; padding: 8px 0 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); border-bottom: 1px solid var(--line-soft); }
.tc-head b { color: var(--ink); letter-spacing: 0; }
.tc-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.8fr) 0.8fr 0.9fr 0.8fr; gap: 8px; align-items: center; padding: 7px 0 9px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.tc-row > span:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-row > span:not(:first-child), .tc-row b { text-align: right; }
.tc-row b { color: var(--ink); font-weight: 600; }
.tc-row > i { position: absolute; left: 0; bottom: 3px; height: 2px; width: var(--w); border-radius: 2px; background: var(--blue); opacity: 0.6; }
.tc-row.pct > span:nth-child(2) { color: #b9472a; font-weight: 600; }

.tpu-demo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.td-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.td-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); text-align: left; padding: 10px 0 8px; border-bottom: 1px solid var(--line-soft); }
.td-table td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
.td-table .r { text-align: right; padding-left: 10px; white-space: nowrap; }
.td-table td:first-child { color: var(--ink); }
.td-table td:first-child small { display: block; font-size: 11.5px; color: var(--ink-3); }
.td-table td.amt { color: var(--ink); font-weight: 600; }
.td-table tr.cat td { padding: 12px 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); border-bottom: 0; }
.td-table tr.cat td.r { color: var(--ink); letter-spacing: 0; }
.td-table tr.pct td:nth-child(2) { color: #b9472a; font-weight: 600; }
.td-pct { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--coral-tint); }
.td-pct label { font-weight: 600; font-size: 14px; }
.pct-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.pct-input input { width: 64px; height: 40px; border: 0; padding: 0 4px 0 12px; font: inherit; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; background: transparent; color: var(--ink); }
.pct-input input:focus { outline: none; }
.pct-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.pct-input span { padding: 0 12px 0 2px; color: var(--ink-3); font-weight: 600; }

.td-side { display: grid; gap: 10px; }
.td-ind { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); transition: opacity 200ms var(--ease); }
.td-ind.is-off { opacity: 0.55; }
.td-base { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.td-base b { color: var(--ink); }
.sw-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; cursor: pointer; }
.sw-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background-color 180ms var(--ease); flex-shrink: 0; }
.sw-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 180ms var(--ease); }
.sw-label input:checked + .sw-ui { background: var(--blue); }
.sw-label input:checked + .sw-ui::after { transform: translateX(16px); }
.sw-label input:focus-visible + .sw-ui { outline: 2px solid var(--blue); outline-offset: 3px; }
.td-total { padding: 20px 22px; border-radius: var(--radius); color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(238, 128, 97, 0.45), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow-md); }
.td-total div { display: flex; justify-content: space-between; padding: 4px 0; color: rgba(255, 255, 255, 0.78); }
.td-total .grand { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-weight: 600; }
.td-total .grand dd { font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; }

.tpu-list td { vertical-align: middle; }
.tpu-list .tg { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.tpu-list .mono { color: var(--ink-2); font-size: 11.5px; }

@media (max-width: 960px) {
  .tpu-demo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tc-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tc-row > span:nth-child(3) { display: none; }
  .td-table th:nth-child(3), .td-table td:nth-child(3), .td-table th:nth-child(5), .td-table td:nth-child(5) { display: none; }
  .td-pct { flex-direction: column; align-items: stretch; }
  .tpu-list th:first-child, .tpu-list td:first-child, .tpu-list th:nth-child(4), .tpu-list td:nth-child(4) { display: none; }
}
.app-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck, .lock { display: inline-block; vertical-align: middle; }
.tpu-list th:first-child, .tpu-list td:first-child { width: 30px; padding-right: 10px; }

/* =========================================================
   Constructoras · Nómina · Finanzas
   ========================================================= */
.warn-t { color: #b86200; }
.mini-bar.wide { width: 90px; margin: 0; }
.proj { margin-top: 12px; font-size: 12.5px; }
.pj { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 0.9fr 0.7fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.pj-head { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); padding-block: 7px; }
.pj > span:first-child b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj > span:first-child i { font-style: normal; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.pj > span:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.pj em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.pj .r { text-align: right; }
.attn { margin-top: 12px; display: grid; gap: 6px; }
.attn li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface); font-size: 12px; color: var(--ink-2); }
.attn li > i { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.attn.big li { padding: 12px 14px; font-size: 13.5px; align-items: flex-start; }
.attn.big li > i { margin-top: 6px; }
.attn.big b { display: block; color: var(--ink); font-weight: 600; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-col { padding: 28px; border-radius: var(--radius-lg); }
.vs-before { background: var(--surface); border: 1px solid var(--line-soft); }
.vs-after { background: linear-gradient(135deg, #eef3ff, #f7f2ff); border: 1px solid #dfe6ff; }
.vs-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; }
.vs-before .vs-tag { background: #fff; color: var(--ink-3); border: 1px solid var(--line); }
.vs-after .vs-tag { background: var(--blue); color: #fff; }
.vs ul { margin-top: 18px; display: grid; gap: 12px; }
.vs li { position: relative; padding-left: 30px; font-weight: 500; }
.vs li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background-position: center; background-size: 20px; background-repeat: no-repeat; }
.vs-before li { color: var(--ink-2); }
.vs-before li::before { background-color: #fde8e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%23d4363b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.vs-after li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3 8.6 13 14 7' fill='none' stroke='%230568fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.tl { position: relative; display: grid; gap: 16px; }
.tl::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--violet), var(--coral)); opacity: 0.35; }
.tl-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px; }
.tl-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 750; font-size: 1.1rem; }
.tl-body { padding: 22px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.tl-body h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.tl-body > p { margin-top: 8px; color: var(--ink-2); max-width: 70ch; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-chips li { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); font-size: 13px; font-weight: 500; }
.tl-body .text-link.more { margin-top: 14px; }

.rcpt { margin-top: 12px; font-size: 12.5px; }
.rc-group { padding: 8px 0 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); border-bottom: 1px solid var(--line-soft); }
.rc-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 50px 90px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.rc-row .mono { color: var(--ink-3); font-size: 11px; }
.rc-row span:nth-child(2) { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-row b, .rc-row span:nth-child(3) { text-align: right; }
.rc-row b { color: var(--ink); font-weight: 600; }
.rc-split { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; margin-top: 12px; }
.rc-split div { padding: 9px 12px; border-radius: 10px; background: var(--surface); }
.rc-split span { display: block; font-size: 11px; color: var(--ink-3); }
.rc-split b { font-size: 15px; }
.rc-split .em { background: var(--blue-tint); }
.rc-split .em b { color: var(--blue-ink); font-size: 18px; }

.wk { padding: 22px; overflow: hidden; }
.wk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.wk-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.wk-grid { overflow-x: auto; }
.wk-row { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(7, minmax(78px, 1fr)); gap: 6px; align-items: stretch; padding: 8px 0; border-bottom: 1px solid var(--line-soft); min-width: 760px; }
.wk-head { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.wk-head span:not(:first-child) { text-align: center; }
.wk-head em { display: block; font-style: normal; color: #b9472a; text-transform: none; letter-spacing: 0; }
.wk-emp { display: flex; align-items: center; gap: 0; font-size: 13px; }
.wk-emp b { display: block; font-weight: 600; }
.wk-emp i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.wk-row .c { display: grid; place-items: center; align-content: center; gap: 1px; padding: 6px 4px; border-radius: 8px; font-family: var(--mono); font-size: 11px; text-align: center; }
.wk-row .c b { font-family: var(--font); font-size: 12px; font-weight: 600; }
.c.a { background: var(--blue-tint); color: var(--blue-ink); }
.c.b { background: #efeafe; color: #5b3fd6; }
.c.x { box-shadow: inset 0 0 0 2px var(--coral); }
.c.hol { background: repeating-linear-gradient(135deg, #fdebe5 0 6px, #fff6f2 6px 12px); color: #b9472a; font-family: var(--font); font-weight: 600; }
.c.rest { background: repeating-linear-gradient(135deg, var(--surface) 0 6px, #fff 6px 12px); color: var(--ink-3); font-family: var(--font); }
.c.vac { background: var(--green-tint); color: var(--green); font-family: var(--font); font-weight: 600; }
.c.wide3 { grid-column: span 3; }
.c.warn { box-shadow: inset 0 0 0 2px #e8a33d; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.wk-legend li { display: inline-flex; align-items: center; gap: 8px; }
.wk-legend i { width: 12px; height: 12px; border-radius: 4px; }
.wk-legend i.a { background: var(--blue-tint); }
.wk-legend i.b { background: #efeafe; }
.wk-legend i.x { box-shadow: inset 0 0 0 2px var(--coral); }
.wk-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.wk-points b { display: block; font-size: 1.02rem; }
.wk-points span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }

.days tr.flag td { background: #fff7ec; }
.abs-list { margin-top: 14px; }
.abs-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-2); }
.abs-list em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.abs-list em.ok { color: var(--green); }
.quotas { margin-top: 12px; display: grid; gap: 6px; }
.quotas li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quotas span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.quotas em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.quotas .paid span { background: var(--green); border-color: var(--green); color: #fff; }
.quotas .next { background: var(--blue-tint); }
.quotas .next span { border-color: var(--blue); color: var(--blue); }

.seg-mini { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); font-size: 11px; font-weight: 600; color: var(--ink-3); }
.seg-mini span { padding: 3px 10px; border-radius: 999px; }
.seg-mini .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.fkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.fkpis div { padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 10px; }
.fkpis p { font-size: 10.5px; color: var(--ink-3); }
.fkpis strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.fkpis em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--green); }
.fkpis em.bad { color: #d4363b; }
.fkpis .em { background: linear-gradient(135deg, #e9f7ef, #f6fbf8); border-color: #cfeedd; }
.fkpis .em strong { color: var(--green); }
.fcharts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 14px; }
.fbars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 130px; align-items: end; padding-bottom: 18px; }
.fbars .b { position: relative; display: flex; gap: 3px; align-items: flex-end; height: 100%; justify-content: center; }
.fbars .b i { width: 40%; height: var(--h); border-radius: 4px 4px 1px 1px; }
.fbars .in { background: linear-gradient(180deg, var(--blue), var(--indigo)); }
.fbars .out { background: #f6b6a3; }
.fbars .b span { position: absolute; bottom: -18px; font-size: 10px; color: var(--ink-3); }
.donut-wrap { display: flex; align-items: center; gap: 12px; }
.donut { flex-shrink: 0; width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0 calc(var(--a) * 1%), var(--violet) 0 calc((var(--a) + var(--b)) * 1%), var(--coral) 0 calc((var(--a) + var(--b) + var(--c)) * 1%), var(--green) 0 calc((var(--a) + var(--b) + var(--c) + var(--d)) * 1%), #c9cfda 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.donut-legend { display: grid; gap: 4px; font-size: 11px; color: var(--ink-2); flex: 1; min-width: 0; }
.donut-legend li { display: flex; align-items: center; gap: 6px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex-shrink: 0; }
.donut-legend b { margin-left: auto; color: var(--ink); font-weight: 600; }
.ag-title { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 600; }
.aging { margin-top: 8px; display: grid; gap: 8px; }
.aging li { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.aging i { display: block; height: 14px; width: var(--w); min-width: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--coral), #f6b6a3); }
.aging.pay i { background: linear-gradient(90deg, var(--violet), #c7b8fb); }
.aging b { text-align: right; color: var(--ink); }
.acct li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.acct div b { display: block; font-weight: 600; }
.acct div i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.acct > li > b { font-weight: 600; }
.ac-ico { width: 36px; height: 36px; border-radius: 10px; position: relative; }
.ac-ico::after { content: ""; position: absolute; inset: 9px; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; background: currentColor; }
.ac-ico.bank { background: var(--blue-tint); color: var(--blue); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18L12 4zM5 10v8M9 10v8M15 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E"); }
.ac-ico.cash { background: var(--green-tint); color: var(--green); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.ac-ico.card { background: var(--coral-tint); color: var(--coral); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
small.sub { display: block; font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 960px) {
  .vs { grid-template-columns: 1fr; }
  .wk-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pj { grid-template-columns: minmax(0, 1fr) auto; }
  .pj > span:nth-child(2), .pj > span:nth-child(3) { display: none; }
  .tl::before { left: 17px; }
  .tl-item { grid-template-columns: 36px 1fr; gap: 12px; }
  .tl-n { width: 36px; height: 36px; font-size: 0.95rem; }
  .tl-body { padding: 18px; }
  .rc-row { grid-template-columns: minmax(0, 1fr) 80px; }
  .rc-row .mono, .rc-row span:nth-child(3) { display: none; }
  .rc-split { grid-template-columns: 1fr 1fr; }
  .rc-split .em { grid-column: 1 / -1; }
  .wk { padding: 16px; }
  .wk-points { grid-template-columns: 1fr; }
  .fkpis { grid-template-columns: 1fr 1fr; }
  .fcharts { grid-template-columns: 1fr; }
  .aging li { grid-template-columns: 76px 1fr 76px; gap: 8px; }
  .days th:nth-child(2), .days td:nth-child(2) { display: none; }
}
.frow.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 960px) { .frow.rev { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Páginas legales
   ========================================================= */
.legal-hero { padding: 132px 0 40px; background: linear-gradient(180deg, var(--surface), #fff); border-bottom: 1px solid var(--line-soft); }
.legal-hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; }
.legal-meta { margin-top: 12px; color: var(--ink-3); font-size: var(--fs-sm); }
.legal-wrap { padding: 48px 0 112px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.legal-toc ol { margin-top: 12px; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.legal-toc a::before { content: counter(toc); min-width: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--surface); color: var(--ink); }
.legal { max-width: 760px; font-size: 1.02rem; color: var(--ink-2); line-height: 1.75; }
.legal h2 { margin: 44px 0 14px; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.015em; scroll-margin-top: 96px; }
.legal p + p { margin-top: 14px; }
.legal p { text-align: justify; hyphens: auto; }
.legal ul, .legal .legal-list { margin: 14px 0; display: grid; gap: 10px; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.legal .legal-list { list-style: lower-alpha; padding-left: 24px; }
.legal .legal-list li::marker { color: var(--blue); font-weight: 600; }
.legal strong { color: var(--ink); }
.legal-summary { margin-bottom: 32px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--blue-tint); border: 1px solid #d6e4ff; color: var(--ink); }
.legal-summary ul { margin: 10px 0 0; }
.legal-summary li::before { background: var(--blue-ink); }
.legal-summary p { text-align: left; }
.legal-note { margin-top: 12px; font-size: var(--fs-sm); color: var(--ink-3); }
.legal > .legal-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; padding: 16px; border-radius: var(--radius); background: var(--surface); }
  .legal-toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .legal-hero { padding-top: 112px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal p { text-align: left; }
}
