/* GMB — demo web v4 (v3 + portafolio + historia) · «del plano al producto» · FAVRIC */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050B1E;
  --bg-2: #081230;
  --surface: #0B1736;
  --surface-2: #102048;
  --border: rgba(150,175,230,.14);
  --border-hi: rgba(43,184,255,.45);
  --text: #EEF2FF;
  --text-soft: #A9B6D6;
  --navy-900: #0B1B3F;
  --ink-soft: #46526D;
  --paper: #FFFFFF;
  --paper-2: #F4F7FC;
  --line: #DCE3EF;
  --action: #1E6BFF;
  --action-hover: #1559E0;
  --link-light: #1559E0;
  --cyan: #2BB8FF;
  --ok: #4ADE80;
  --warn: #F5A524;
  --danger: #F87171;
  --ok-ink: #146C43;
  --warn-ink: #8A5A00;
  --danger-ink: #B42318;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-stage: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -20px rgba(0,0,0,.7), 0 18px 36px -18px rgba(0,0,0,.6);
  --header-h: 72px;
  --huincha-h: 40px;
  --sec-y: 128px;
  --gut: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: var(--huincha-h);
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* ruido sutil global */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sec-light :focus-visible { outline-color: var(--link-light); }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 300;
  background: #fff; color: var(--navy-900); padding: 12px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1200px + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- tipografía ---------- */
h1, h2, h3 { font-weight: 700; color: inherit; }
h1, h2 { font-stretch: 112%; }
h1 {
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  line-height: .98; letter-spacing: -.035em; text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02; letter-spacing: -.03em; text-wrap: balance;
}
h3 { font-size: 1.3125rem; font-stretch: 105%; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-soft); max-width: 60ch; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 14px; border: 1px solid var(--border); border-radius: 99px;
  background: rgba(150,175,230,.05); font-size: 14px; line-height: 1.3; color: var(--text-soft);
}
.dot-c { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--action); color: #fff; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 10px 28px -10px rgba(30,107,255,.7);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--action-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-ghost { background: rgba(150,175,230,.06); border-color: rgba(150,175,230,.28); box-shadow: none; }
.btn-ghost:hover { background: rgba(150,175,230,.12); border-color: var(--border-hi); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s;
}
.site-header.scrolled {
  background: rgba(5,11,30,.78); border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.nav-list { display: flex; gap: 8px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px;
  color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s;
}
.nav-list a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 16px); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none;
  background-image:
    linear-gradient(rgba(150,175,230,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,175,230,.05) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%);
}
.hero-text { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-text h1 { max-width: 15em; }
.hero-text .lead { max-width: 62ch; margin-top: -4px; text-wrap: balance; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.stage-outer { margin-top: 44px; }

/* Escenario: se diseña a tamaño fijo y se escala */
.stage-wrap {
  --W: 1200; --H: 652; --s: 1;
  position: relative; width: 100%; height: calc(var(--H) * var(--s) * 1px);
  overflow: clip;
}
.stage {
  position: absolute; left: 50%; top: 0;
  width: calc(var(--W) * 1px); height: calc(var(--H) * 1px);
  margin-left: calc(var(--W) * -.5px);
  transform: scale(var(--s)); transform-origin: top center;
  perspective: 2000px;
  font-size: 12px; line-height: 1.3; font-stretch: 100%; font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stage * { box-sizing: border-box; }
.stage svg { display: block; }
.stage .ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stage em, .mini em { font-style: normal; }
.stage b, .mini b { font-weight: 600; }
.stage small, .mini small { font-size: 10.5px; }

.halo { position: absolute; left: 110px; top: 120px; width: 980px; height: 460px; background: radial-gradient(closest-side, rgba(30,107,255,.34), transparent); filter: blur(60px); pointer-events: none; }
.horizon { position: absolute; left: 0; right: 0; top: 590px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(43,184,255,.8) 50%, transparent); box-shadow: 0 0 26px 3px rgba(43,184,255,.3); }

.cotas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cotas .cota-g path { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; }
.cota-t { fill: var(--cyan); font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.stage .cotas-m { display: none; }

.layer { position: absolute; translate: var(--px, 0px) var(--py, 0px); }

/* ---- ERP ---- */
.erp {
  left: 70px; top: 36px; width: 880px; height: 540px; z-index: 1;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  rotate: 1 0 0 1.6deg;
  box-shadow: var(--shadow-stage), 0 0 0 1px rgba(0,0,0,.25);
}
.erp-bar { height: 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; background: #0A1431; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2A3A6B; }
.url { display: inline-flex; align-items: center; gap: 7px; height: 22px; padding: 0 14px; width: 250px; justify-content: center; border-radius: 7px; background: #0F1B40; color: var(--text-soft); font-size: 11.5px; }
.erp-body { display: grid; grid-template-columns: 148px 1fr; height: 504px; }
.erp-side { display: flex; flex-direction: column; padding: 14px 10px; background: var(--bg-2); border-right: 1px solid var(--border); }
.ws, .me { display: flex; align-items: center; gap: 9px; }
.ws { padding: 2px 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.ws-av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #1A4FE0, #2BB8FF); color: #04112E; font-size: 11px; font-weight: 700; flex: none; }
.ws-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ws-t b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-t small { color: var(--text-soft); }
.nav-mock { display: flex; flex-direction: column; gap: 2px; }
.nav-mock li { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; color: var(--text-soft); position: relative; }
.nav-mock li.on { background: rgba(30,107,255,.2); color: #fff; font-weight: 600; }
.nav-mock li.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { padding: 10px 4px 0; border-top: 1px solid var(--border); }

.av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 8.5px; font-weight: 700; font-style: normal; letter-spacing: .02em; flex: none; }
.a1 { background: #DCE8FF; color: #1B3FA0; }
.a2 { background: #D3F1FB; color: #0B5C78; }
.a3 { background: #FDE6C8; color: #7A4300; }
.a4 { background: #D9F3E3; color: #146C43; }

.erp-main { display: grid; grid-template-columns: 352px 308px; grid-template-rows: 40px 72px 128px 1fr; gap: 12px; padding: 16px 40px 16px 20px;
  grid-template-areas: "top top" "kpi kpi" "chart table" "stock table"; min-width: 0; }
.m-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; }
.m-top > div:first-child { display: flex; flex-direction: column; line-height: 1.25; }
.m-h { font-size: 17px; font-stretch: 105%; font-weight: 700; letter-spacing: -.01em; }
.m-top small { color: var(--text-soft); }
.m-tools { display: flex; align-items: center; gap: 10px; }
.search { display: inline-flex; align-items: center; gap: 7px; height: 28px; width: 132px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft); font-size: 11.5px; }
.ibtn { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft); }
.ibtn i { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); border: 1.5px solid var(--surface-2); }
.m-tools .av { width: 28px; height: 28px; font-size: 10px; }

.card-m { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; min-height: 16px; }
.card-h b { font-size: 12px; }
.card-h small { color: var(--text-soft); }
.lnk { color: var(--cyan) !important; }
.m-kpis { grid-area: kpi; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.kpi-l { display: flex; align-items: center; justify-content: space-between; color: var(--text-soft); font-size: 11.5px; }
.kpi-v { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kpi-v strong { font-size: 19px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.kpi-s { color: var(--text-soft); font-size: 10.5px; }
.m-chart { grid-area: chart; }
.m-chart .chart { width: 100%; height: auto; }
.m-stock { grid-area: stock; }
.m-table { grid-area: table; padding: 12px 12px 8px; }

.chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.chip.ok { color: #4ADE80; background: rgba(34,197,94,.14); }
.chip.warn { color: #F5A524; background: rgba(245,165,36,.14); }
.chip.bad { color: #F87171; background: rgba(248,113,113,.14); }
.chip.neu { color: var(--text-soft); background: rgba(150,175,230,.12); }
.chip.info { color: #5DC8FF; background: rgba(43,184,255,.14); }
.chip svg { fill: currentColor; }

.stock { margin-top: 6px; }
.stock li { display: grid; grid-template-columns: 1fr 74px 40px; align-items: center; gap: 10px; height: 36px; border-top: 1px solid var(--border); font-size: 11px; }
.stock li:first-child { border-top: 0; }
.s-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-q { text-align: right; color: var(--text-soft); font-size: 10.5px; }
.bar { display: block; height: 6px; border-radius: 4px; background: rgba(150,175,230,.14); overflow: hidden; }
.bar .w { display: block; height: 100%; border-radius: 4px; background: var(--danger); transform-origin: left; transform: scaleX(var(--v)); }
.stock li:nth-child(n+3) .w { background: var(--warn); }

.trow { display: grid; grid-template-columns: 44px 1fr 70px 62px; align-items: center; height: 32px; border-top: 1px solid var(--border); font-size: 11px; }
.trow.thead { height: 24px; border-top: 0; color: var(--text-soft); font-size: 10.5px; }
.trow .num { color: var(--text-soft); }
.trow .cli { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.trow .r { text-align: right; padding-right: 8px; }
.trow .mt { font-weight: 600; }

/* ---- CRM (claro) ---- */
.crm {
  left: 0; top: 352px; width: 476px; height: 288px; z-index: 2; padding: 14px;
  background: #fff; color: var(--navy-900); border-radius: 14px; border: 1px solid #fff;
  rotate: 0 0 1 -2deg;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 40px 70px -24px rgba(0,0,0,.75), 0 20px 40px -20px rgba(2,6,23,.6), 0 0 0 1px rgba(11,27,63,.08);
}
.crm-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.crm-h > div:first-child { display: flex; flex-direction: column; line-height: 1.25; }
.crm-h b { font-size: 14px; font-stretch: 105%; font-weight: 700; }
.crm-h small { color: var(--ink-soft); }
.crm-r { display: flex; align-items: center; gap: 10px; }
.avs { display: flex; }
.avs .av { width: 24px; height: 24px; border: 2px solid #fff; margin-left: -6px; }
.avs .av:first-child { margin-left: 0; }
.chip-l { padding: 3px 9px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft); font-size: 10.5px; font-weight: 600; }
.crm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kcol { background: var(--paper-2); border-radius: 10px; padding: 6px 5px 4px; }
.kh { display: flex; flex-direction: column; gap: 1px; padding: 2px 3px 7px; font-size: 10.5px; line-height: 1.25; }
.kh span { font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.kh b { display: inline-grid; place-items: center; min-width: 14px; height: 14px; border-radius: 7px; background: var(--line); color: var(--ink-soft); font-size: 9.5px; padding: 0 3px; }
.kh strong { font-size: 10.5px; font-weight: 700; color: var(--navy-900); }
.kcol.win .kh strong { color: var(--ok-ink); }
.kcard { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 5px; height: 52px; margin-bottom: 5px; padding: 8px 7px 7px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(11,27,63,.06); }
.kcard.hot { border-left: 3px solid var(--action); }
.kn { grid-column: 1 / -1; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.kcard .av { grid-column: 2; grid-row: 2; width: 17px; height: 17px; font-size: 7px; }
.ka { grid-column: 1; grid-row: 2; font-size: 10px; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.kcol.win .kcard { border-left: 3px solid #22C55E; }

/* ---- App móvil ---- */
.phone {
  left: 930px; top: 140px; width: 240px; height: 490px; z-index: 3; padding: 8px;
  background: #04081A; border-radius: 40px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 40px 70px -20px rgba(0,0,0,.85), 0 24px 40px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.5);
}
.screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 32px; background: var(--paper-2); color: var(--navy-900); }
.isl { position: absolute; top: 8px; left: 50%; width: 72px; height: 21px; margin-left: -36px; border-radius: 12px; background: #04081A; z-index: 3; }
.sbar { height: 38px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 0; font-size: 11px; font-weight: 700; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.sig i { width: 3px; background: var(--navy-900); border-radius: 1px; }
.sig i:nth-child(1) { height: 3px; } .sig i:nth-child(2) { height: 5px; } .sig i:nth-child(3) { height: 7px; } .sig i:nth-child(4) { height: 10px; }
.ph-h { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 2px 16px 10px; }
.ph-h > div { display: flex; flex-direction: column; line-height: 1.2; }
.ph-h b { font-size: 17px; font-stretch: 105%; font-weight: 700; letter-spacing: -.01em; }
.ph-h small { color: var(--ink-soft); }
.ibtn.l { background: #fff; border-color: var(--line); color: var(--ink-soft); width: 30px; height: 30px; border-radius: 15px; }
.ph-total { position: relative; flex: none; margin: 0 12px; padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(140deg, #0B1B3F, #12306F); color: #fff; box-shadow: 0 10px 20px -10px rgba(11,27,63,.6); }
.ph-total small { color: #C4D0EC; font-size: 11px; }
.ph-total strong { font-size: 25px; font-stretch: 105%; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.ph-total span { font-size: 10.5px; color: #C4D0EC; }
.ph-bars { position: absolute; right: 14px; top: 12px; width: 44px; height: 14px; }
.ph-lh { flex: none; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px 4px; }
.ph-lh b { font-size: 12.5px; }
.ph-lh small { color: var(--link-light); font-weight: 600; }
.ph-list { flex: 1; min-height: 0; padding: 0 12px; display: flex; flex-direction: column; }
.ph-list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; height: 51px; border-bottom: 1px solid var(--line); }
.ph-list .av { width: 28px; height: 28px; font-size: 10px; }
.pn { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pn b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn small { color: var(--ink-soft); font-size: 10px; }
.pr { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pr b { font-size: 11.5px; }
.screen .chip { font-size: 9.5px; padding: 1px 6px; }
.screen .chip.ok, .crm .chip.ok { color: var(--ok-ink); background: #DDF4E7; }
.screen .chip.warn { color: var(--warn-ink); background: #FCEBCB; }
.screen .chip.info { color: #0B5C78; background: #D3F1FB; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); height: 58px; padding: 8px 6px 14px; margin-top: 4px; background: #fff; border-top: 1px solid var(--line); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 500; color: var(--ink-soft); }
.tabbar .on { color: var(--link-light); font-weight: 700; }
.toast { position: absolute; left: 12px; right: 12px; top: 40px; z-index: 4; display: none; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 14px; background: var(--navy-900); color: #fff; font-size: 11.5px; box-shadow: 0 14px 30px -10px rgba(2,6,23,.7); }
.toast b { font-weight: 700; }
.t-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #22C55E; color: #052e16; flex: none; }
.t-ok svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.tag-demo { position: absolute; right: 0; top: 2px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: rgba(8,18,48,.8); color: var(--text-soft); font-size: 12px; }
.tag-demo i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

/* ---------- secciones ---------- */
.sec { position: relative; padding-block: var(--sec-y); }
.sec-dark { background: var(--bg); border-top: 1px solid var(--border); }
.sec-light { background: var(--paper); color: var(--navy-900); }
.sec-alt { background: var(--paper-2); }
.sec-light .lead { color: var(--ink-soft); }
.sec-head { max-width: 760px; margin-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 20px; }
.b-crm { grid-column: span 7; grid-row: span 2; }
.b-erp { grid-column: span 5; grid-row: span 2; }
.b-web, .b-app, .b-int { grid-column: span 4; grid-row: span 2; }
.bcard {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .25s var(--ease);
}
.bcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(43,184,255,.13), transparent 60%);
}
@media (hover: hover) {
  .bcard:hover { border-color: var(--border-hi); }
  .bcard:hover::before { opacity: 1; }
}
.mini { position: relative; flex: 1; min-height: 0; margin: 14px 14px 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: #091330; height: var(--mh, auto); flex: var(--mf, 1); font-size: 12px; font-variant-numeric: tabular-nums; }
.bc-text { padding: 20px 24px 24px; }
.bc-text p { margin-top: 8px; color: var(--text-soft); font-size: 16px; line-height: 1.55; max-width: 44ch; }
.mk-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--border); background: rgba(16,32,72,.6); }
.mk-dots { display: flex; gap: 5px; }
.mk-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2A3A6B; }
.mk-t { font-size: 12px; color: var(--text); font-weight: 600; }
.mk-r { margin-left: auto; font-size: 11px; color: var(--text-soft); }
.mk-url { margin-left: 8px; flex: 1; max-width: 190px; height: 20px; border-radius: 6px; background: #0F1B40; color: var(--text-soft); font-size: 11px; display: grid; place-items: center; }
.mini .av { width: 22px; height: 22px; font-size: 8.5px; }
.mini .chip { font-size: 10.5px; }

/* mini CRM */
.mk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.mc-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; padding: 0 2px; font-size: 12px; }
.mc-h span { font-weight: 600; }
.mc-h strong { font-weight: 600; color: var(--text-soft); font-size: 11.5px; position: relative; display: inline-block; }
.swap { display: inline-grid !important; }
.swap i { font-style: normal; grid-area: 1 / 1; text-align: right; }
.t-b { opacity: 1; color: var(--text); }
.t-a { opacity: 0; }
.mc-win .t-b { color: #4ADE80; }
.mcard, .mslot { display: grid; grid-template-columns: 1fr auto; align-items: center; height: 62px; margin-bottom: 8px; padding: 0 12px; border-radius: 9px; }
.mcard { background: #16295C; border: 1px solid rgba(150,175,230,.18); row-gap: 3px; align-content: center; }
.mcard b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.mcard span { grid-column: 1; font-size: 11.5px; color: var(--text-soft); }
.mcard .av { grid-column: 2; grid-row: 1 / 3; }
.mslot { position: relative; padding: 0; border: 1px dashed rgba(150,175,230,.22); }
.mover { position: absolute; inset: -1px; margin: 0; z-index: 3; border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(43,184,255,.4), 0 12px 28px -8px rgba(43,184,255,.45); padding: 0 12px; }
.mc-win .mcard:not(.mover) { border-left: 3px solid #22C55E; }

/* mini ERP */
.me-body { padding: 12px 14px; }
.me-stock li { display: grid; grid-template-columns: 118px 1fr 34px; align-items: center; gap: 10px; height: 31px; font-size: 12px; }
.me-stock li > span:first-child { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-stock b { text-align: right; font-size: 12px; }
.mini .bar { height: 8px; }
.mini .bar .w { background: linear-gradient(90deg, #1E6BFF, #2BB8FF); }
.mini .bar .w.low { background: var(--warn); }
.me-inv { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 6px; }
.me-row { display: grid; grid-template-columns: 52px 1fr auto 82px; align-items: center; gap: 8px; height: 36px; font-size: 12px; }
.me-row .num { color: var(--text-soft); }
.me-row .cli { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-row .mt { font-weight: 600; }
.chipswap { position: relative; display: grid; justify-items: end; height: 20px; align-items: center; }
.chipswap > .chip { grid-area: 1 / 1; }
.chip.ok { color: #4ADE80; background: rgba(34,197,94,.14); }
.mini .chip.bad { color: #F87171; background: rgba(248,113,113,.14); }
.c-a { opacity: 0; }

/* mini web */
.pg { margin: 10px; border-radius: 10px; background: #fff; padding: 10px; height: calc(100% - 54px); overflow: hidden; display: flex; flex-direction: column; gap: 8px; color: var(--navy-900); }
.pg-nav { display: flex; align-items: center; gap: 10px; height: 22px; }
.pg-logo { width: 22px; height: 14px; border-radius: 4px; background: var(--action); margin-right: auto; }
.pg-lk { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.pg-hero { padding: 14px 12px; border-radius: 9px; background: var(--paper-2); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pg-hero b { font-size: 15px; font-stretch: 108%; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; max-width: 14em; }
.pg-hero span { font-size: 11px; color: var(--ink-soft); }
.pg-btn { margin-top: 5px; font-style: normal; font-size: 11px; font-weight: 600; background: var(--action); color: #fff; padding: 5px 11px; border-radius: 7px; }
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; min-height: 0; }
.pg-c { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.pg-img { flex: 1; min-height: 28px; border-radius: 5px; background: linear-gradient(135deg, #BFD6FF, #D9F3FB); }
.pg-img.i2 { background: linear-gradient(135deg, #FDE6C8, #FFF3DC); }
.pg-img.i3 { background: linear-gradient(135deg, #D9F3E3, #E9F8EF); }
.pg-l { height: 5px; border-radius: 3px; background: var(--line); width: 70%; }

/* mini app */
.mini-app { display: flex; justify-content: center; align-items: flex-start; padding-top: 22px; }
.mp { position: relative; width: 156px; height: 320px; flex: none; border-radius: 26px 26px 0 0; background: var(--paper-2); color: var(--navy-900); border: 6px solid #03071A; border-bottom: 0; box-shadow: 0 0 0 1px rgba(150,175,230,.25), 0 24px 40px -10px rgba(0,0,0,.6); overflow: hidden; }
.mp-isl { position: absolute; top: 5px; left: 50%; width: 46px; height: 13px; margin-left: -23px; border-radius: 8px; background: #03071A; }
.mp-h { padding: 30px 12px 8px; display: flex; flex-direction: column; line-height: 1.2; }
.mp-h b { font-size: 14px; font-stretch: 105%; }
.mp-h small { color: var(--ink-soft); font-size: 10.5px; }
.mp-list { padding: 0 10px; display: flex; flex-direction: column; gap: 6px; }
.mp-list li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; line-height: 1.25; font-weight: 500; }
.ck { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #9AA9C8; flex: none; }
.ck svg { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ck.ck-anim, .ck.on { background: #22C55E; border-color: #22C55E; }
.ck.ck-anim svg, .ck.on svg { opacity: 1; stroke-dasharray: 24; stroke-dashoffset: 0; }
.mp-note { position: absolute; left: 8px; right: 8px; top: 26px; display: none; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--navy-900); color: #fff; font-size: 11px; line-height: 1.25; box-shadow: 0 12px 24px -8px rgba(2,6,23,.6); z-index: 2; }
.mp-note b { display: block; font-size: 11px; }
.mp-note small { color: #C4D0EC; font-size: 10px; }

/* mini integraciones */
.mini-int svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-int .nd rect { fill: #0F1D45; stroke: rgba(150,175,230,.32); stroke-width: 1; }
.mini-int .nd text { fill: var(--text); font-size: 12.5px; font-weight: 600; }
.mini-int .core rect { fill: var(--action); stroke: rgba(255,255,255,.35); }
.mini-int .core text { fill: #fff; font-size: 14px; font-weight: 700; font-stretch: 105%; }
.mini-int .dot { fill: var(--cyan); filter: drop-shadow(0 0 5px var(--cyan)); offset-rotate: 0deg; offset-distance: 50%; }
.d1 { offset-path: path("M104 58C140 58 150 110 177 125"); }
.d2 { offset-path: path("M177 125C205 110 215 58 251 58"); }
.d3 { offset-path: path("M177 165C150 180 140 232 104 232"); }
.d4 { offset-path: path("M251 232C215 232 205 180 177 165"); }

/* ---------- proceso · v9 ----------
   Compu (≥1024): 3 etapas en fila unidas por una línea; un pulso de luz pasa de 01 a 03 en bucle,
   enciende cada etapa y la línea sigue en curva ascendente hasta un estallido (éxito).
   Celular y tablet (<1024): apilada compacta, línea vertical con el pulso bajando (sin curva ni estallido). */
#como-trabajamos { --D: 12s; --dot: 13px; --tl-gap: 28px; --dim: #B7C6E4; padding-block: 96px; }
.proc { display: flex; flex-direction: column; gap: 52px; }
.proc-sticky { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.proc-sticky .lead { max-width: 36ch; }
@media (min-width: 1024px) { .proc { gap: 32px; } }
.tl-wrap { position: relative; }
.tl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--tl-gap); }
.tl-item { position: relative; display: flex; flex-direction: column; padding-top: 38px; }
.tl-dot { position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--dim); }
.tl-seg { position: absolute; left: var(--dot); top: 5.5px; width: calc(100% + var(--tl-gap) - var(--dot)); height: 2px; background: var(--line); container-type: size; clip-path: inset(-14px 0); }
.tl-seg i { position: absolute; left: 0; top: -1px; width: 110px; height: 4px; border-radius: 4px; opacity: 0; transform: translateX(-110px);
  background: linear-gradient(90deg, rgba(30,107,255,0), var(--action) 62%, var(--cyan)); box-shadow: 0 0 12px 2px rgba(43,184,255,.5); }
.tl-n { font-size: 15px; font-stretch: 112%; font-weight: 700; color: var(--link-light); letter-spacing: .02em; margin-bottom: 4px; }
.tl-item h3 { font-size: 1.75rem; font-stretch: 112%; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 8px; }
.tl-item > p:not(.tl-n) { color: var(--ink-soft); max-width: 46ch; margin-bottom: 20px; }

/* curva de éxito: tras 03 la línea sigue, sube en curva y remata en una estrella con estallido.
   Estado base = dibujada y quieta (reduced-motion / sin JS); la animación va en el bloque no-preference. */
.cv { display: block; overflow: visible; pointer-events: none; }
.cv-d { position: absolute; right: 0; top: 6.5px; width: calc((100% - 2 * var(--tl-gap)) / 3 - var(--dot)); height: auto; aspect-ratio: 368 / 150; transform: translateY(-100%); }
.cv path, .cv circle { fill: none; }
.cv-base { stroke: var(--line); stroke-width: 2; }
.cv-on { stroke: var(--action); stroke-width: 2; stroke-dasharray: 100 100; stroke-dashoffset: 0; }
.cv-hd { display: none; stroke-width: 4; stroke-linecap: round; }
.bz-ring, .bz-fl { display: none; }
.bz .rs path { stroke-width: 2.2; stroke-linecap: round; opacity: .5; }
.bz .ps circle { fill: var(--cyan); opacity: .5; transform: translate(var(--x), var(--y)); }
.bz .rs path { transform: rotate(calc(var(--a) * 1deg)); }
.bz .rs :nth-child(3n+1), .bz .ps :nth-child(3n+1) { stroke: var(--action); }
.bz .rs :nth-child(3n+2) { stroke: var(--cyan); }
.bz .rs :nth-child(3n) { stroke: #7FD3FF; }
.bz .ps :nth-child(3n+1) { fill: var(--action); }
.bz .ps :nth-child(3n) { fill: #7FD3FF; }
.bz-star { fill: var(--action) !important; filter: drop-shadow(0 0 5px rgba(43,184,255,.8)); }
.bz-core { fill: #fff !important; }
.tl-item:last-child .tl-seg { display: none; }

/* mini-ilustraciones (compactas; se acomodan al ancho de la tarjeta) */
.art { position: relative; margin-top: auto; width: 100%; max-width: 460px; min-height: 134px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,27,63,.04), 0 12px 28px -14px rgba(11,27,63,.16), 0 30px 50px -30px rgba(11,27,63,.14); }
.sketch { position: relative; flex: none; width: 62%; height: 102px; border: 1.5px dashed #8FA2C8; border-radius: 10px; }
.sk { position: absolute; border: 1.5px dashed #AFBBD6; border-radius: 6px; }
.sk-top { left: 8px; right: 8px; top: 8px; height: 16px; }
.sk-side { left: 8px; top: 32px; bottom: 8px; width: 24%; }
.sk-a { left: 32%; top: 32px; width: 26%; height: 28px; }
.sk-b { left: 62%; top: 32px; right: 8px; height: 28px; }
.sk-c { left: 32%; top: 66px; right: 8px; bottom: 8px; border-color: #1E6BFF; }
.sk-d { display: none; }
.notes { position: absolute; inset: 0; pointer-events: none; }
.note { position: absolute; width: 138px; padding: 8px 10px 10px; background: #FFF1B8; color: #4A3A00; font-size: 12.5px; font-weight: 600; line-height: 1.25; border-radius: 3px 3px 12px 3px; box-shadow: 0 10px 18px -8px rgba(74,58,0,.35); }
.n1 { right: 12px; top: 12px; rotate: -3deg; }
.n2 { right: 34px; bottom: 12px; rotate: 2.5deg; background: #DDF1FF; color: #0B3A5C; box-shadow: 0 10px 18px -8px rgba(11,58,92,.3); }
.bscreen { position: relative; flex: 0 0 36%; height: 100px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.bb { position: absolute; border-radius: 5px; background: #BFD6FF; }
.bb1 { left: 6px; right: 6px; top: 6px; height: 12px; background: var(--action); }
.bb2 { left: 6px; top: 24px; bottom: 6px; width: 24%; }
.bb3 { left: 34%; top: 24px; width: 28%; height: 28px; }
.bb4 { left: 66%; top: 24px; right: 6px; height: 28px; }
.bb5 { left: 34%; top: 58px; right: 6px; bottom: 6px; }
.blist { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.25; font-weight: 500; }
.blist li { display: flex; align-items: center; gap: 8px; }
.blist .cur { color: var(--ink-soft); }
.art .ck { flex: none; width: 17px; height: 17px; }
.art .ck.run { border-color: var(--action); border-style: dashed; }
.art-grow svg { flex: 1 1 0; min-width: 0; width: 100%; height: auto; }
.gpills { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gp { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.gp.main { background: var(--action); border-color: var(--action); color: #fff; font-weight: 600; }

/* ---------- por qué ---------- */
.porque { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.porque h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); position: sticky; top: 120px; }
.porque-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.porque-grid li { padding: 36px 36px 44px 0; border-top: 1px solid var(--line); }
.porque-grid li:nth-child(even) { padding-left: 36px; padding-right: 0; border-left: 1px solid var(--line); }
.gly { stroke: var(--action); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 24px; }
.porque-grid h3 { margin-bottom: 10px; font-size: 1.375rem; }
.porque-grid p { color: var(--ink-soft); font-size: 16.5px; }

/* ---------- contacto ---------- */
.sec-cta { background: var(--bg-2); overflow: hidden; }
.cta-halo { position: absolute; left: 50%; bottom: -300px; width: 1300px; height: 600px; margin-left: -650px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(30,107,255,.42), transparent); filter: blur(40px); }
.contacto-grid { position: relative; display: grid; grid-template-columns: 6fr 6fr; gap: 80px; align-items: start; }
.contacto-text { display: flex; flex-direction: column; gap: 24px; }
.contacto-text h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); }
.crow { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.crow li { display: flex; align-items: center; gap: 16px; }
.cic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); background: rgba(150,175,230,.06); color: var(--cyan); flex: none; }
.cic svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct { display: flex; flex-direction: column; line-height: 1.3; }
.ct b { font-weight: 600; font-size: 16px; }
.por { color: var(--text-soft); font-size: 15px; }
.fpanel { padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-stage); }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: 14.5px; font-weight: 500; color: var(--text); }
.opt { color: var(--text-soft); font-weight: 400; }
.field input[type=text], .field input[type=email], .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid rgba(150,175,230,.3); background: #070F28; color: var(--text); font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: rgba(150,175,230,.5); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 2px; border-color: var(--cyan); }
.field [aria-invalid=true] { border-color: var(--danger) !important; }
.err { margin-top: 8px; color: #FCA5A5; font-size: 14.5px; line-height: 1.4; }
.plist { display: flex; flex-wrap: wrap; gap: 8px; }
.pl { position: relative; display: inline-flex; margin: 0 !important; }
.pl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pl span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(150,175,230,.3); background: #070F28; font-size: 15px; font-weight: 500; transition: background-color .2s, border-color .2s; }
.pl input:hover + span { border-color: rgba(150,175,230,.55); }
.pl input:checked + span { background: var(--action); border-color: var(--action); color: #fff; font-weight: 600; }
.pl input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.estado:empty { display: none; }
.estado { outline: none; }
.estado h3 { font-size: 1.5rem; margin-bottom: 10px; font-stretch: 110%; }
.estado p { color: var(--text-soft); }
.estado .ok-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(34,197,94,.16); color: #4ADE80; margin-bottom: 18px; }
.estado .ok-mark svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- footer + huincha ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p, .footer-legal { color: var(--text-soft); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { align-self: center; }
.huincha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; height: var(--huincha-h); display: grid; place-items: center; background: #020617; border-top: 1px solid var(--border); font-size: 13px; color: #C4D0EC; }
.huincha a { display: inline-block; padding: 8px 2px; color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- fallback de escala sin JS ---------- */
@media (max-width: 1295px) { .stage-wrap { --s: .9; } }
@media (max-width: 1150px) { .stage-wrap { --s: .78; } }
@media (max-width: 1000px) { .stage-wrap { --s: .66; } }
@media (max-width: 880px)  { .stage-wrap { --s: .58; } }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  :root { --gut: 32px; --sec-y: 96px; }
  .nav-list { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento .bcard { grid-column: span 1; grid-row: auto; --mh: 300px; --mf: none; }
  .bento .b-crm { --mh: 346px; } .bento .b-erp { --mh: 292px; } .bento .b-web { --mh: 310px; } .bento .b-app { --mh: 290px; } .bento .b-int { --mh: 290px; }
  .b-crm, .b-erp, .b-int { grid-column: span 2; }
  .proc, .porque { grid-template-columns: 1fr; gap: 48px; }
  .proc-sticky, .porque h2 { position: static; }
  .contacto-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- celular ---------- */
@media (max-width: 759px) {
  :root { --gut: 20px; --sec-y: 80px; }
  html { scroll-padding-top: 80px; }
  body { font-size: 17px; }
  .hero { padding-top: calc(var(--header-h) + 10px); }
  .hero-text { gap: 14px; }
  .pill { font-size: 13px; padding: 5px 14px 5px 12px; }
  h1 { font-size: 2.1rem; }
  .hero-text .lead { font-size: .9375rem; line-height: 1.5; margin-top: 0; }
  .hero-actions { gap: 10px; margin-top: 4px; }
  .hero-actions .btn { min-height: 46px; font-size: 16px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stage-outer { margin-top: 24px; }
  .stage-wrap { --W: 640; --H: 760; --s: .53; }
  .stage .cotas-d { display: none; }
  .stage .cotas-m { display: block; }
  .erp { left: 20px; top: 36px; width: 600px; height: 372px; rotate: none; }
  .erp-body { grid-template-columns: 1fr; height: 336px; }
  .erp-side, .m-stock, .m-table, .search { display: none; }
  .erp-main { grid-template-columns: 1fr; grid-template-rows: 40px 72px auto; grid-template-areas: "top" "kpi" "chart"; padding: 14px 16px; }
  .kpi-v .spark { display: none; }
  .m-chart { padding-bottom: 8px; }
  .crm { top: 382px; }
  .phone { left: 410px; top: 308px; scale: .9; transform-origin: 0 0; }
  .tag-demo { right: auto; left: 0; top: 724px; }
  .horizon { top: 750px; }
  .halo { left: -20px; top: 140px; width: 680px; height: 520px; }
  .bento, .bento .bcard { grid-template-columns: 1fr; }
  .bento .bcard, .b-crm, .b-erp, .b-int { grid-column: 1 / -1; }
  .sec-head { margin-bottom: 40px; }
  .mk-cols { gap: 6px; padding: 10px 8px; }
  .mcard { padding: 0 8px; }
  .mcard b { font-size: 11px; }
  .mcard span { font-size: 10.5px; }
  .mini .mcard .av { display: none; }
  .mover { padding: 0 8px; }
  .mc-h { flex-direction: column; gap: 1px; }
  .me-stock li { grid-template-columns: 104px 1fr 30px; gap: 8px; }
  .me-row { grid-template-columns: 1fr auto 78px; }
  .me-row .num { display: none; }
  .porque-grid { grid-template-columns: 1fr; }
  .porque-grid li, .porque-grid li:nth-child(even) { padding: 28px 0 32px; border-left: 0; }
  .fpanel { padding: 24px 20px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { grid-column: auto; }
  .huincha { font-size: 12.5px; }
}

/* ---------- movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* revelado al scroll */
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* entrada del hero */
  .js .stage .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .stage.is-ready .draw { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) .1s; }
  .js .stage .cota-t { opacity: 0; }
  .js .stage.is-ready .cota-t { opacity: 1; transition: opacity .5s ease .7s; }
  .js .stage .layer { opacity: 0; transform: translateY(26px); }
  .js .stage.is-ready .layer { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
  .js .stage .halo, .js .stage .horizon, .js .stage .tag-demo { opacity: 0; }
  .js .stage.is-ready .halo, .js .stage.is-ready .horizon, .js .stage.is-ready .tag-demo { opacity: 1; transition: opacity 1.2s ease .5s; }
  .erp { --d: .45s; } .crm { --d: .75s; } .phone { --d: 1s; }

  /* bucles: solo mientras están en pantalla */
  [data-play]:not(.is-playing) *, html.is-hidden [data-play] * { animation-play-state: paused !important; }

  .toast { display: flex; animation: toast 7s var(--ease) 2.2s infinite both; }
  @keyframes toast {
    0% { opacity: 0; transform: translateY(-14px) scale(.96); }
    6%, 30% { opacity: 1; transform: none; }
    38%, 100% { opacity: 0; transform: translateY(-14px) scale(.96); }
  }

  /* CRM */
  .mover { animation: kmove 9s var(--ease) infinite; }
  @keyframes kmove {
    0%, 20% { transform: translateX(calc(-100% - 10px)); opacity: 1; }
    34%, 90% { transform: none; opacity: 1; }
    96% { transform: none; opacity: 0; }
    97% { transform: translateX(calc(-100% - 10px)); opacity: 0; }
    100% { transform: translateX(calc(-100% - 10px)); opacity: 1; }
  }
  .swap .t-a { animation: swa 9s linear infinite; }
  .swap .t-b { animation: swb 9s linear infinite; }
  @keyframes swa { 0%, 32% { opacity: 1; } 36%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
  @keyframes swb { 0%, 32% { opacity: 0; } 36%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

  /* ERP */
  .me-stock .w { animation: fillw 8s var(--ease) infinite; }
  .me-stock li:nth-child(2) .w { animation-delay: .15s; }
  .me-stock li:nth-child(3) .w { animation-delay: .3s; }
  .me-stock li:nth-child(4) .w { animation-delay: .45s; }
  @keyframes fillw { 0%, 3% { transform: scaleX(0); } 22%, 92% { transform: scaleX(var(--v)); } 98%, 100% { transform: scaleX(0); } }
  .c-a { animation: ca 8s linear infinite; }
  .c-b { animation: cb 8s linear infinite; }
  @keyframes ca { 0%, 48% { opacity: 1; } 52%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
  @keyframes cb { 0%, 48% { opacity: 0; transform: scale(.9); } 54%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

  /* Web */
  .blk { animation: blkin 8s var(--ease) infinite backwards; animation-delay: calc(var(--i) * .45s); }
  @keyframes blkin {
    0% { opacity: 0; transform: translateY(10px) scale(.98); }
    7%, 80% { opacity: 1; transform: none; }
    92%, 100% { opacity: 0; transform: translateY(-4px); }
  }

  /* App */
  .mp-note { display: flex; animation: note 7s var(--ease) infinite; }
  @keyframes note { 0%, 8% { opacity: 0; transform: translateY(-26px); } 16%, 44% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: translateY(-26px); } }
  .ck-anim { animation: ckbg 7s linear infinite; }
  .ck-anim svg { animation: cksvg 7s var(--ease) infinite; }
  @keyframes ckbg { 0%, 46% { background: transparent; border-color: #9AA9C8; } 52%, 94% { background: #22C55E; border-color: #22C55E; } 98%, 100% { background: transparent; border-color: #9AA9C8; } }
  @keyframes cksvg { 0%, 46% { stroke-dashoffset: 24; opacity: 1; } 56%, 94% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 24; } }

  /* Integraciones */
  .mini-int .dot { animation: travel 3.4s linear infinite; }
  .d2 { animation-delay: .85s !important; } .d3 { animation-delay: 1.7s !important; } .d4 { animation-delay: 2.55s !important; }
  @keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

  /* Proceso */
  .js .tl-item .curve { transition: stroke-dashoffset 1.6s var(--ease) .3s; stroke-dasharray: 1; }
  .js .tl-item:not(.is-in) .curve { stroke-dashoffset: 1; }
  .js .tl-item .cdot, .js .tl-item .area { transition: opacity .6s ease 1.5s; }
  .js .tl-item:not(.is-in) .cdot, .js .tl-item:not(.is-in) .area { opacity: 0; }
  .js .tl-item .bb { transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .tl-item:not(.is-in) .bb { opacity: 0; transform: scale(.9); }
  .js .tl-item.is-in .bb2 { transition-delay: .2s; } .js .tl-item.is-in .bb3 { transition-delay: .4s; } .js .tl-item.is-in .bb4 { transition-delay: .6s; } .js .tl-item.is-in .bb5 { transition-delay: .8s; }
  .js .tl-item .note { transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .js .tl-item:not(.is-in) .note { opacity: 0; transform: translateY(10px); }
  .js .tl-item.is-in .n2 { transition-delay: .25s; }

  /* Proceso: el pulso viaja por cada tramo y enciende la etapa a la que llega (ciclo --D = 12 s).
     Compu: tramo 1 (0-25 %), tramo 2 (25-50 %), curva (50-73 %), estallido (73-83 %), estrella hasta ~90 %, pausa. */
  @keyframes tl-run { 0% { transform: translateX(-110px); opacity: 0; } 1.5% { opacity: 1; } 23.5% { opacity: 1; } 25%, 100% { transform: translateX(100cqw); opacity: 0; } }
  @keyframes tl-run-v { 0% { transform: translateY(-110px); opacity: 0; } 2% { opacity: 1; } 28% { opacity: 1; } 30%, 100% { transform: translateY(100cqh); opacity: 0; } }
  .tl-item .art { --sh0: 0 1px 2px rgba(11,27,63,.04), 0 12px 28px -14px rgba(11,27,63,.16), 0 30px 50px -30px rgba(11,27,63,.14); }
  @keyframes tl-lit {
    0% { background: #fff; box-shadow: 0 0 0 1.5px var(--dim); }
    2.5% { background: var(--action); box-shadow: 0 0 0 1.5px var(--action), 0 0 0 8px rgba(30,107,255,.22); }
    8%, 25% { background: var(--action); box-shadow: 0 0 0 1.5px var(--action), 0 0 0 4px rgba(30,107,255,.14); }
    35%, 100% { background: #fff; box-shadow: 0 0 0 1.5px var(--dim); }
  }
  @keyframes tl-lit-m {
    0% { background: #fff; box-shadow: 0 0 0 1.5px var(--dim); }
    3% { background: var(--action); box-shadow: 0 0 0 1.5px var(--action), 0 0 0 8px rgba(30,107,255,.22); }
    10%, 30% { background: var(--action); box-shadow: 0 0 0 1.5px var(--action), 0 0 0 4px rgba(30,107,255,.14); }
    42%, 100% { background: #fff; box-shadow: 0 0 0 1.5px var(--dim); }
  }
  @keyframes tl-art {
    0%, 35%, 100% { border-color: var(--line); box-shadow: var(--sh0), 0 0 0 0 rgba(30,107,255,0); }
    4%, 25% { border-color: #7FA8FF; box-shadow: 0 1px 2px rgba(11,27,63,.04), 0 14px 30px -14px rgba(30,107,255,.3), 0 30px 50px -30px rgba(11,27,63,.14), 0 0 0 3px rgba(30,107,255,.1); }
  }
  @keyframes tl-art-m {
    0%, 42%, 100% { border-color: var(--line); box-shadow: var(--sh0), 0 0 0 0 rgba(30,107,255,0); }
    5%, 30% { border-color: #7FA8FF; box-shadow: 0 1px 2px rgba(11,27,63,.04), 0 14px 30px -14px rgba(30,107,255,.3), 0 30px 50px -30px rgba(11,27,63,.14), 0 0 0 3px rgba(30,107,255,.1); }
  }
  .tl-seg i { animation: tl-run var(--D) linear infinite; }
  .tl-dot, .tl-item .art { animation: var(--D) linear infinite; }
  .tl-dot { animation-name: tl-lit; }
  .tl-item .art { animation-name: tl-art; }
  .tl-item:nth-child(2) .tl-seg i, .tl-item:nth-child(2) .tl-dot, .tl-item:nth-child(2) .art { animation-delay: calc(var(--D) * .25); }
  .tl-item:nth-child(3) .tl-dot, .tl-item:nth-child(3) .art { animation-delay: calc(var(--D) * .5); }

  /* curva: pulso de luz (4 capas) + trazo azul que queda dibujado detrás; ventana 0-23 % desde --cv-at */
  @keyframes cv-hd {
    0% { stroke-dashoffset: var(--L); opacity: 1; animation-timing-function: cubic-bezier(.4,.4,.8,.7); }
    23% { stroke-dashoffset: calc(var(--L) - 100); opacity: 1; animation-timing-function: linear; }
    26%, 100% { stroke-dashoffset: -100; opacity: 0; }
  }
  @keyframes cv-on {
    0% { stroke-dashoffset: 100; opacity: 1; animation-timing-function: cubic-bezier(.4,.4,.8,.7); }
    23%, 36% { stroke-dashoffset: 0; opacity: 1; }
    40%, 100% { stroke-dashoffset: 0; opacity: 0; }
  }
  .cv-hd { display: block; opacity: 0; stroke-dasharray: var(--L) 300; stroke-dashoffset: var(--L); animation: cv-hd var(--D) infinite; animation-delay: calc(var(--D) * var(--cv-at)); }
  .cv-hd:nth-last-of-type(-n+2) { filter: drop-shadow(0 0 6px rgba(43,184,255,.95)); }
  .cv-core { stroke-width: 2.4; }
  .cv-on { opacity: 0; stroke-dashoffset: 100; animation: cv-on var(--D) infinite; animation-delay: calc(var(--D) * var(--cv-at)); }

  /* estallido (10 % del ciclo ≈ 1,2 s) + estrella que queda ~2 s */
  @keyframes bz-ring { 0% { transform: scale(.2); opacity: .85; animation-timing-function: cubic-bezier(.1,.7,.25,1); } 9% { transform: scale(1); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
  @keyframes bz-fl { 0% { transform: scale(.3); opacity: 1; } 3.5% { transform: scale(1.7); opacity: .9; } 8%, 100% { transform: scale(2.6); opacity: 0; } }
  @keyframes bz-ray {
    0% { stroke-dashoffset: .45; opacity: 0; animation-timing-function: cubic-bezier(.15,.6,.3,1); }
    .4% { stroke-dashoffset: .45; opacity: 1; }
    8% { stroke-dashoffset: -1; opacity: 1; }
    8.1%, 100% { stroke-dashoffset: -1; opacity: 0; }
  }
  @keyframes bz-p {
    0% { transform: translate(0, 0) scale(1); opacity: 0; animation-timing-function: cubic-bezier(.1,.6,.3,1); }
    1% { transform: translate(0, 0) scale(1); opacity: 1; }
    11% { transform: translate(var(--x), calc(var(--y) + 10px)) scale(.3); opacity: 0; }
    100% { transform: translate(var(--x), calc(var(--y) + 10px)) scale(.3); opacity: 0; }
  }
  @keyframes bz-star {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; animation-timing-function: cubic-bezier(.2,1.5,.4,1); }
    5% { transform: scale(1.2) rotate(0); opacity: 1; }
    9%, 14% { transform: scale(1) rotate(0); opacity: 1; }
    17%, 100% { transform: scale(.7) rotate(0); opacity: 0; }
  }
  .bz-ring, .bz-fl { display: block; opacity: 0; }
  .bz-ring { stroke: var(--cyan); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
  .bz-fl { fill: #fff !important; stroke: none; filter: drop-shadow(0 0 7px var(--cyan)); }
  .bz .rs path { opacity: 0; stroke-dasharray: .45 3; stroke-dashoffset: .45; }
  .bz .ps circle { opacity: 0; }
  .bz-star, .bz-core { opacity: 0; }
  .cv .bz .bz-ring { animation: bz-ring var(--D) infinite; animation-delay: calc(var(--D) * var(--bz)); }
  .cv .bz .bz-fl { animation: bz-fl var(--D) infinite; animation-delay: calc(var(--D) * var(--bz)); }
  .cv .bz .rs path { animation: bz-ray var(--D) infinite; animation-delay: calc(var(--D) * var(--bz) + var(--k) * 16ms); }
  .cv .bz .ps circle { animation: bz-p var(--D) infinite; animation-delay: calc(var(--D) * var(--bz) + var(--k) * 16ms); }
  .cv .bz .bz-star, .cv .bz .bz-core { animation: bz-star var(--D) infinite; animation-delay: calc(var(--D) * var(--bz)); }
  .tl-wrap { --cv-at: .5; --bz: .73; }
  /* celular y tablet: pulso vertical (ciclo 9 s), sin curva ni estallido */
  @media (max-width: 1023px) {
    #como-trabajamos { --D: 9s; }
    .tl-seg i { animation-name: tl-run-v; }
    .tl-dot { animation-name: tl-lit-m; }
    .tl-item .art { animation-name: tl-art-m; }
    .tl-item:nth-child(2) .tl-seg i, .tl-item:nth-child(2) .tl-dot, .tl-item:nth-child(2) .art { animation-delay: calc(var(--D) * .3); }
    .tl-item:nth-child(3) .tl-dot, .tl-item:nth-child(3) .art { animation-delay: calc(var(--D) * .6); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .mp-note { display: none; }
}


/* =====================================================================
   v3 — lema con más presencia + sección «Quiénes somos»
   ===================================================================== */

/* ---- hero: el lema es lo más grande y lo primero que se lee ---- */
.hero-text h1 { max-width: none; font-size: clamp(2.5rem, 6.6vw, 5.75rem); line-height: .96; letter-spacing: -.04em; }
.h1-a, .h1-b { display: block; }
.h1-b {
  color: var(--cyan);
  background: linear-gradient(95deg, #5CC8FF 0%, #2BB8FF 45%, #6E9BFF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 759px) {
  .hero-text h1 { font-size: 2.35rem; line-height: 1; }
}

/* ---- banda del lema (mitad de página) ---- */
.lema { position: relative; overflow: hidden; background: var(--action); color: #fff; padding-block: 34px; border-block: 1px solid rgba(255,255,255,.18); }
.lema::before, .lema::after { content: ""; position: absolute; top: 0; bottom: 0; width: 96px; z-index: 1; pointer-events: none; }
.lema::before { left: 0; background: linear-gradient(90deg, var(--action), rgba(30,107,255,0)); }
.lema::after { right: 0; background: linear-gradient(-90deg, var(--action), rgba(30,107,255,0)); }
.lema-track { display: flex; width: max-content; }
.lema-set { flex: none; }
.lema-line {
  display: flex; align-items: center; white-space: nowrap;
  font-size: clamp(2.4rem, 6.4vw, 5.5rem); font-weight: 800; font-stretch: 118%;
  line-height: 1.05; letter-spacing: -.035em;
}
.lema-line > span { flex: none; }
.lema-b { color: #050B1E; }
.lema-sep {
  flex: none; width: .28em; height: .28em; margin-inline: .55em; border-radius: 50%;
  background: #fff; opacity: .9;
}
@media (prefers-reduced-motion: no-preference) {
  .lema-track { animation: lema-run 46s linear infinite; }
  .lema:hover .lema-track { animation-play-state: paused; }
  .js .lema:not(.is-playing) .lema-track { animation-play-state: paused; }
  @keyframes lema-run { to { transform: translateX(-33.3333%); } }
}
@media (prefers-reduced-motion: reduce) {
  .lema::before, .lema::after { display: none; }
  .lema-track { width: auto; justify-content: center; padding-inline: var(--gut); }
  .lema-track { width: 100%; }
  .lema-set { flex: 0 1 auto; min-width: 0; }
  .lema-set[aria-hidden="true"] { display: none; }
  .lema-line { flex-wrap: wrap; justify-content: center; white-space: normal; text-align: center; font-size: clamp(2rem, 5.2vw, 4.5rem); gap: .05em .4em; }
  .lema-sep { display: none; }
}
@media (max-width: 759px) { .lema { padding-block: 24px; } .lema::before, .lema::after { width: 40px; } }

/* ---- Quiénes somos ---- */
.sec-quienes { background: var(--bg); border-top: 1px solid var(--border); overflow: hidden; }
.q-glow {
  position: absolute; left: 50%; top: -220px; width: 1100px; height: 520px; margin-left: -550px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(30,107,255,.30), transparent); filter: blur(40px);
}
.sec-quienes .wrap { position: relative; }
.q-head { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; margin-bottom: 72px; }
.q-title { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.q-title h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); max-width: 13em; }
.q-story { display: flex; flex-direction: column; gap: 16px; color: var(--text-soft); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; }
.q-story b { color: var(--text); font-weight: 600; }

/* cota: ancho total = «Great Minds Building» */
.q-cota { display: flex; align-items: center; gap: 18px; margin-top: 28px; color: var(--text-soft); }
.q-cota-l { position: relative; flex: 1; height: 1px; background: rgba(43,184,255,.45); }
.q-cota-l::before, .q-cota-l::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: rgba(43,184,255,.45); }
.q-cota-l:first-child::before { left: 0; } .q-cota-l:first-child::after { display: none; }
.q-cota-l:last-child::after { right: 0; } .q-cota-l:last-child::before { display: none; }
.q-cota-t { flex: none; display: flex; flex-wrap: wrap; justify-content: center; column-gap: .5em; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; font-stretch: 110%; text-align: center; }

@media (max-width: 1023px) {
  .q-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
}
@media (max-width: 759px) {
  .q-cota { gap: 10px; }
  .q-cota-t { font-size: 12.5px; letter-spacing: .06em; flex-direction: column; align-items: center; }
  .q-cota-t .q-dot { display: none; }
  .q-cota-l { flex: 0 0 24px; }
  .q-cota { justify-content: center; }
}

/* ---- cierre: lema encima del CTA y en el footer ---- */
.cta-slogan { font-size: 15px; font-weight: 600; font-stretch: 110%; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.cta-slogan span { color: var(--cyan); }
.footer-brand .f-slogan { font-size: 1.375rem; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.25; color: var(--text); max-width: 16em; }
.footer-brand .f-slogan span { color: var(--cyan); }
.footer-brand .f-essence { font-size: 14.5px; }


/* ===== v4 · Portafolio ===== */
.p-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.p-grid > li { grid-column: span 2; }
.p-grid > .p-7, .p-grid > .p-8 { grid-column: span 3; flex-direction: row; gap: 8px; }
.p-7 .p-cap, .p-8 .p-cap { flex: 0 0 44%; align-self: flex-start; margin-bottom: 14px; }
.p-7 .p-body, .p-8 .p-body { padding-top: 6px; }
.p-card {
  display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(11,27,63,.04), 0 12px 28px -16px rgba(11,27,63,.16);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
@media (hover: hover) { .p-card:hover { border-color: #B9CCEE; box-shadow: 0 1px 2px rgba(11,27,63,.05), 0 20px 36px -16px rgba(11,27,63,.24); } }
.p-cap { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); }
.p-cap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.p-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background:
    linear-gradient(rgba(30,107,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(30,107,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #EAF2FF 0%, #D6E7FF 55%, #C4DDFF 100%);
  border-color: #C9DBF7; color: #2A3B5F;
}
.p-ph svg { fill: none; stroke: var(--action); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p-ph span { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.p-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 10px 22px; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.p-tipo, .p-estado { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.p-tipo { background: #E5EEFF; color: #1042A8; }
.p-estado { background: #FCEBCB; color: var(--warn-ink); }
.p-5 .p-estado { background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); }
.p-body h3 { font-size: 1.375rem; letter-spacing: -.015em; color: var(--navy-900); }
.p-body p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.p-tags li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--ink-soft); font-size: 13px; font-weight: 500; line-height: 1.45; }
.p-nota { margin-top: 32px; color: var(--ink-soft); font-size: 14.5px; }
.sec-head .pill { align-self: flex-start; }
.sec-light .pill { background: #EEF4FF; border-color: #C9DBF7; color: #1042A8; }
.sec-light .pill .dot-c { background: var(--action); box-shadow: none; }

@media (max-width: 1099px) {
  .p-grid { grid-template-columns: 1fr 1fr; }
  .p-grid > li, .p-grid > .p-7, .p-grid > .p-8 { grid-column: span 1; flex-direction: column; gap: 0; }
  .p-7 .p-cap, .p-8 .p-cap { flex: none; align-self: auto; margin-bottom: 0; }
  .p-7 .p-body, .p-8 .p-body { padding-top: 18px; }
}
@media (max-width: 759px) {
  .p-grid { grid-template-columns: 1fr; gap: 16px; }
  .p-grid > li, .p-grid > .p-7, .p-grid > .p-8 { grid-column: 1 / -1; }
  .p-body { padding: 16px 6px 20px; }
  .p-nota { margin-top: 24px; }
}

/* ===== v4 · Historia ===== */
.q-prop {
  position: relative; margin-bottom: 64px; padding: 36px 40px 40px; border-radius: var(--radius-xl);
  border: 1px solid var(--border-hi);
  background: radial-gradient(120% 140% at 0% 0%, rgba(30,107,255,.26), rgba(11,23,54,.6) 60%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.q-prop-l { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.q-prop-l::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }
.q-prop blockquote { margin: 18px 0 0; padding: 0; }
.q-prop blockquote p { max-width: 24em; font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 700; font-stretch: 112%; line-height: 1.1; letter-spacing: -.03em; color: var(--text); text-wrap: balance; }

.q-tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 64px; }
.q-tl li { position: relative; min-width: 0; padding-top: 30px; border-top: 1px solid rgba(43,184,255,.45); }
.q-tl li::before { content: ""; position: absolute; left: 0; top: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(43,184,255,.6); }
.q-tl h3 { font-size: 1.5rem; font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; }
.q-tl p { margin-top: 8px; max-width: 30ch; color: var(--text-soft); font-size: 16.5px; }

.q-socios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q-socios li {
  min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "av letra" "who who"; align-items: center; column-gap: 20px; row-gap: 24px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(16,32,72,.55), rgba(11,23,54,.4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.q-av { grid-area: av; position: relative; width: 168px; height: 168px; overflow: hidden; border-radius: 22px; border: 1px solid var(--border-hi); background: var(--surface-2); }
.q-av img { width: 100%; height: 100%; object-fit: cover; }
.q-av-ph { display: grid; place-items: center; background: linear-gradient(145deg, #2B7BFF 0%, #1E4FD0 45%, #0B1B3F 100%); }
.q-ini { font-size: 3.25rem; font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; color: #fff; padding-bottom: 14px; }
.q-nota { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 8px; text-align: center; font-size: 12.5px; font-weight: 500; line-height: 1.2; color: #EEF2FF; background: rgba(5,11,30,.62); }
.q-letra {
  grid-area: letra; justify-self: end; display: block; font-size: clamp(5.5rem, 8.5vw, 8rem); font-weight: 800; font-stretch: 125%;
  line-height: .78; letter-spacing: -.05em; padding-bottom: .06em;
  background: linear-gradient(180deg, #7FD3FF 0%, #2BB8FF 38%, #1E6BFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.q-who { grid-area: who; min-width: 0; }
.q-who h3 { font-size: 1.75rem; font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; }
.q-who h3 b { color: var(--cyan); font-weight: 700; }
.q-nom { margin-top: 4px; color: var(--text); font-size: 17px; font-weight: 500; }
.q-rol { margin-top: 2px; color: var(--text-soft); font-size: 16px; }

@media (max-width: 1099px) {
  .q-prop { padding: 30px 28px 32px; margin-bottom: 48px; }
  .q-tl { gap: 28px; margin-bottom: 48px; }
  .q-socios { gap: 16px; }
  .q-socios li { padding: 20px; column-gap: 14px; }
  .q-av { width: 120px; height: 120px; border-radius: 18px; }
  .q-ini { font-size: 2.5rem; padding-bottom: 12px; }
  .q-nota { font-size: 11.5px; padding: 5px 4px; }
}
@media (max-width: 759px) {
  .q-prop { padding: 26px 22px 28px; margin-bottom: 40px; border-radius: 22px; }
  .q-tl { grid-template-columns: 1fr; gap: 0; margin-bottom: 40px; padding-left: 4px; border-left: 1px solid rgba(43,184,255,.45); }
  .q-tl li { padding: 0 0 28px 28px; border-top: 0; }
  .q-tl li:last-child { padding-bottom: 0; }
  .q-tl li::before { left: -11px; top: 5px; }
  .q-tl p { max-width: none; }
  .q-socios { grid-template-columns: 1fr; }
  .q-socios li { padding: 18px; column-gap: 16px; row-gap: 16px; }
  .q-av { width: 112px; height: 112px; }
  .q-letra { font-size: 5.5rem; }
  .q-who h3 { font-size: 1.5rem; }
}

/* ===== v5 · ajustes Benjamín ===== */
/* header: logo sin slogan + «Great Minds Building» como texto real */
.brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; text-decoration: none; }
.brand img { flex: none; }
.brand-slogan {
  --ls: .18em;
  text-transform: uppercase; letter-spacing: var(--ls); font-weight: 600; font-size: 12px; line-height: 1.2;
  color: var(--text-soft); white-space: nowrap;
}
/* v7 · el logo (isotipo + GMB) mide lo mismo que la frase: la frase manda el ancho del bloque
   (grid de una columna max-content) y el logo ocupa el 100 %; el espacio que deja el tracking
   tras la última letra se resta con margen negativo para que la B termine donde termina la G. */
.brand { display: inline-grid; grid-template-columns: max-content; justify-content: start; align-content: center; row-gap: 4px; }
.brand img { width: 0; min-width: 100%; height: auto; }
.brand-slogan { margin-inline-end: calc(var(--ls) * -1); }
.footer-brand img { max-width: 100%; height: auto; }

/* g del H1: el degradado (background-clip:text) también cubre el descendente */
.h1-b { padding-bottom: .14em; margin-bottom: -.14em; }

/* menú activo (página Quiénes somos) */
.nav-list a[aria-current="page"], .footer-links a[aria-current="page"] {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}

/* página Quiénes somos: el H1 se ve igual que el H2 de la landing */
.q-title h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -.03em; max-width: 13em; }
.sec-quienes-page { padding-top: calc(var(--sec-y) - 40px); }
.q-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 88px; text-align: center; }
.q-cta-t { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.1; color: var(--text); }
/* h3→h2 en la página Quiénes somos (jerarquía h1 > h2), mismo aspecto que en la landing */
.q-tl h2, .q-who h2 { font-size: 1.5rem; font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-wrap: wrap; }
.q-who h2 { font-size: 1.75rem; }
.q-who h2 b { color: var(--cyan); font-weight: 700; }
@media (max-width: 759px) {
  .q-who h2 { font-size: 1.5rem; }
  .brand-slogan { font-size: 10.5px; --ls: .16em; }
}
/* header en escritorio: el slogan no debe apretar el menú */
.nav-list a { white-space: nowrap; }
@media (max-width: 1279px) and (min-width: 1024px) {
  .nav-list { gap: 0; }
  .nav-list a { padding: 0 9px; font-size: 14.5px; }
  .header-row { gap: 16px; }
  .brand-slogan { --ls: .14em; }
}
@media (max-width: 1139px) and (min-width: 1024px) {
  .nav-list a { padding: 0 6px; font-size: 14px; }
  .header-row { gap: 10px; }
}
@media (max-width: 380px) {
  .header-row { gap: 12px; }
  .btn-sm { padding: 0 14px; }
}

/* ===== v6 · menú desplegable en celular y tablet ===== */
.nav-toggle, .nav-cta { display: none; }
@media (max-width: 1023px) {
  .site-header .btn-sm { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 46px; height: 46px; padding: 0; border-radius: 10px; cursor: pointer;
    background: rgba(150,175,230,.06); border: 1px solid rgba(150,175,230,.28); color: var(--text);
    transition: background-color .2s, border-color .2s;
  }
  .nav-toggle:hover { background: rgba(150,175,230,.12); border-color: var(--border-hi); }
  .nav-toggle-bars { position: relative; display: block; width: 20px; height: 14px; }
  .nav-toggle-bars i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .25s var(--ease), opacity .15s, top .25s var(--ease);
  }
  .nav-toggle-bars i:nth-child(1) { top: 0; }
  .nav-toggle-bars i:nth-child(2) { top: 6px; }
  .nav-toggle-bars i:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .site-header.nav-open { background: rgba(5,11,30,.98); border-bottom-color: var(--border); }
  .site-header nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,11,30,.98); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.7);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .site-header.nav-open nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-header nav::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh;
    background: rgba(2,6,23,.72);
  }
  .site-header .nav-list {
    display: flex; flex-direction: column; gap: 0; position: relative; z-index: 1;
    padding: 6px var(--gut) 22px; max-height: calc(100vh - var(--header-h) - var(--huincha-h)); max-height: calc(100dvh - var(--header-h) - var(--huincha-h));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header .nav-list li { border-bottom: 1px solid var(--border); }
  .site-header .nav-list li:last-child { border-bottom: 0; }
  .site-header .nav-list a:not(.btn) {
    display: flex; width: 100%; min-height: 56px; padding: 0 4px; border-radius: 0;
    font-size: 19px; font-weight: 600; color: var(--text);
  }
  .site-header .nav-list a[aria-current="page"] { text-decoration: none; color: var(--cyan); }
  .nav-list .btn { width: 100%; }
  .nav-cta { padding-top: 18px; border-bottom: 0 !important; }
  .nav-cta .btn { min-height: 54px; font-size: 17px; }
}
@media (max-width: 520px) {
  .site-header .btn-sm { display: none; }
  .nav-toggle { margin-left: auto; }
  .nav-cta { display: block; }
}
/* solo en <html>: si <body> también lleva overflow:hidden se vuelve contenedor de scroll y el header sticky queda pegado al tope del documento (el menú abría fuera de pantalla) */
html.nav-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .site-header nav, .nav-toggle-bars i, .nav-toggle { transition: none !important; }
}
/* sin JavaScript: los links siguen accesibles, en una fila bajo el logo */
@media (max-width: 1023px) {
  html:not(.js) .nav-toggle, html:not(.js) .nav-cta { display: none; }
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header-row { flex-wrap: wrap; height: auto; padding-block: 8px; }
  html:not(.js) .site-header nav { position: static; visibility: visible; opacity: 1; transform: none; width: 100%; order: 3; background: none; border: 0; box-shadow: none; }
  html:not(.js) .site-header nav::after { display: none; }
  html:not(.js) .site-header .nav-list { flex-direction: row; flex-wrap: wrap; padding: 0; max-height: none; }
  html:not(.js) .site-header .nav-list li { border: 0; }
  html:not(.js) .site-header .nav-list a:not(.btn) { width: auto; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; }
  html:not(.js) .site-header .btn-sm { display: inline-flex; }
  html:not(.js) .hero { margin-top: 0; padding-top: 24px; }
}

/* ===== v8 · header A1 ===== */
/* el logo (isotipo + barra + GMB con tracking, SVG) mide lo mismo que la frase y queda pegado sobre ella:
   la G arranca junto a la barra y la B termina donde termina el slogan. Sin estirar glifos. */
.brand { row-gap: 3px; }
.brand img { aspect-ratio: 184 / 40; }

/* ---------- proceso · tablet y celular (<1024) ---------- */
@media (max-width: 1023px) {
  #como-trabajamos { --tl-gap: 14px; padding-block: 72px; }
  .proc { gap: 32px; }
  .proc-sticky { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tl-n { margin-bottom: 2px; }
  .tl-item h3 { font-size: 1.625rem; }
  .tl-item > p:not(.tl-n) { margin-bottom: 14px; }
  .art { min-height: 124px; }

  /* apilada compacta, línea vertical con el pulso bajando */
  .tl { display: block; padding-left: 40px; }
  .tl-item { padding: 0 0 30px; }
  .tl-item:last-child { padding-bottom: 0; }
  .cv-d { display: none; }
  .tl-dot { left: -40px; top: 4px; }
  .tl-seg { left: -34.5px; top: calc(4px + var(--dot)); width: 2px; height: calc(100% - var(--dot)); clip-path: inset(0 -14px); }
  .tl-seg i { left: -1px; top: 0; width: 4px; height: 110px; transform: translateY(-110px);
    background: linear-gradient(180deg, rgba(30,107,255,0), var(--action) 62%, var(--cyan)); }
}
@media (max-width: 759px) {
  #como-trabajamos { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-seg { background: var(--action); }
  .tl-seg i { display: none; }
  .tl-dot { background: var(--action); box-shadow: 0 0 0 1.5px var(--action); }
}

/* ===== v12 · Portafolio: tarjeta pinchable + ficha en pop-up con carrusel ===== */
.p-card { position: relative; }
.p-open { all: unset; cursor: pointer; }
.p-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.p-open:focus-visible { outline: none; }
.p-open:focus-visible::after { outline: 3px solid var(--link-light); outline-offset: -3px; }
.p-more { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding-top: 4px; color: var(--link-light); font-size: 15px; font-weight: 600; }
.p-more svg, .pm svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-more svg { transition: transform .25s var(--ease); }
@media (hover: hover) { .p-card:hover .p-more svg { transform: translateX(3px); } .p-card:hover { cursor: pointer; } }

html.pm-lock { overflow: hidden; padding-right: var(--sbw, 0px); }
.pm {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(5,11,30,.74); overscroll-behavior: contain; opacity: 0; transition: opacity .18s var(--ease);
}
.pm[hidden] { display: none; }
.pm.is-in { opacity: 1; }
.pm-dialog {
  position: relative; width: min(880px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--ink-soft); border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.7); transform: translateY(14px) scale(.985); transition: transform .22s var(--ease);
}
.pm.is-in .pm-dialog { transform: none; }
.pm-dialog:focus { outline: none; }
.pm :focus-visible { outline: 3px solid var(--link-light); outline-offset: 2px; }
.pm-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--navy-900); cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(11,27,63,.35);
}
.pm-close:hover { background: #fff; border-color: #B9CCEE; }

.pm-car { position: relative; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pm-vp { overflow: hidden; touch-action: pan-y; cursor: grab; }
.pm-vp:active { cursor: grabbing; }
.pm-track { display: flex; transition: transform .38s var(--ease); will-change: transform; }
.pm-track.no-anim { transition: none; }
.pm-slide { flex: 0 0 100%; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.pm-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; user-select: none; -webkit-user-drag: none; }
.pm-slide video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0B1B3F; }
.pm-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #2A3B5F;
  background:
    linear-gradient(rgba(30,107,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(30,107,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #EAF2FF 0%, #D6E7FF 55%, #C4DDFF 100%);
}
.pm-ph svg { stroke: var(--action); stroke-width: 1.6; }
.pm-ph strong { font-size: 1.125rem; color: var(--navy-900); letter-spacing: -.01em; }
.pm-ph span { max-width: 36ch; font-size: 15px; color: var(--ink-soft); }
.pm-nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -30px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--navy-900); cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(11,27,63,.4); transition: opacity .2s, background .2s;
}
.pm-nav:hover:not(:disabled) { background: #fff; border-color: #B9CCEE; }
.pm-nav:disabled { opacity: .35; cursor: default; }
.pm-prev { left: 12px; } .pm-next { right: 12px; }
.pm-dots { display: flex; justify-content: center; gap: 0; padding: 4px 0; }
.pm-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pm-dot span { width: 9px; height: 9px; border-radius: 50%; background: #8396BA; transition: background .2s, transform .2s; }
.pm-dot[aria-current] span { background: var(--action); transform: scale(1.25); }
.pm-count { position: absolute; right: 12px; bottom: 7px; z-index: 2; margin: 0; padding: 3px 10px; border-radius: 99px; background: rgba(11,27,63,.82); color: #fff; font-size: 13px; font-weight: 600; }

.pm-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 32px 32px; }
.pm-body h3 { font-size: 1.75rem; letter-spacing: -.02em; color: var(--navy-900); }
.pm-body h4 { margin-top: 6px; font-size: 1rem; color: var(--navy-900); }
.pm-desc { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.pm-conecta { margin-top: 12px; font-size: 15px; }
.pm-conecta b { color: var(--navy-900); }
.pm-estado { background: #FCEBCB; color: var(--warn-ink); }
.pm-inc { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.pm-inc li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.pm-inc li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 6px; height: 11px; border: solid var(--action); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.pm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.pm-visit { align-self: flex-start; gap: 8px; }
.pm-visit svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 639px) {
  .pm { padding: 0; }
  .pm-dialog { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .pm-slide { aspect-ratio: 16 / 10; }
  .pm-body { padding: 20px 20px 32px; }
  .pm-body h3 { font-size: 1.5rem; }
  .pm-actions .btn { width: 100%; justify-content: center; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm, .pm-dialog, .pm-track, .pm-dot span, .p-more svg { transition: none; }
  .pm-dialog { transform: none; }
}

/* v17: leyenda por lámina (solo láminas con s.leyenda) */
.pm-slide.pm-has-cap { aspect-ratio: auto; overflow: visible; }
.pm-fig { margin: 0; display: flex; flex-direction: column; height: 100%; }
.pm-fig img { height: auto; aspect-ratio: 16 / 10; }
.pm-cap { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; background: #0B1736; color: #EEF2FF; text-align: left; flex: 1; min-height: 5.6em; }
.pm-cap strong { font-size: 15px; font-weight: 700; }
.pm-cap span { font-size: 14px; line-height: 1.4; color: #D3DBF0; }
@media (max-width: 600px) { .pm-cap { padding: 9px 12px 11px; min-height: 8.2em; } .pm-cap strong { font-size: 14px; } .pm-cap span { font-size: 13px; } }

/* v17b: láminas Evidenta con texto en la imagen; en celular, variante vertical (<picture>) */
.pm-slide.pm-lam picture { display: block; }
.pm-slide.pm-lam img { object-fit: contain; }
@media (max-width: 600px) { .pm-slide.pm-lam { aspect-ratio: 640 / 1040; } }

/* ===== v22 · vista previa 5 · tarjetas simplificadas + tipografía de categorías ===== */
/* Tipografía: el logo Ingenia Labs está dibujado con Space Grotesk (700 INGENIA · 400 LABS · 500 slogan).
   El listado de categorías (menú, slogan del header, tipo/estado y etiquetas de proyecto, enlaces del pie)
   usa la misma familia; títulos y texto corrido siguen en Archivo. */
:root { --font-cat: "Space Grotesk", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; }
.nav-list a, .brand-slogan, .p-tipo, .p-estado, .p-tags li, .footer-links a { font-family: var(--font-cat); }
.nav-list a { font-weight: 500; letter-spacing: .005em; }
.brand-slogan { font-weight: 500; }
.p-tipo, .p-estado { font-weight: 600; letter-spacing: .01em; }
.p-tags li { font-weight: 500; letter-spacing: .005em; }
.footer-links a { font-weight: 500; letter-spacing: .005em; }

/* Mockups CRM y ERP: menos datos, más grandes, más aire */
.mk-t { font-size: 14px; }
.mk-r { font-size: 13px; }
.mk-bar { height: 40px; }
.mk-cols { gap: 14px; padding: 18px 16px 20px; }
.mc-h { margin-bottom: 12px; font-size: 15px; }
.mc-h span { font-weight: 650; }
.mc-h strong { font-size: 13.5px; }
.mcard, .mslot { height: 84px; margin-bottom: 12px; padding: 0 16px; grid-template-columns: 1fr; row-gap: 5px; }
.mcard b { font-size: 16px; padding-right: 0; }
.mcard span { font-size: 14.5px; }
.mc-win .mcard:not(.mover) { border-left-width: 4px; }
.mover { padding: 0 16px; }
.me-body { padding: 14px 20px 14px; }
.me-stock li { grid-template-columns: 150px 1fr 40px; gap: 14px; height: 40px; font-size: 15px; }
.me-stock b { font-size: 16px; }
.mini .bar { height: 12px; }
.me-inv { margin-top: 8px; padding-top: 8px; }
.me-row { grid-template-columns: 62px 1fr auto 96px; gap: 10px; height: 46px; font-size: 14.5px; }
.me-row .mt { font-size: 15px; }
.chipswap { height: 26px; }
.mini .chip { font-size: 12.5px; padding: 3px 10px; }

/* otras tarjetas: textos de los mockups con tamaño legible, mismo contenido */
.mk-url { font-size: 12.5px; height: 24px; }
.pg-hero b { font-size: 17px; }
.pg-hero span { font-size: 12.5px; }
.pg-btn { font-size: 12.5px; padding: 6px 12px; }
.mp-h b { font-size: 15px; }
.mp-h small { font-size: 12px; }
.mp-list li { font-size: 12px; }
.mp-note { font-size: 12px; }
.mp-note b { font-size: 12px; }
.mp-note small { font-size: 11px; }

/* anchos medios: los nombres de las tarjetas se parten en dos líneas en vez de cortarse con «…» */
@media (max-width: 1279px) {
  .mcard { padding: 0 12px; }
  .mcard b { font-size: 15px; line-height: 1.2; white-space: normal; overflow: visible; text-overflow: clip; }
  .mover { padding: 0 12px; }
}
@media (max-width: 1023px) {
  /* CRM y ERP a todo el ancho para que sus mockups se lean (antes quedaban en media columna, con el texto cortado) */
  .bento .b-crm, .bento .b-erp { grid-column: span 2; }
  .bento .b-erp { --mh: 330px; }
}
@media (max-width: 759px) {
  .bento .b-erp { --mh: 336px; }
  .mk-bar { height: 38px; }
  .mk-t { font-size: 13.5px; }
  .mk-cols { gap: 6px; padding: 14px 8px 16px; }
  .mc-h { gap: 3px; margin-bottom: 10px; font-size: 13.5px; }
  .mc-h strong { font-size: 12.5px; }
  .mcard, .mslot { height: 96px; margin-bottom: 10px; padding: 0 8px; row-gap: 6px; }
  .mcard { align-content: center; }
  .mcard b { font-size: 13px; letter-spacing: -.01em; line-height: 1.2; white-space: normal; overflow: visible; text-overflow: clip; }
  .mcard span { font-size: 12.5px; }
  .mover { padding: 0 8px; }
  .me-body { padding: 16px 14px 18px; }
  .me-stock li { grid-template-columns: 124px 1fr 34px; gap: 10px; height: 42px; font-size: 14px; }
  .me-stock b { font-size: 15px; }
  .me-row { grid-template-columns: 1fr auto; grid-template-areas: "cli chip" "mt chip"; column-gap: 10px; row-gap: 2px; height: 58px; font-size: 14px; }
  .me-row .cli { grid-area: cli; align-self: end; }
  .me-row .mt { grid-area: mt; align-self: start; font-size: 13.5px; color: var(--text-soft); font-weight: 500; }
  .me-row .chipswap { grid-area: chip; }
  .mini .chip { font-size: 12px; }
  .mcard { padding: 0 8px; }
  .mcard b { font-size: 13px; }
  .mp-list li { font-size: 12.5px; }
  .pg-hero b { font-size: 16px; }
}
@media (max-width: 380px) { .mcard b { font-size: 12.5px; letter-spacing: -.015em; } .mcard, .mover { padding: 0 7px; } .mk-cols { gap: 5px; padding-inline: 6px; } }
/* Space Grotesk es ~7 % más ancha que Archivo: el menú se compacta un paso por tramo para no desbordar el header */
@media (min-width: 1280px) and (max-width: 1359px) { .nav-list a { font-size: 14px; padding: 0 12px; } }
@media (min-width: 1140px) and (max-width: 1279px) { .nav-list a { font-size: 13.5px; padding: 0 8px; letter-spacing: 0; } }
@media (min-width: 1024px) and (max-width: 1139px) { .nav-list a { font-size: 13px; padding: 0 5px; letter-spacing: 0; } .header-row { gap: 8px; } }


/* =====================================================================
   v22 (variante video) — hero minimalista con fondo de video de banco (12 s, loop sin costura)
   ===================================================================== */
.hero.hero-v {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 24px) 0 calc(var(--huincha-h) + 48px);
  background: var(--bg); isolation: isolate;
}
.hero.hero-v::before { display: none; }              /* sin la grilla del hero anterior */
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--bg) url("../hero-video/hero-video-poster.jpg") center / cover no-repeat;   /* poster = reduced-motion, sin JS y carga */
}
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-bg video.on { opacity: 1; }
/* oscurece detrás del texto (contraste AA) y funde el borde inferior con la sección siguiente */
.hero-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* v22 video3: el video se ve más — velo general leve + oscuro solo detrás del bloque de texto (elipse centrada) */
  background:
    radial-gradient(ellipse 42% 46% at 50% 47%, rgba(5,11,30,.84) 0%, rgba(5,11,30,.76) 55%, rgba(5,11,30,0) 100%),
    linear-gradient(180deg, rgba(5,11,30,.78) 0, rgba(5,11,30,.66) 8%, rgba(5,11,30,0) 26%, rgba(5,11,30,0) 76%, var(--bg) 100%),
    linear-gradient(rgba(5,11,30,.14), rgba(5,11,30,.14));
}
@media (max-width: 759px) {
  .hero-overlay {
    background:
      radial-gradient(ellipse 115% 40% at 50% 46%, rgba(5,11,30,.84) 0%, rgba(5,11,30,.76) 60%, rgba(5,11,30,0) 100%),
      linear-gradient(180deg, rgba(5,11,30,.78) 0, rgba(5,11,30,.66) 8%, rgba(5,11,30,0) 26%, rgba(5,11,30,0) 76%, var(--bg) 100%),
      linear-gradient(rgba(5,11,30,.14), rgba(5,11,30,.14));
  }
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.hero-v h1 { max-width: none; font-size: clamp(2.75rem, 9vw, 7.25rem); line-height: .95; letter-spacing: -.045em; color: #fff; }
.hero-inner .btn { margin-top: 14px; }

/* header: transparente sobre el fondo; sólido al hacer scroll */
.site-header { background: transparent; }
.site-header.scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--border); }

@media (max-width: 759px) {
  .hero-bg { background-image: url("../hero-video/hero-video-poster-m.jpg"); }
  .hero.hero-v { padding-top: calc(var(--header-h) + 12px); padding-bottom: calc(var(--huincha-h) + 40px); }
  .hero-v h1 { font-size: clamp(2.5rem, 12.5vw, 3.5rem); }
  .hero-inner { gap: 18px; }
  .hero-inner .btn { width: 100%; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg video { display: none; }                  /* solo poster */
}


/* =====================================================================
   v24 (vista previa 6) — reestructura: el hero lleva el titular completo (dos líneas, la 2.ª con el degradado de marca)
   + párrafo + botón sobre el video; «Lo que construimos» vuelve como apertura de sección (estilo v21) y, justo debajo,
   el dashboard + celular del hero de la v21 (mismo CSS/animaciones, reubicado en la sección).
   ===================================================================== */
.hero-v .hero-inner { max-width: 1120px; gap: 28px; }
.hero-v h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; color: #fff;
  text-wrap: nowrap;                                  /* escritorio: una frase por línea */
}
.hero-v h1 .h1-a, .hero-v h1 .h1-b { display: block; }
.hero-v h1 .h1-b { padding-bottom: .14em; margin-bottom: -.14em; }   /* el degradado también cubre los descendentes (g, p) */
.hero-lead { max-width: 64ch; font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.6; color: #D6DCF2; text-wrap: balance; }
.hero-inner .btn { margin-top: 6px; }
@media (max-width: 759px) {
  .hero-v h1 { font-size: clamp(2.1rem, 10.2vw, 2.6rem); line-height: 1.05; text-wrap: balance; }   /* celular: cada frase puede partirse en dos líneas */
  .hero-inner { gap: 20px; }
  .hero-lead { font-size: 1rem; line-height: 1.55; }
}
/* el overlay cubre ahora un bloque de texto más alto y más ancho */
.hero-overlay {
  background:
    radial-gradient(ellipse 62% 62% at 50% 50%, rgba(5,11,30,.86) 0%, rgba(5,11,30,.78) 60%, rgba(5,11,30,0) 100%),
    linear-gradient(180deg, rgba(5,11,30,.78) 0, rgba(5,11,30,.66) 8%, rgba(5,11,30,0) 26%, rgba(5,11,30,0) 76%, var(--bg) 100%),
    linear-gradient(rgba(5,11,30,.14), rgba(5,11,30,.14));
}
@media (max-width: 759px) {
  .hero-overlay {
    background:
      radial-gradient(ellipse 120% 58% at 50% 50%, rgba(5,11,30,.86) 0%, rgba(5,11,30,.78) 62%, rgba(5,11,30,0) 100%),
      linear-gradient(180deg, rgba(5,11,30,.78) 0, rgba(5,11,30,.66) 8%, rgba(5,11,30,0) 26%, rgba(5,11,30,0) 76%, var(--bg) 100%),
      linear-gradient(rgba(5,11,30,.14), rgba(5,11,30,.14));
  }
}
/* dashboard + celular dentro de «Lo que construimos» */
#construimos .stage-outer { margin-top: -8px; margin-bottom: 72px; }
@media (max-width: 759px) { #construimos .stage-outer { margin-top: -4px; margin-bottom: 40px; } }
