/* PixelArte website (T-186). The page, its windows and its motion. The demos live in demos/. */

@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #061A33;
  --white: #FFFFFF;
  --cobalt: #1F4BFF;
  /* solid greys for text, lines and borders */
  --muted: #A9B6C9;   /* secondary text on navy */
  --line: #1E3554;    /* hairlines on navy */
  --line-2: #2A4266;  /* borders on navy */
  --bezel: #020D1C;   /* device frames */
  --g0: #F4F6F9;      /* window bars */
  --g1: #E3E8EF;      /* window lines, desk behind a phone */
  --g2: #C3CCD9;      /* borders on white */
  --g3: #5B687B;      /* secondary text on white */

  --display: "Outfit", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mb: 72px;                               /* menu bar */
  --tb: 0px;                                /* taskbar, fixed on desktop */
  --pad: clamp(20px, 3.4vw, 64px);
  --gap: clamp(32px, 4vw, 80px);
  --copyw: clamp(380px, 26vw, 600px);       /* hero copy */
  --chw: clamp(320px, 24vw, 470px);         /* chapter copy */
  --demo-h: auto;                           /* height of a demo window's view */
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) {
  :root { --tb: 56px; --demo-h: clamp(520px, calc(100svh - var(--mb) - var(--tb) - 88px), 820px); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--navy); scroll-padding-bottom: calc(var(--tb) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.has-max { overflow: hidden; }
html.has-max body { padding-right: var(--sbw, 0px); }
html.has-max :is(.menubar, .taskbar) { right: var(--sbw, 0px); }
body { margin: 0; padding-bottom: var(--tb); background: var(--navy); color: var(--white); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 900px) { body { font-size: 18px; } }
::selection { background: var(--cobalt); color: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:where(h1, h2, h3) { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
:where(.win, .proceso) :focus-visible { outline-color: var(--cobalt); }
[id] { scroll-margin-top: var(--mb); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 2px solid transparent; font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease); }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary::after { content: ""; width: 8px; height: 8px; background: currentColor; }
.btn-primary:hover { background: var(--white); color: var(--navy); }
.win .btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: var(--line-2); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--cobalt); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

/* ---------- menu bar ---------- */
.menubar { position: fixed; inset: 0 0 auto 0; height: var(--mb); z-index: 50; background: var(--navy); border-bottom: 1px solid var(--line); }
.menubar-in { height: 100%; padding: 0 var(--pad); display: flex; align-items: center; gap: 32px; }
.lockup { display: flex; align-items: center; min-height: 44px; }
.lockup img { height: 36px; width: auto; }
.menu { display: flex; gap: 8px; margin-left: 24px; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px; padding: 12px; transition: color .2s, transform .3s var(--ease); display: inline-block; }
.menu a:hover { color: var(--white); }
.clock { margin-left: auto; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.clock::first-letter { text-transform: uppercase; }

/* ---------- hero: the desktop ---------- */
.hero { min-height: calc(100svh - var(--tb)); padding-top: var(--mb); display: flex; flex-direction: column; }
.hero-grid { flex: 1; width: 100%; padding: clamp(24px, 3.5vh, 40px) var(--pad); display: grid; grid-template-columns: var(--copyw) minmax(0, 1fr); gap: var(--gap); align-items: center; }
/* the main line breaks only between its phrases; "para tu negocio." (6.93 em) is the longest, so the size follows the column */
.hero-copy h1 { font-size: clamp(44px, min(4.3vw, calc(var(--copyw) / 7.1)), 84px); }
.hero-copy h1 .nw { white-space: nowrap; }
.lead { margin-top: 24px; font-size: clamp(18px, 1.15vw, 22px); color: var(--muted); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.offer { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 16px; font-weight: 500; text-wrap: balance; }
.offer::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: calc(.75em - 4px); background: var(--cobalt); }
/* the phone stands beside the ERP window, never over its content */
.hero-desk { --php: 292px; position: relative; height: clamp(520px, calc(100svh - var(--mb) - var(--tb) - 72px), 760px); }
.hero-erp { position: absolute; left: 0; top: 0; width: calc(100% - var(--php) - 28px); height: calc(100% - 56px); display: flex; flex-direction: column; z-index: 1; }
.hero-erp .win-view { flex: 1; min-height: 0; }
.hero-phone { position: absolute; right: 0; bottom: 0; z-index: 2; width: var(--php); height: min(600px, calc(100% - 40px)); }

/* ---------- taskbar: in the hero on phones, a dock along the bottom on desktop ---------- */
.taskbar { padding: 0 var(--pad) 20px; }
.taskbar-in { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; overflow-x: auto; scrollbar-width: none; }
.taskbar-in::-webkit-scrollbar { display: none; }
.taskbar a { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 16px; background: var(--navy); transition: border-color .2s, transform .3s var(--ease); }
.taskbar a:hover, .taskbar a.is-on { border-color: var(--white); }
.taskbar .tb-start { padding: 0 11px; }
.tb-start img { width: 22px; height: 22px; }
.tb-ico { width: 10px; height: 10px; border: 1.5px solid var(--muted); transition: background-color .3s, border-color .3s; }
.taskbar a.is-open .tb-ico { background: var(--white); border-color: var(--white); }
.taskbar a.is-on .tb-ico, .taskbar a:hover .tb-ico { background: var(--cobalt); border-color: var(--cobalt); }
.tb-hint { margin-left: auto; padding-left: 16px; color: var(--muted); font-size: 15px; white-space: nowrap; transition: opacity .3s; }
.taskbar.past .tb-hint { opacity: 0; }
@media (min-width: 900px) {
  .taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--tb); padding: 0 var(--pad); background: var(--navy); border-top: 1px solid var(--line); }
  .taskbar-in { height: 100%; border-top: 0; padding-top: 0; }
  .taskbar a { min-height: 40px; font-size: 15px; }
}

/* ---------- windows ---------- */
.win { position: relative; background: var(--white); color: var(--navy); border-radius: var(--r); box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .55); font-size: 14px; }
canvas.build { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; }
.win-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; background: var(--g0); border-bottom: 1px solid var(--g1); border-radius: var(--r) var(--r) 0 0; font-weight: 600; font-size: 14px; user-select: none; -webkit-user-select: none; }
.win-ico { width: 10px; height: 10px; background: var(--cobalt); flex: none; }
.win-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-view { position: relative; overflow: hidden; border-radius: 0 0 var(--r) var(--r); }
.win-view > [data-demo] { height: 100%; }
@media (hover: hover) and (pointer: fine) {
  .hero [data-drag] { cursor: grab; }
  .hero .dev-phone .win-view { cursor: auto; }
  .is-dragging, .is-dragging [data-drag] { cursor: grabbing; }
}
.is-dragging { user-select: none; }

/* maximize: the window grows to fill the screen between the bars */
.win-max { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r); cursor: pointer; color: var(--g3); }
.win-max:hover { background: var(--g1); color: var(--navy); }
.win-max i { width: 12px; height: 12px; border: 1.5px solid currentColor; }
.win-max[aria-pressed="true"] i { width: 10px; height: 10px; box-shadow: 3px -3px 0 -1.5px var(--g0), 3px -3px 0 0 currentColor; }
.win-demo.is-max { position: fixed; z-index: 60; left: var(--pad); right: var(--pad); top: calc(var(--mb) + 16px); bottom: calc(var(--tb) + 16px); display: flex; flex-direction: column; }
.win-demo.is-max .win-view { flex: 1; height: auto; min-height: 0; }
.win-demo.flipping .win-view { opacity: 0; }
.win-demo .win-view { transition: opacity .18s ease-out; }
.max-backdrop { position: fixed; inset: 0; z-index: 55; background: var(--navy); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.max-backdrop.on { opacity: 1; visibility: visible; transition: opacity .3s; }
@media (max-width: 899px) { .win-max { display: none; } }

/* phone device on the desktop */
.dev-phone { background: var(--bezel); border: 1px solid var(--line-2); border-radius: 46px; padding: 10px; box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .55); }
.dev-phone .win-view { height: 100%; border-radius: 36px; }
.dev-phone::after { content: ""; position: absolute; z-index: 3; left: 50%; top: 20px; width: 30%; height: 24px; transform: translateX(-50%); border-radius: 12px; background: var(--bezel); }

/* palette window */
.win-pal { position: absolute; z-index: 3; width: 250px; left: -96px; bottom: -8px; }
.swatches { padding: 8px 14px 10px; }
.swatches li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--g1); }
.swatches li:first-child { border-top: 0; }
.swatches i { width: 26px; height: 26px; box-shadow: inset 0 0 0 1px rgba(6, 26, 51, .12); }
.swatches span { font-weight: 600; }
.swatches code { font: 500 13px/1 var(--body); color: var(--g3); font-variant-numeric: tabular-nums; }

/* pixel build: a window starts empty and the canvas builds it */
.motion .buildable:not(.shell-on) { background: transparent; box-shadow: none; border-color: transparent; }
.motion .buildable:not(.shell-on)::after { opacity: 0; }
.motion .buildable:not(.shell-on) .win-view { visibility: hidden; }
.motion .buildable [data-build] { transition: opacity .2s ease-out; }
.motion .buildable [data-build]:not(.on) { opacity: 0; }
.reveal-all .buildable { background: var(--white) !important; box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .55) !important; }
.reveal-all .dev-phone.buildable { background: var(--bezel) !important; border-color: var(--line-2) !important; }
.reveal-all .buildable .win-view { visibility: visible !important; }
.reveal-all [data-build] { opacity: 1 !important; }

/* hero entrance for the copy: CSS only, from the first paint, with no wait on the scripts. The h1 is never invisible: it only rises;
   the lines under it rise and fade in, with the same timing as before */
@keyframes hero-rise { from { transform: translateY(14px); } }
@keyframes hero-fade { from { opacity: 0; } }
.motion .hero-copy > * { animation: hero-rise .8s var(--ease) backwards, hero-fade .6s ease-out backwards; }
.motion .hero-copy > h1 { animation: hero-rise .8s var(--ease) backwards; }
.motion .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .16s; }
.reveal-all .hero-copy > * { opacity: 1 !important; transform: none !important; }

/* ---------- lo que hacemos: one chapter per demo ---------- */
.ch-intro { padding: clamp(64px, 6vw, 120px) var(--pad) clamp(24px, 2vw, 40px); border-top: 1px solid var(--line); }
.ch-intro h2 { font-size: clamp(40px, 4vw, 76px); }
.chapter { border-top: 1px solid var(--line); }
.ch-in { min-height: calc(100svh - var(--mb) - var(--tb)); padding: 24px var(--pad); display: grid; grid-template-columns: var(--chw) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.ch-k { display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 600; font-size: 15px; }
.ch-k span { font: 600 15px/1 var(--display); color: var(--white); padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r); font-variant-numeric: tabular-nums; }
.ch-copy h3 { margin-top: 22px; font-size: clamp(30px, 2.6vw, 50px); }
.ch-copy > p:not(.ch-k):not(.ch-hint) { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.1vw, 21px); max-width: 34ch; }
.ch-hint { display: flex; align-items: baseline; gap: 12px; margin-top: 28px; font-size: 16px; max-width: 34ch; }
.ch-hint::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--cobalt); transform: translateY(-2px); }
.win-demo { min-width: 0; }
.win-demo .win-view { height: var(--demo-h); }

/* web window: the same site on a computer or inside a phone */
.seg { margin-left: auto; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--g2); border-radius: var(--r); background: var(--white); }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 30px; border: 0; border-radius: 2px; background: none; color: var(--g3); font: 600 13px/1 var(--body); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--navy); }
.seg button i { width: 8px; height: 8px; border: 1.5px solid currentColor; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.seg button[aria-pressed="true"] i { background: var(--cobalt); border-color: var(--cobalt); }
.ch-web .win-view { background: var(--g1); }
.ch-web .win-view[data-view="phone"] > [data-demo] { width: var(--pw, 380px); height: calc(100% - 48px); margin: 24px auto 0; border: 10px solid var(--bezel); border-radius: 46px; }
/* wide stages: two more pages of the store, in phones beside the live one */
.web-ghost { display: none; }
.ch-web .win-view.ghosts[data-view="phone"] { display: flex; align-items: flex-start; justify-content: space-evenly; }
.ch-web .win-view.ghosts[data-view="phone"] > :is([data-demo], .web-ghost) { flex: none; margin: 24px 0 0; }
.ch-web .win-view.ghosts[data-view="phone"] > .web-ghost { display: block; width: var(--pw); height: calc(100% - 48px); border: 10px solid var(--bezel); border-radius: 46px; pointer-events: none; }
.web-ghost.g1 { order: -1; }
.web-ghost.g2 { order: 1; --gd: .3s; }
/* the side pages rise as the phone's screen uncovers (the view turns phone at the swap; the reveal starts .23 s later) */
.motion .ch-web .win-view.ghosts[data-view="phone"] > .web-ghost { animation: ghost-in .3s var(--ease) var(--gd, .2s) both; }
.motion .ch-web .win-view.ghosts.leaving > .web-ghost { animation: ghost-out .25s ease-in both; }
@keyframes ghost-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes ghost-out { to { opacity: 0; } }
.morph-cv { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; }
.chapter.pinned .ch-in { position: sticky; top: var(--mb); height: calc(100svh - var(--mb) - var(--tb)); min-height: 0; }
.chapter.pinned { height: calc(100svh - var(--mb) - var(--tb) + var(--travel, 0px)); }

/* ---------- section change: a calm pixel-block wipe ---------- */
.wipe { position: relative; }
.wipe-canvas { position: absolute; left: 0; top: 0; pointer-events: none; display: none; }
.wipe-content { position: relative; z-index: 1; transition: opacity .45s ease-out; }
.motion .wipe.pending { background: var(--from) !important; }
.motion .wipe.pending .wipe-content { opacity: 0; }
.motion .wipe.pending.reveal .wipe-content { opacity: 1; }
.motion .wipe.wiping .wipe-canvas { display: block; }
.reveal-all .wipe .wipe-content { opacity: 1 !important; }

/* ---------- cómo trabajamos ---------- */
.proceso { background: var(--white); color: var(--navy); padding: clamp(80px, 9vw, 160px) 0; }
.proceso-grid { display: grid; grid-template-columns: var(--chw) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.proceso h2 { font-size: clamp(40px, 4vw, 76px); }
.steps { border-top: 1px solid var(--g1); }
.steps li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--g1); }
.step-verb { display: flex; align-items: center; gap: 16px; font: 600 clamp(26px, 2.2vw, 40px)/1.1 var(--display); letter-spacing: -0.015em; }
.step-verb::before { content: ""; width: 12px; height: 12px; background: var(--cobalt); flex: none; }
.steps p { color: var(--g3); font-size: clamp(17px, 1.1vw, 21px); max-width: 40ch; }

/* ---------- hablemos ---------- */
.hablemos { background: var(--navy); padding: clamp(80px, 9vw, 160px) 0; }
.hablemos-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--gap); align-items: start; }
.hablemos h2 { font-size: clamp(44px, 6vw, 120px); }
@media (min-width: 900px) {
  .hablemos-grid { align-items: center; }
  .hablemos .lead { font-size: clamp(20px, 1.5vw, 26px); }
  /* the buttons stand beside the message, so the window has no empty half */
  .win-form .form-body { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: end; }
  .form-body > fieldset, .form-status { grid-column: 1 / -1; }
  .win-form .msg-text { justify-self: stretch; max-width: none; }
  .win-form .form-foot { flex-direction: column; align-items: stretch; }
}
.win-form { font-size: 16px; }
.form-body { padding: clamp(20px, 2vw, 32px); display: grid; gap: 24px; }
/* the message the chips write: what the chat opens with */
.msg { display: grid; gap: 10px; }
.msg-k { font-size: 15px; font-weight: 600; }
/* a sent message, not a field: light cobalt bubble (cobalt at 9% on white), no border, its last corner squared */
.msg-text { justify-self: start; max-width: 46ch; padding: 14px 18px; background: #EBEFFF; color: var(--navy); border-radius: 18px 18px 4px 18px; font-size: 17px; line-height: 1.45; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid var(--g2); border-radius: var(--r); font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .2s; }
.chips span::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--g3); transition: background-color .2s, border-color .2s; }
.chips span:hover { border-color: var(--g3); }
.chips input:checked + span { border-color: var(--cobalt); }
.chips input:checked + span::before { background: var(--cobalt); border-color: var(--cobalt); }
.chips input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-foot .btn { flex: 0 1 auto; }
.form-status { font-size: 15px; color: var(--g3); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot img { width: 110px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-right: -8px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: var(--white); }
.foot-line { margin-right: auto; color: var(--muted); font-size: 15px; }

/* ---------- cursor frame ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cursor i { position: absolute; left: 0; top: 0; background: var(--cobalt); transform-origin: 0 0; will-change: transform; }
.cursor .h { width: 8px; height: 8px; }
.cursor .lx { width: 1px; height: 2px; }
.cursor .ly { width: 2px; height: 1px; }
.cursor:not(.framed) .l { opacity: 0; }
.cursor .l { transition: opacity .2s; }

/* ---------- large desktops (2560 x 1440 and up): everything grows with the screen, nothing leaves bands ---------- */
@media (min-width: 2000px) {
  :root {
    --mb: 84px; --tb: 64px;
    --copyw: clamp(600px, 30vw, 800px);
    --chw: clamp(470px, 23vw, 620px);
    --demo-h: clamp(520px, calc(100svh - var(--mb) - var(--tb) - 96px), 1120px);
  }
  body { font-size: 21px; }
  .lockup img { height: 44px; }
  .menu a { font-size: 19px; padding: 14px; }
  .clock { font-size: 18px; }
  .btn { min-height: 62px; padding: 0 30px; font-size: 20px; }
  .btn-sm { min-height: 52px; padding: 0 22px; font-size: 18px; }
  .hero-copy h1 { font-size: clamp(72px, min(4.4vw, calc(var(--copyw) / 7.1)), 116px); }
  .lead { font-size: 26px; }
  .hero-desk { --php: 360px; height: clamp(520px, calc(100svh - var(--mb) - var(--tb) - 80px), 1100px); }
  .hero-erp { width: calc(100% - var(--php) - 36px); height: calc(100% - 64px); }
  .hero-phone { height: min(740px, calc(100% - 40px)); }
  .win-pal { width: 300px; }
  .taskbar a { min-height: 48px; font-size: 18px; padding: 0 20px; }
  .tb-start img { width: 26px; height: 26px; }
  .tb-hint { font-size: 18px; }
  .win-bar { height: 46px; font-size: 16px; }
  .ch-intro h2, .proceso h2 { font-size: clamp(76px, 3.8vw, 100px); }
  .ch-k, .ch-k span { font-size: 18px; }
  .ch-copy h3 { font-size: clamp(50px, 2.6vw, 68px); }
  .ch-copy > p:not(.ch-k):not(.ch-hint) { font-size: 25px; }
  .ch-hint { font-size: 19px; }
  .seg button { height: 36px; font-size: 15px; padding: 0 16px; }
  .step-verb { font-size: clamp(40px, 2.2vw, 54px); }
  .steps p { font-size: 25px; }
  .hablemos h2 { font-size: clamp(120px, 5.8vw, 150px); }
  .hablemos .lead { font-size: 30px; }
  .proceso, .hablemos { padding: 120px 0; }
  .win-form { font-size: 19px; }
  legend, .msg-k { font-size: 18px; }
  .msg-text { font-size: 21px; padding: 18px 24px; border-radius: 22px 22px 4px 22px; }
  .offer { font-size: 20px; margin-top: 24px; }
  .form-status { font-size: 18px; }
  .chips span { font-size: 18px; min-height: 52px; }
  .foot img { width: 140px; }
  .foot-nav a { font-size: 18px; }
  .foot-line { font-size: 18px; }
}

/* ---------- narrower desktops: no room for the phone beside the ERP window ---------- */
@media (max-width: 1535px) and (min-width: 900px) {
  .hero-phone { display: none; }
  .hero-erp { width: 100%; }
}
/* below 1680 the hero copy column is too narrow for the Colores window to stand clear of it */
@media (max-width: 1679px) and (min-width: 900px) {
  .win-pal { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 899px) {
  :root { --mb: 60px; --copyw: 100%; --chw: 100%; }
  .lockup { min-height: 44px; }
  .lockup img { height: 30px; }
  .menu, .clock { display: none; }
  .menubar .btn { margin-left: auto; }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 32px; gap: 32px; }
  .hero-copy h1 { font-size: clamp(32px, min(11.4vw, calc((100vw - 2 * var(--pad)) / 7.1)), 56px); }
  .lead { margin-top: 18px; }
  .actions { margin-top: 28px; }
  .actions .btn, .form-foot .btn { flex: 1 1 auto; }
  .hero-desk { height: auto; }
  .hero-erp { position: relative; width: 100%; height: auto; }
  .hero-erp .win-view { min-height: 630px; } /* the ERP summary is 631 to 690 px tall at every phone width: kept from the first paint, so the taskbar never jumps */
  .hero-phone, .win-pal { display: none; }
  .tb-hint, .taskbar .tb-start { display: none; }
  .taskbar { padding-top: 12px; }
  .taskbar-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }

  .ch-intro { padding-top: 72px; padding-bottom: 8px; }
  .ch-in { min-height: 0; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; padding: 56px var(--pad); }
  .ch-copy h3 { margin-top: 16px; font-size: 30px; }
  .ch-copy > p:not(.ch-k):not(.ch-hint) { margin-top: 12px; font-size: 17px; }
  .ch-hint { margin-top: 16px; font-size: 15px; }
  .seg { display: none; }
  .ch-web .win-view { height: clamp(440px, calc(100svh - var(--mb) - 236px), 640px); }
  .chapter.pinned .ch-in { height: calc(100svh - var(--mb)); padding: 20px var(--pad) 16px; gap: 16px; grid-template-rows: auto minmax(0, 1fr); }
  .chapter.pinned .ch-copy h3 { font-size: 26px; margin-top: 12px; }
  .chapter.pinned .ch-copy > p:not(.ch-k), .chapter.pinned .ch-hint { display: none; }
  .chapter.pinned .win-demo { display: flex; flex-direction: column; min-height: 0; align-self: stretch; }
  .chapter.pinned .win-view { flex: 1; height: auto; min-height: 0; }

  .proceso-grid, .hablemos-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
