/* Wapuno. Negro, blanco y un verde. La inclinacion del "1" del logo manda en botones y cortes. */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #131313;
  --bg-3: #1b1b1b;
  --line: #2a2a2a;
  --fg: #f4f4f1;
  --muted: #a6a6a1;
  --accent: #25d366;
  --accent-ink: #03170b;
  --danger: #ff8a7a;

  --slant: -18deg;
  --nav-h: 68px;
  --r: 6px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* capas: 1 contenido, 10 nav, 20 skip */
  --z-nav: 10;
  --z-skip: 20;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: #3a3a3a var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.top-sentinel { position: absolute; top: 0; height: 24px; width: 1px; }

/* ---------- tipografia ---------- */

.display {
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.display .line {
  display: block;
  overflow: clip;
  /* lugar para descendentes de la italica */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  padding-right: 0.12em;
}
.display .line > span { display: inline-block; }

.link {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--accent); }
}

/* ---------- boton: paralelogramo con la inclinacion del logo ---------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0 1.9rem;
  border: 0;
  background: none;
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.0625rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r);
  transform: skewX(var(--slant));
}
.btn::before { background: var(--fg); }
.btn::after {
  background: var(--accent);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 280ms var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 280ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline-offset: 6px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { clip-path: inset(0 0 0 0); }
  .btn:hover svg { transform: translateX(4px); }
}

.btn--sm { min-height: 42px; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn--ink { color: var(--fg); }
.btn--ink::before { background: var(--bg); }
.btn--ink::after { background: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { color: var(--bg); }
}
.btn--ink { transition: transform 160ms var(--ease-out), color 200ms ease; }

.btn[disabled] { cursor: progress; }
.btn[disabled]::before { background: #8d8d89; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease;
}
.nav.is-scrolled {
  background: rgb(10 10 10 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__logo { margin-right: auto; display: block; padding: 6px 0; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--fg); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--nav-h) + 1.5rem) 3.5rem;
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 372px);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.6rem, 5.3vw, 5.125rem);
  line-height: 0.98;
}
.hero__title em { font-style: inherit; color: var(--accent); }
.hero__sub {
  margin-top: 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero__cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-left: 0.6rem; /* compensa el sesgo del boton */
}

.hero__demo {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 372px);
}
.hero__slash {
  position: absolute;
  z-index: -1;
  top: -60vh;
  bottom: -60vh;
  left: 56%;
  width: 54%;
  background: var(--accent);
  transform: translateX(-50%) skewX(var(--slant));
}
.hero__note {
  width: fit-content;
  margin: 0.6rem auto 0;
  padding: 0.3rem 0.7rem;
  background: var(--bg);
  border-radius: var(--r);
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--muted);
}

/* ---------- chat (WhatsApp modo oscuro) ---------- */

.chat {
  --wa-bg: #0b141a;
  --wa-head: #1f2c34;
  --wa-in: #1f2c34;
  --wa-out: #005c4b;
  --wa-fg: #e9edef;
  --wa-meta: #9aa7ae;

  display: grid;
  grid-template-rows: auto 1fr auto;
  height: clamp(440px, 62dvh, 540px);
  background: var(--wa-bg);
  color: var(--wa-fg);
  border: 1px solid #2b3940;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 10px 20px -10px rgb(0 0 0 / 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9063rem;
  line-height: 1.35;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 8px;
  background: var(--wa-head);
}
.chat__back { width: 20px; height: 20px; color: var(--wa-meta); flex: none; }
.chat__avatar {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b4532a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 240ms ease;
}
.chat__who { display: grid; min-width: 0; }
.chat__who strong { font-size: 0.9688rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__who span { font-size: 0.75rem; color: var(--wa-meta); }
.chat__who span.is-typing { color: var(--accent); }

.chat__body {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 12px 10px;
}
.chat__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  will-change: transform;
}
.msg {
  position: relative;
  max-width: 82%;
  padding: 6px 9px 7px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.msg--in { align-self: flex-start; background: var(--wa-in); transform-origin: 0 100%; }
.msg--out { align-self: flex-end; background: var(--wa-out); transform-origin: 100% 100%; }
.msg--in + .msg--out, .msg--out + .msg--in { margin-top: 8px; }
/* cola solo en el primer mensaje de cada grupo */
.msg--in:not(.msg--in + .msg--in) { border-top-left-radius: 0; }
.msg--out:not(.msg--out + .msg--out) { border-top-right-radius: 0; }
.msg--in:not(.msg--in + .msg--in)::before,
.msg--out:not(.msg--out + .msg--out)::before {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 10px;
}
.msg--in:not(.msg--in + .msg--in)::before {
  left: -7px;
  background: var(--wa-in);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.msg--out:not(.msg--out + .msg--out)::before {
  right: -7px;
  background: var(--wa-out);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.msg.is-new { opacity: 0; transform: translateY(6px) scale(0.96); }
.msg__meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 6px 0 -3px 10px;
  font-size: 0.6875rem;
  color: rgb(233 237 239 / 0.62);
  font-variant-numeric: tabular-nums;
}
.msg__meta svg { width: 15px; height: 15px; transition: color 200ms ease; }
.msg.is-read .msg__meta svg { color: #53bdeb; }

.chat__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
}
.chat__input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--wa-head);
  white-space: nowrap;
  overflow: hidden;
}
.chat__typed { white-space: pre; }
.chat__typed:not(:empty)::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--accent);
}
.chat__ph { color: var(--wa-meta); }
.chat__typed:not(:empty) + .chat__ph { display: none; }
.chat__send {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #00a884;
  color: #0b141a;
  transition: transform 140ms var(--ease-out);
}
.chat__send svg { width: 19px; height: 19px; }
.chat__send.is-press { transform: scale(0.88); }

/* ---------- tabs de ejemplos ---------- */

.tabs {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tabs__ink {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  background: var(--fg);
  border-radius: var(--r);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 320ms var(--ease-out);
}
.tab {
  min-height: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--r);
  transition: color 200ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.tab[aria-pressed="true"] { color: var(--bg); }
.tab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .tab[aria-pressed="false"]:hover { color: var(--fg); }
}

/* ---------- secciones ---------- */

.section { padding-block: clamp(5rem, 11vw, 9.5rem); }

/* marcas de ejemplo */
.brands {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.brands + .section { padding-top: clamp(3.5rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.brands__title {
  font-size: 1.125rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.brands__grid {
  --k: 1;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  justify-items: center;
}
.brands__grid li { display: grid; place-items: center; min-height: 58px; width: 100%; }
.brands__grid img {
  width: min(100%, calc(var(--w) * var(--k) * 1px));
  height: auto;
  transition: opacity 240ms ease;
}
.brands__note { margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.8125rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .brands__grid:hover img { opacity: 0.45; }
  .brands__grid li:hover img { opacity: 1; }
}

/* que hace */
.caps__title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  max-width: 18ch;
}
.caps__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.caps__list { margin-top: clamp(2.5rem, 6vw, 5rem); }
.cap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem 3rem;
  padding-block: clamp(1.4rem, 2.6vw, 2.2rem);
}
.cap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  transition: transform 900ms var(--ease-out);
}
.cap h3 {
  font-stretch: 118%;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.3vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: transform 320ms var(--ease-out), color 200ms ease;
}
.cap p {
  color: var(--muted);
  max-width: 34rem;
  text-wrap: pretty;
}
@media (hover: hover) and (pointer: fine) {
  .cap:hover h3 { transform: translateX(14px) skewX(-8deg); color: var(--accent); }
}

/* precio: banda verde con cortes inclinados */
.band {
  --cut: clamp(28px, 5vw, 76px);
  position: relative;
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: calc(var(--cut) + clamp(3.5rem, 8vw, 7rem));
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.band ::selection { background: var(--accent-ink); color: var(--accent); }
.band :focus-visible { outline-color: var(--accent-ink); }
.band__in {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
.band__title { font-size: clamp(3rem, 6.4vw, 5.625rem); line-height: 0.92; letter-spacing: -0.04em; }
.band__side { display: grid; gap: 1.75rem; justify-items: start; padding-bottom: 0.5rem; }
.band__side p {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 26rem;
  text-wrap: pretty;
}
.band__side .btn { margin-left: 0.6rem; }

/* como trabajamos: escalera que sube como el "1" */
.how__title { font-size: clamp(2rem, 4.6vw, 4rem); max-width: 18ch; }
.steps {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.step:nth-child(1) { margin-top: 9rem; }
.step:nth-child(2) { margin-top: 4.5rem; }
.step__n {
  display: block;
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.step h3 {
  margin-top: 1.25rem;
  font-stretch: 118%;
  font-weight: 700;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.step p { margin-top: 0.6rem; color: var(--muted); max-width: 22rem; text-wrap: pretty; }

/* contacto */
.contact { padding-top: 0; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact__title { font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
.contact__copy p { margin-top: 1.5rem; color: var(--muted); max-width: 28rem; text-wrap: pretty; }
.contact__copy { position: sticky; top: calc(var(--nav-h) + 2rem); }

.contact__panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.form { display: grid; gap: 1.25rem; }
.hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.opt { margin-left: 0.4rem; font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--bg);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: #8b8b86; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 211 102 / 0.25);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__err, .form__fail { color: var(--danger); font-size: 0.875rem; }
.form .btn { margin-top: 0.5rem; }
.form .btn--block { width: calc(100% - 1.2rem); justify-self: center; }

.form__ok { display: grid; gap: 0.75rem; justify-items: start; padding-block: 1.5rem; outline: none; }
.form__ok[hidden], .form[hidden] { display: none; }
.form__ok svg {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.form__ok h3 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.5rem; }
.form__ok p { color: var(--muted); }
.form__ok.is-in svg { animation: pop 420ms var(--ease-out) both; }
.form__ok.is-in h3, .form__ok.is-in p { animation: rise 520ms var(--ease-out) both; }
.form__ok.is-in h3 { animation-delay: 80ms; }
.form__ok.is-in p { animation-delay: 140ms; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 3rem 3.5rem; }
.foot__in { display: grid; gap: 1rem; justify-items: start; }
.foot img { height: 38px; width: auto; }
.foot__tag { color: var(--muted); }
.foot__legal { margin-top: 1.25rem; font-size: 0.8125rem; color: #8b8b86; max-width: 46rem; }

/* ---------- movimiento ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: none; }
}
@keyframes line-up {
  from { transform: translateY(108%) skewY(4deg); }
  to { transform: none; }
}
@keyframes slash-in {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes demo-in {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* entrada del hero: una sola vez, al cargar */
  .js .hero__title .line > span { animation: line-up 900ms var(--ease-out) both; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: 90ms; }
  .js .hero__sub { animation: rise 700ms var(--ease-out) 320ms both; }
  .js .hero__cta { animation: rise 700ms var(--ease-out) 420ms both; }
  .js .hero__slash { animation: slash-in 1100ms var(--ease-in-out) 100ms both; }
  .js .chat { animation: demo-in 800ms var(--ease-out) 450ms both; }
  .js .tabs, .js .hero__note { animation: rise 600ms var(--ease-out) 800ms both; }

  /* que hace: la linea se dibuja, el texto sube */
  .js .caps__list:not(.is-in) .cap::before { transform: scaleX(0); }
  .js .cap > * { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), color 200ms ease; }
  .js .caps__list:not(.is-in) .cap > * { opacity: 0; transform: translateY(18px); }
  .cap:nth-child(2)::before, .cap:nth-child(2) > * { transition-delay: 70ms; }
  .cap:nth-child(3)::before, .cap:nth-child(3) > * { transition-delay: 140ms; }
  .cap:nth-child(4)::before, .cap:nth-child(4) > * { transition-delay: 210ms; }
  .cap:nth-child(5)::before, .cap:nth-child(5) > * { transition-delay: 280ms; }
  .caps__list.is-done .cap > *, .caps__list.is-done .cap::before { transition-delay: 0ms; }
  .caps__list.is-done .cap h3 { transition: transform 320ms var(--ease-out), color 200ms ease; }

  /* banda: el titular entra por linea */
  .js .band:not(.is-in) .line > span { transform: translateY(108%); }
  .band .line > span { transition: transform 900ms var(--ease-out); }
  .band .line:nth-child(2) > span { transition-delay: 90ms; }
  .js .band:not(.is-in) .band__side { opacity: 0; transform: translateY(16px); }
  .band__side { transition: opacity 700ms var(--ease-out) 260ms, transform 700ms var(--ease-out) 260ms; }

  /* pasos: suben en escalera */
  .js .steps:not(.is-in) .step { opacity: 0; transform: translateY(36px); }
  .step { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .step:nth-child(2) { transition-delay: 120ms; }
  .step:nth-child(3) { transition-delay: 240ms; }

  /* marcas: aparecen de a una */
  .js .brands__grid:not(.is-in) li { opacity: 0; }
  .brands__grid li { transition: opacity 700ms var(--ease-out); transition-delay: calc(var(--n, 0) * 55ms); }
  .brands__grid li:nth-child(2) { --n: 1; } .brands__grid li:nth-child(3) { --n: 2; }
  .brands__grid li:nth-child(4) { --n: 3; } .brands__grid li:nth-child(5) { --n: 4; }
  .brands__grid li:nth-child(6) { --n: 5; } .brands__grid li:nth-child(7) { --n: 6; }
  .brands__grid li:nth-child(8) { --n: 7; } .brands__grid li:nth-child(9) { --n: 8; }
  .brands__grid li:nth-child(10) { --n: 9; }

  .js .contact__panel:not(.is-in) { opacity: 0; transform: translateY(24px); }
  .contact__panel { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::after, .tabs__ink, .msg, .cap h3 { transition-duration: 1ms; }
}

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 4rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .hero__title { font-size: clamp(2.5rem, 11.2vw, 4.5rem); }
  .hero__demo { width: min(100%, 400px); }
  .hero__slash { top: -2.5rem; bottom: -4rem; left: 50%; width: 64%; }
  .chat { height: 470px; }

  .cap { grid-template-columns: minmax(0, 1fr); }

  .band__in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .band__title { font-size: clamp(2.4rem, 11.2vw, 5rem); }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .step:nth-child(1), .step:nth-child(2) { margin-top: 0; }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
  .step__n { grid-row: span 2; font-size: 4.5rem; min-width: 3.4rem; }
  .step h3 { margin-top: 0.35rem; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__copy { position: static; }
}

@media (max-width: 1000px) {
  .brands__grid { --k: 0.82; }
}
@media (max-width: 680px) {
  .brands__grid { --k: 0.9; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .nav__logo img { height: 26px; }
  .hero__cta { gap: 1rem 1.5rem; }
}
