/* UcoNext — sitio institucional
   Dirección: Editorial Premium (precisión de Resend + calidez de Mercury) */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-var-latin.woff2") format("woff2");
}

:root {
  /* Papel y superficies */
  --ivory-50: #fbfaf6;
  --ivory-100: #f6f3ea;
  --ivory-200: #edeadc;
  --ivory-300: #dfdac8;
  --line: #e2ddcd;
  --line-strong: #cfc9b6;

  /* Tinta */
  --ink-950: #0b1710;
  --ink-900: #0f1d16;
  --ink-700: #2c3a31;
  --ink-500: #56615a;
  --ink-400: #66706a;

  /* Verde */
  --green-950: #0b2619;
  --green-900: #0e3523;
  --green-800: #174b31;
  --green-700: #1f5f40;
  --green-600: #2d7752;
  --green-400: #5e9e78;
  --green-300: #8cc3a0;
  --green-200: #c9e0d1;
  --green-100: #e3eee6;
  --green-50: #eff5f0;

  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 80rem;
  --radius-s: 0.625rem;
  --radius-m: 0.875rem;
  --radius-l: 1.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 1px 2px rgb(15 29 22 / 0.06), 0 12px 32px -12px rgb(15 29 22 / 0.16);
  --shadow-float: 0 2px 6px rgb(15 29 22 / 0.1), 0 28px 56px -18px rgb(15 29 22 / 0.34);
  --inset-hi: inset 0 1px 0 rgb(255 255 255 / 0.7);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scrollbar-color: var(--ivory-300) var(--ivory-100);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--ivory-100);
  color: var(--ink-700);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--green-200); color: var(--ink-950); }
input, textarea, select { caret-color: var(--green-700); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink-900);
  color: var(--ivory-50);
  border-radius: var(--radius-s);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0.75rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* ── Tipografía ─────────────────────────────────────── */

.display, h1 {
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 420;
  color: var(--ink-950);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 430;
  color: var(--ink-950);
  text-wrap: balance;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.016em;
  font-weight: 500;
  color: var(--ink-950);
}

.lede {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 38ch;
  text-wrap: pretty;
}

.prose { max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }

.label {
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Botones y enlaces ──────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.875rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--green-800);
  color: var(--ivory-50);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 1px 2px rgb(11 38 25 / 0.35), 0 6px 16px -6px rgb(23 75 49 / 0.55);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--ivory-50);
  color: var(--ink-900);
  border-color: var(--line-strong);
  box-shadow: var(--inset-hi), 0 1px 2px rgb(15 29 22 / 0.05);
}
.btn-ghost:hover { border-color: var(--ink-500); transform: translateY(-1px); }

.btn-light {
  background: var(--ivory-100);
  color: var(--green-900);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(0 0 0 / 0.2);
}
.btn-light:hover { background: #fff; transform: translateY(-1px); }

.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--green-800);
  text-decoration: none;
  border-bottom: 1px solid var(--green-200);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s var(--ease), gap 0.25s var(--ease);
}
.link-arrow svg { width: 0.95rem; height: 0.95rem; }
.link-arrow:hover { border-color: var(--green-800); gap: 0.65rem; }

/* ── Navegación ─────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--ivory-100);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgb(246 243 234 / 0.88);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-950);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.025em;
}
.brand img { width: 2.25rem; height: auto; }
.brand b { font-weight: 600; }
.brand span { color: var(--green-800); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a:not(.btn) {
  padding: 0.5rem 0.8rem;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--ink-950); background: rgb(15 29 22 / 0.05); }
.nav-links .btn { height: 2.5rem; margin-left: 0.75rem; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--ivory-50);
  color: var(--ink-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--ivory-100);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(15 29 22 / 0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a:not(.btn) { padding: 0.95rem 0.25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .btn { margin: 1rem 0 0; height: 3rem; }
}

/* ── Hero ───────────────────────────────────────────── */

.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { max-width: 15ch; }
.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

/* Escenario: panel verde + capturas reales que emergen de las crestas */
.hero-stage {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: clamp(0.6rem, 1.1vw, 1rem);
}

.field {
  position: relative;
  height: 28em;
  border-radius: var(--radius-l);
  background: var(--green-800);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 30px 60px -30px rgb(11 38 25 / 0.55);
}
.field > svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.field path { stroke: #d5e9dc; stroke-width: 1.15; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

.field-meta {
  position: absolute;
  top: clamp(1.1rem, 2.4vw, 1.75rem);
  left: clamp(1.1rem, 2.4vw, 1.75rem);
  right: clamp(1.1rem, 2.4vw, 1.75rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--green-200);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stage-ui {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 36em;
  height: 28em;
  clip-path: inset(-60em -8em 0 -14em);
  pointer-events: none;
}
.sp { position: absolute; }
.sp-back, .sp-main {
  padding: 0.55em;
  background: var(--ink-900);
  border-radius: 2.3em;
  box-shadow: var(--shadow-float);
}
.sp-back img, .sp-main img { display: block; width: 100%; height: auto; border-radius: 1.85em; background: var(--ivory-50); }
.sp-back { width: 15em; left: 0; bottom: -9em; z-index: 1; }
.sp-main { width: 19.5em; left: 11.5em; bottom: -3.4em; z-index: 2; }
.sp-call, .sp-bill {
  z-index: 3;
  height: auto;
  border-radius: 1.1em;
  box-shadow: var(--shadow-float);
}
.sp-call { width: 15em; left: -10em; bottom: 4em; }
.sp-bill { width: 13em; right: -1em; bottom: 5em; }

.stage-note {
  position: absolute;
  left: clamp(1.1rem, 2.4vw, 1.75rem);
  bottom: clamp(0.9rem, 2vw, 1.4rem);
  z-index: 4;
  font-size: 0.75rem;
  color: var(--green-200);
}

@media (max-width: 62rem) {
  .hero-stage { font-size: clamp(0.6rem, 1.7vw, 1rem); }
  .sp-main { bottom: -11.5em; }
  .sp-back { bottom: -14em; }
  .sp-call { bottom: 2em; }
  .sp-bill { bottom: 2.5em; }
  .stage-note { top: calc(100% + 0.7rem); bottom: auto; left: 0; color: var(--ink-500); }
}
@media (max-width: 40rem) {
  .hero-stage { font-size: 1rem; }
  .field { height: 24rem; }
  .stage-ui { font-size: 0.56rem; right: auto; left: 50%; margin-left: -18em; height: 40em; }
  .sp-main { bottom: -3.4em; }
  .sp-back { bottom: -9em; }
  .sp-call { left: -1em; bottom: 17em; width: 14em; }
  .sp-bill { display: none; }
  .stage-note { top: calc(100% + 0.7rem); bottom: auto; left: 0; color: var(--ink-500); }
}

/* Animación de carga: las crestas se dibujan una sola vez */
.js .field path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.9s var(--ease) forwards;
  animation-delay: calc(var(--k) * 55ms + 150ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.js .sp {
  opacity: 0;
  transform: translateY(3em);
  animation: sp-in 1.1s var(--ease) forwards;
  animation-delay: calc(1.1s + var(--n, 0) * 0.16s);
}
.sp-back { --n: 0; }
.sp-main { --n: 1; }
.sp-call { --n: 2; }
.sp-bill { --n: 3; }
@keyframes sp-in { to { opacity: 1; transform: none; } }
@keyframes float { to { translate: 0 -0.7em; } }
.js .sp-call { animation: sp-in 1.1s var(--ease) 2.4s forwards, float 6.5s ease-in-out 3.5s infinite alternate; }
.js .sp-bill { animation: sp-in 1.1s var(--ease) 2.6s forwards, float 7.5s ease-in-out 3.7s infinite alternate-reverse; }

.js .rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 60ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Secciones ──────────────────────────────────────── */

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

/* Declaración */
.statement p.big {
  font-size: clamp(1.9rem, 1rem + 3.6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.034em;
  font-weight: 360;
  color: var(--ink-400);
  max-width: 30ch;
  text-wrap: balance;
}
.statement p.big em { font-style: normal; font-weight: 480; color: var(--ink-950); }

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}
.duo > div { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.duo h3 { margin-bottom: 0.6rem; }
.duo p { color: var(--ink-500); max-width: 44ch; margin-bottom: 1.1rem; text-wrap: pretty; }
@media (max-width: 44rem) {
  .duo { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

/* Servicios: banda verde de lado a lado */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-900);
  color: var(--green-100);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/logo-mark-light.svg") no-repeat right -8% top -6% / min(56rem, 85%);
  opacity: 0.04;
}
.band-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.band h2 { color: var(--ivory-50); font-size: clamp(2.25rem, 1.2rem + 4vw, 4.25rem); max-width: 14ch; }
.band-aside p { color: var(--green-200); max-width: 40ch; margin-bottom: 1.5rem; text-wrap: pretty; }

.svc-list { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.svc:nth-child(even) .viz { order: -1; }
.svc-text { display: grid; gap: 0.85rem; justify-items: start; }
.svc h3 { color: var(--ivory-50); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); letter-spacing: -0.026em; }
.svc .problem { color: var(--green-300); font-weight: 500; max-width: 44ch; text-wrap: pretty; }
.svc .desc { color: #b9d3c2; max-width: 52ch; text-wrap: pretty; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ivory-50);
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--ink-700);
}
.svc .tag { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.2); color: var(--green-100); }
.svc .link-arrow { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--ivory-50); border-bottom-color: rgb(255 255 255 / 0.3); }
.svc .link-arrow:hover { border-bottom-color: var(--ivory-50); }

@media (max-width: 62rem) {
  .band-head, .svc { grid-template-columns: minmax(0, 1fr); }
  .svc:nth-child(even) .viz { order: 0; }
}

/* Ilustraciones de servicios (HTML + CSS; todo escala con el ancho de la tarjeta) */
.viz {
  position: relative;
  margin: 0;
  container-type: inline-size;
  aspect-ratio: 16 / 11;
  background: var(--ivory-50);
  border-radius: 1.1rem;
  box-shadow: var(--inset-hi), 0 30px 60px -28px rgb(0 0 0 / 0.55);
  overflow: hidden;
  color: var(--ink-700);
}
.viz > * { font-size: calc(100cqw / 34); }
.viz i, .viz s, .viz u, .viz em, .viz b { display: block; font-style: normal; text-decoration: none; }
.viz-cap {
  position: absolute;
  right: 0.9em;
  bottom: 0.8em;
  z-index: 3;
  padding: 0.25em 0.7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory-100);
  color: var(--ink-500);
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.viz em[class^="p-"] { font-size: 0.72em; font-weight: 500; padding: 0.25em 0.75em; border: 1px solid; border-radius: 999px; line-height: 1.3; }
.p-new { background: var(--ivory-200); color: var(--ink-700); border-color: var(--line-strong); }
.p-run { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }
.p-done { background: var(--green-800); color: var(--ivory-50); border-color: var(--green-800); }

/* 1 · sitio web */
.v-browser { position: absolute; inset: 1.1em 6em 2.3em 1.1em; background: #fff; border: 1px solid var(--line-strong); border-radius: 0.8em; overflow: hidden; box-shadow: var(--shadow-card); }
.v-bar { display: flex; align-items: center; gap: 0.35em; height: 1.9em; padding-inline: 0.7em; background: var(--ivory-100); border-bottom: 1px solid var(--line); }
.v-bar i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ivory-300); }
.v-bar span { margin-left: 0.6em; flex: 1; max-width: 11em; height: 1.2em; line-height: 1.2em; padding-inline: 0.7em; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 0.68em; color: var(--ink-500); }
.v-page { padding: 0.9em 1em; display: grid; gap: 0.9em; }
.v-nav { display: flex; align-items: center; gap: 0.6em; }
.v-nav b { width: 1.8em; height: 0.9em; margin-right: auto; border-radius: 0.25em; background: var(--green-800); }
.v-nav span { width: 2em; height: 0.35em; border-radius: 9px; background: var(--ivory-300); }
.v-nav em { width: 2.8em; height: 1.1em; border-radius: 0.35em; background: var(--green-800); }
.v-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1em; align-items: center; }
.v-lines { display: grid; gap: 0.5em; justify-items: start; }
.v-lines h4 { margin: 0; width: 100%; height: 0.9em; border-radius: 9px; background: var(--ink-900); }
.v-lines h4.s { width: 68%; }
.v-lines p { margin: 0; width: 92%; height: 0.4em; border-radius: 9px; background: var(--ivory-300); }
.v-lines p.s { width: 60%; }
.v-lines u { width: 4.2em; height: 1.4em; margin-top: 0.4em; border-radius: 0.4em; background: var(--green-800); }
.v-img { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 0.7em; background: var(--green-100); color: var(--green-700); }
.v-img svg { width: 55%; height: auto; }
.v-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
.v-row s { height: 2.6em; border-radius: 0.5em; background: var(--ivory-100); border: 1px solid var(--line); }
.v-phone {
  position: absolute;
  right: 1.1em;
  bottom: 2.3em;
  z-index: 2;
  width: 5.2em;
  height: 10.2em;
  padding: 0.7em 0.55em;
  display: grid;
  gap: 0.4em;
  align-content: start;
  background: #fff;
  border: 0.35em solid var(--ink-900);
  border-radius: 1.1em;
  box-shadow: var(--shadow-float);
}
.v-phone b { width: 70%; height: 0.55em; border-radius: 9px; background: var(--ink-900); }
.v-phone span { height: 0.3em; border-radius: 9px; background: var(--ivory-300); }
.v-phone em { width: 60%; height: 0.9em; border-radius: 0.3em; background: var(--green-800); }
.v-phone .v-img { aspect-ratio: 4 / 3; border-radius: 0.4em; }

/* 2 · software a medida */
.v-app { position: absolute; inset: 1.1em 1.1em 2.3em; display: grid; grid-template-columns: 3.4em 1fr; background: #fff; border: 1px solid var(--line-strong); border-radius: 0.8em; overflow: hidden; box-shadow: var(--shadow-card); }
.v-app aside { display: grid; align-content: start; justify-items: center; gap: 0.9em; padding: 1.1em 0; background: var(--green-900); }
.v-app aside b { width: 1.6em; height: 1.6em; border-radius: 0.5em; background: var(--green-300); }
.v-app aside i { width: 1.2em; height: 1.2em; border-radius: 0.35em; background: rgb(255 255 255 / 0.18); }
.v-app aside i.on { background: var(--ivory-50); }
.v-main { display: grid; align-content: start; gap: 0.9em; padding: 1.1em 1.3em; }
.v-top { display: flex; align-items: center; justify-content: space-between; }
.v-top strong { font-size: 1.15em; font-weight: 600; letter-spacing: -0.012em; color: var(--ink-950); }
.v-btn { padding: 0.4em 0.8em; border-radius: 0.5em; background: var(--green-800); color: var(--ivory-50); font-size: 0.72em; font-weight: 500; }
.v-table { display: grid; margin: 0; padding: 0; list-style: none; }
.v-table li { display: grid; grid-template-columns: 1.8em 1fr auto; gap: 0.9em; align-items: center; padding: 0.7em 0; border-top: 1px solid var(--line); }
.v-table li s { width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--green-100); }
.v-table li span { height: 0.45em; width: 70%; border-radius: 9px; background: var(--ivory-300); }
.v-table li:nth-child(2) span { width: 52%; }
.v-table li:nth-child(3) span { width: 62%; }
.v-table li:nth-child(4) span { width: 44%; }

/* 3 · antes / después */
.v-ba { position: absolute; inset: 1.1em 1.1em 2.3em; display: grid; grid-template-columns: 1fr 2em 1fr; gap: 0.3em; align-items: stretch; }
.v-before, .v-after { position: relative; padding: 2.6em 1em 1em; border-radius: 0.8em; }
.v-before { background: var(--ivory-200); border: 1px dashed var(--line-strong); }
.v-after { display: grid; align-content: center; gap: 0.7em; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.v-tag { position: absolute; left: 1em; top: 0.9em; font-size: 0.72em; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.v-tag.on { color: var(--green-800); }
.v-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line-strong); border-radius: 0.4em; overflow: hidden; background: var(--line-strong); }
.v-sheet i { height: 2.5em; background: #fff; }
.v-sheet i:nth-child(3n) { background: var(--ivory-100); }
.v-sheet i:nth-child(5), .v-sheet i:nth-child(10) { background: var(--ivory-300); }
.v-bubble { position: absolute; right: 1em; bottom: 1.6em; width: 5.5em; height: 2.1em; border-radius: 1em 1em 1em 0.2em; background: var(--green-200); transform: rotate(-3deg); }
.v-note { position: absolute; left: 1em; bottom: 1.2em; width: 3.4em; height: 3.4em; border: 1px solid var(--line-strong); border-radius: 0.3em; background: var(--ivory-50); box-shadow: 0 0.2em 0.5em rgb(15 29 22 / 0.12); transform: rotate(6deg); }
.v-arrow { align-self: center; width: 2em; height: auto; color: var(--green-700); }
.v-card { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7em; align-items: center; padding: 0.7em 0.8em; border: 1px solid var(--line); border-radius: 0.6em; background: var(--ivory-50); }
.v-card svg { width: 1.2em; height: 1.2em; color: var(--green-700); }
.v-card span { display: block; height: 0.45em; border-radius: 9px; background: var(--ivory-300); }

/* 4 · flujo automático */
.v-flow { position: absolute; inset: 1.4em 1.1em 7.4em; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; margin: 0; padding: 0; list-style: none; }
.v-flow li { position: relative; display: grid; justify-items: center; gap: 0.9em; text-align: center; }
.v-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.1em;
  left: calc(50% + 2.8em);
  width: calc(100% - 5.6em);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--green-300) 0 0.5em, transparent 0.5em 1em);
}
.v-flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(2.1em - 0.2em);
  left: calc(50% + 2.8em);
  z-index: 1;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--green-700);
  animation: pulse-along 2.6s var(--ease) infinite;
}
.v-flow li:nth-child(2)::before { animation-delay: 1.3s; }
@keyframes pulse-along { 0% { left: calc(50% + 2.8em); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(150% - 3.3em); opacity: 0; } }
.v-node { display: grid; place-items: center; width: 4.2em; height: 4.2em; border-radius: 50%; background: var(--green-800); color: var(--ivory-50); box-shadow: 0 0 0 0.5em var(--green-100); }
.v-node svg { width: 1.9em; height: 1.9em; }
.v-flow b { font-size: 0.95em; font-weight: 500; line-height: 1.3; color: var(--ink-900); }
.v-log { position: absolute; left: 1.1em; right: 1.1em; bottom: 2.6em; display: grid; gap: 0.45em; }
.v-log span { height: 1.1em; border-radius: 0.4em; background: var(--ivory-100); border: 1px solid var(--line); }
.v-log span:nth-child(1) { width: 100%; background: var(--green-50); border-color: var(--green-100); }
.v-log span:nth-child(2) { width: 82%; }
.v-log span:nth-child(3) { width: 64%; }

/* Producto */
.product-shell {
  position: relative;
  background: var(--ivory-200);
  border-radius: calc(var(--radius-l) + 0.5rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.product-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 1px 1px, rgb(15 29 22 / 0.11) 1px, transparent 1.4px) 0 0 / 22px 22px;
  mask-image: linear-gradient(115deg, transparent 38%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 38%, #000 100%);
}
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 1.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid var(--green-200);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--green-600); }
.product-copy h2 { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); max-width: 20ch; }
.product-copy .prose { margin-top: 1.5rem; color: var(--ink-500); }
.checks { margin-top: 1.75rem; display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-700); font-weight: 450; }
.checks svg { width: 1rem; height: 1rem; color: var(--green-700); flex: none; transform: translateY(2px); }
.product-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.product-note { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; font-size: 0.875rem; color: var(--ink-500); }

.phones { display: flex; justify-content: center; align-items: flex-start; padding-block: 1rem 0.5rem; }
.phone {
  width: clamp(6.75rem, 21vw, 15rem);
  flex: none;
  padding: 0.4rem;
  background: var(--ink-900);
  border-radius: 1.9rem;
  box-shadow: var(--shadow-float);
}
.phone img { width: 100%; height: auto; aspect-ratio: 560 / 1212; border-radius: 1.5rem; background: var(--ivory-50); object-fit: cover; object-position: top; }
.phone:nth-child(1) { margin-right: -2.5rem; margin-top: 3.5rem; }
.phone:nth-child(2) { position: relative; z-index: 2; margin-top: 0; }
.phone:nth-child(3) { margin-left: -2.5rem; margin-top: 5.5rem; }
.phones.reveal-pending .phone { opacity: 0; transform: translateY(28px); }
.phones.reveal-pending.is-in .phone { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.phones.reveal-pending.is-in .phone:nth-child(1) { transition-delay: 0.12s; }
.phones.reveal-pending.is-in .phone:nth-child(3) { transition-delay: 0.24s; }

.product-caption {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-500);
}

@media (max-width: 62rem) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { width: clamp(6.75rem, 25vw, 14rem); }
  .phone:nth-child(1), .phone:nth-child(3) { margin-inline: 0; }
  .phones { gap: 0.6rem; }
  .phone:nth-child(1), .phone:nth-child(3) { margin-top: 2rem; }
}
@media (max-width: 34rem) {
  .phone:nth-child(1) { margin-right: -1.5rem; margin-top: 2rem; }
  .phone:nth-child(3) { margin-left: -1.5rem; margin-top: 3rem; }
  .phones { gap: 0; }
}

.panel-row {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.panel-row h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); letter-spacing: -0.024em; }
.panel-row p { margin-top: 0.8rem; color: var(--ink-500); max-width: 36ch; text-wrap: pretty; }
.browser {
  border-radius: var(--radius-m);
  background: var(--ivory-50);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 0.4rem; height: 2.25rem; padding-inline: 0.9rem; border-bottom: 1px solid var(--line); background: var(--ivory-100); }
.browser-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ivory-300); }
.browser img { width: 100%; height: auto; aspect-ratio: 1500 / 742; }
@media (max-width: 62rem) { .panel-row { grid-template-columns: minmax(0, 1fr); } }

/* Nosotros */
.about-photo {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 3 / 1;
  background: var(--ivory-200);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(0.82) sepia(0.06) contrast(0.98); }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(23 75 49 / 0.1), rgb(23 75 49 / 0) 60%); mix-blend-mode: multiply; pointer-events: none; }
.about-photo figcaption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgb(15 29 22 / 0.62);
  color: #f2efe4;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}
.about-photo figcaption a { color: inherit; }
@media (max-width: 40rem) { .about-photo { aspect-ratio: 4 / 3; } }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 7rem);
  margin-top: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}
.about-mark { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); color: var(--ink-500); font-size: 0.9375rem; max-width: 52ch; }
.about-mark img { width: 3.75rem; flex: none; }
@media (max-width: 56rem) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

.vision {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 4.5vw, 4rem);
}
.vision h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); max-width: 22ch; }
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.values > div { border-top: 1px solid var(--green-200); padding-top: 1.1rem; }
.values h3 { font-size: 1.125rem; margin-bottom: 0.45rem; }
.values p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-500); text-wrap: pretty; }
@media (max-width: 62rem) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .values { grid-template-columns: minmax(0, 1fr); } }

/* Contacto */
.contact {
  position: relative;
  background: var(--green-800);
  color: var(--green-100);
  border-radius: calc(var(--radius-l) + 0.5rem);
  padding: clamp(1.75rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/logo-mark-light.svg") no-repeat left -7% bottom -26% / min(40rem, 90%);
  opacity: 0.09;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact h2 { color: var(--ivory-50); }
.contact .lede { color: var(--green-200); margin-top: 1.5rem; max-width: 34ch; }
.channels { margin-top: 2.25rem; display: grid; gap: 0; max-width: 26rem; }
.channels a, .channels div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: var(--ivory-50);
  text-decoration: none;
  font-weight: 450;
}
.channels > :last-child { border-bottom: 1px solid rgb(255 255 255 / 0.16); }
.channels span { color: var(--green-300); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.channels a:hover { color: #fff; }
.channels a:hover span { color: var(--green-200); }
.channels [hidden] { display: none; }

.form {
  background: var(--ivory-50);
  color: var(--ink-700);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--inset-hi), 0 30px 60px -28px rgb(0 0 0 / 0.5);
  display: grid;
  gap: 1.1rem;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.fld { display: grid; gap: 0.4rem; }
.fld label { font-size: 0.875rem; font-weight: 500; color: var(--ink-900); }
.fld input, .fld select, .fld textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-950);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.85rem;
  min-height: 2.875rem;
  box-shadow: inset 0 1px 2px rgb(15 29 22 / 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fld textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.fld select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2356615a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-400); }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--ink-400); }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgb(45 119 82 / 0.22);
}
.fld.has-error input, .fld.has-error textarea { border-color: #b3382c; }
.fld .err { font-size: 0.8125rem; color: #a1291d; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; height: 3.125rem; }
.form-status { font-size: 0.9375rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green-800); }
.form-status.bad { color: #a1291d; }
.form-fine { font-size: 0.8125rem; color: var(--ink-500); }
.form.is-off input, .form.is-off select, .form.is-off textarea { opacity: 0.55; cursor: not-allowed; }
.form-status.info { color: var(--ink-700); padding: 0.9rem 1rem; border-radius: var(--radius-s); background: var(--green-50); border: 1px solid var(--green-100); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 34rem) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* Pie */
.footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-strong);
}
.footer p.tag-line { margin-top: 1rem; color: var(--ink-500); max-width: 30ch; font-size: 0.9375rem; text-wrap: pretty; }
.footer h4 { margin: 0 0 1rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.footer ul { display: grid; gap: 0.6rem; }
.footer li a { text-decoration: none; font-size: 0.9375rem; color: var(--ink-700); }
.footer li a:hover { color: var(--green-800); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.5rem; font-size: 0.8125rem; color: var(--ink-500); }
.footer-base a { color: inherit; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Documento (política de privacidad) */
.doc { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.doc h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); max-width: 18ch; }
.doc-back { margin-bottom: 2rem; font-size: 0.9375rem; }
.doc-meta { margin-top: 1rem; color: var(--ink-500); font-size: 0.9375rem; }
.doc-body { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 44rem; }
.doc-body h2 { margin: 2.5rem 0 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.25; font-weight: 500; }
.doc-body p, .doc-body li { max-width: 68ch; text-wrap: pretty; }
.doc-body p + p, .doc-body ul + p { margin-top: 1em; }
.doc-body ul { display: grid; gap: 0.75em; margin: 1em 0; padding-left: 1.25em; list-style: disc; }
.doc-body li::marker { color: var(--green-600); }
.doc-body a { color: var(--green-800); text-decoration-color: var(--green-300); }
.doc-legal { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--ivory-50); font-size: 0.9375rem; color: var(--ink-500); }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .js .field path { stroke-dashoffset: 0; }
  .js .rise, .js .sp, .phones.reveal-pending .phone { opacity: 1; transform: none; }
  .sp-call, .sp-bill, .v-flow li::before { animation: none !important; }
  .v-flow li::before { display: none; }
}
