/* ==========================================================================
   stavi — Studio web
   Tokens · base · layout · secciones · animación
   ========================================================================== */

:root {
  --paper: #F6F3EC;
  --paper-2: #EEEAE0;
  --surface: #FFFFFF;
  --ink: #15151C;
  --ink-2: #3B3A45;
  --muted: #67646F;
  --line: #E0DBCF;
  --cobalt: #4F6300;
  --cobalt-ink: #3D4D00;
  --cobalt-soft: #EEFCB8;
  --night: #111230;
  --night-2: #1B1D47;
  --night-line: #2D2F63;
  --alert: #C2410C;
  --alert-soft: #FDEBDD;
  --wa: #25D366;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --header-h: 68px;

  --shadow-1: 0 1px 2px rgba(21, 21, 28, .06), 0 4px 16px rgba(21, 21, 28, .06);
  --shadow-2: 0 2px 6px rgba(21, 21, 28, .06), 0 24px 60px -12px rgba(21, 21, 28, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p { margin: 0; text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--pill);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(80px, 11vw, 144px); }

/* El punto del logo como marcador de sección */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
  flex: none;
}

.section-head { max-width: 720px; }
.section-head h2 { font-size: var(--step-3); margin-top: 16px; }
.section-head p {
  margin-top: 18px;
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 60ch;
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- Botones ---------- */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 20px -6px rgba(140, 175, 0, .6);
}
.btn--primary:hover { background: var(--cobalt-ink); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink-2); }

.btn--small { --h: 42px; padding: 0 18px; font-size: .9375rem; }

.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover { background: #fff; }

.btn--outline-light {
  border-color: var(--night-line);
  color: var(--paper);
  background: transparent;
}
.btn--outline-light:hover { border-color: var(--paper); }

.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(8px, 2.2vw, 32px); }

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.nav-link:hover,
.nav-trigger:hover,
.nav-item.is-open .nav-trigger { color: var(--ink); }

.chev {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
  transition: transform .25s var(--ease-out);
}
.nav-item.is-open .chev { transform: rotate(180deg); }

.nav-item { position: relative; }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
/* Puente invisible para que el hover no se corte entre el botón y el menú */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s, transform .25s var(--ease-out);
}

.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav-menu a:hover,
.nav-menu a:focus-visible { background: var(--paper); color: var(--ink); }
.nav-menu a svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }

.nav-menu--grid { min-width: 500px; }
.nav-menu--grid ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-menu-title {
  padding: 8px 12px 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(21,21,28,.25);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity .25s, transform .3s var(--ease-out);
  }
  .nav {
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-link,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .nav-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: inherit;
    transform: none;
    transition: none;
  }
  .nav-menu::before { display: none; }
  .nav-item.is-open .nav-menu { display: block; transform: none; }
  .nav-menu--grid { min-width: 0; }
  .nav-menu a { padding: 8px 4px; white-space: normal; }
  .menu-toggle { display: grid; }
}

@media (max-width: 520px) {
  .header-actions .btn { display: none; }
  .brand img { height: 36px; }
}

/* ==========================================================================
   1. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: max(640px, calc(100svh - var(--header-h)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: clamp(56px, 9vh, 104px) 32px;
  --rx: clamp(300px, 50vw, 760px);
  --ry: clamp(200px, 34svh, 340px);
}

/* Resplandor suave detrás del texto y en la base */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 38% at 50% 50%, var(--paper) 40%, transparent 100%),
    radial-gradient(ellipse 70% 45% at 50% 115%, rgba(140, 175, 0, .16), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-block: auto;
  text-align: center;
  max-width: 980px;
}

/* Halo: los chips de la órbita se desvanecen al pasar detrás del texto */
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -56px -96px;
  background: radial-gradient(closest-side, var(--paper) 70%, color-mix(in srgb, var(--paper) 0%, transparent));
  pointer-events: none;
}

.hero-icp {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
}
.hero-icp-label {
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}
.hero-icp .marquee { margin-top: 16px; }
.hero-icp .icp-pill { background: var(--surface); }
.js .hero-icp { opacity: 0; animation: fade 1s .65s ease forwards; }

.hero .eyebrow {
  padding: 6px 14px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-1);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-top: 28px;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  margin-top: 20px;
  font-size: var(--step--1);
  color: var(--muted);
}

/* Anillos y órbita */
.orbit {
  position: absolute;
  inset: 0 0 132px 0;
  z-index: 1;
  pointer-events: none;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--rx) * 2 * var(--k, 1));
  height: calc(var(--ry) * 2 * var(--k, 1));
  translate: -50% -50%;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ring--inner { --k: .64; border-style: dashed; border-color: color-mix(in srgb, var(--line) 80%, transparent); }
.ring--outer { --k: 1.32; opacity: .7; }

/* Movimiento elíptico: el eje X y el eje Y se animan por separado
   con easeInOutSine y un desfase de un cuarto de vuelta. */
.orb {
  --D: 44s;
  position: absolute;
  left: 50%;
  top: 50%;
  animation: orb-x var(--D) cubic-bezier(.37, 0, .63, 1) infinite alternate;
  animation-delay: var(--d);
}
.orb > .orb-y {
  animation: orb-y var(--D) cubic-bezier(.37, 0, .63, 1) infinite alternate;
  animation-delay: calc(var(--d) - var(--D) / 2);
}
@keyframes orb-x { from { translate: calc(var(--rx) * -1) 0; } to { translate: var(--rx) 0; } }
@keyframes orb-y { from { translate: 0 calc(var(--ry) * -1); } to { translate: 0 var(--ry); } }

.orbit.is-paused .orb,
.orbit.is-paused .orb-y { animation-play-state: paused; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  translate: -50% -50%;
  padding: 8px 14px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-1);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
}
.chip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  flex: none;
}
.chip-icon svg { width: 16px; height: 16px; }

.chip--dot {
  padding: 0;
  width: 18px;
  height: 18px;
  border: 0;
  background: var(--cobalt);
  box-shadow: 0 0 0 6px rgba(140, 175, 0, .12);
}

@media (max-width: 1024px) {
  .chip { padding: 6px; }
  .chip-label { display: none; }
}

@media (max-width: 700px) {
  .hero { --rx: 46vw; --ry: 34svh; padding-block: 48px 24px; gap: 40px; }
  .hero-content::before { inset: -24px -16px; }
  .icp-pill { padding: 8px 14px 8px 8px; font-size: .875rem; }
  .icp-pill .chip-icon { width: 28px; height: 28px; }
}

/* Secuencia de entrada del hero (una sola, orquestada) */
.js .hero-content > * {
  opacity: 0;
  translate: 0 14px;
  animation: rise .9s var(--ease-out) forwards;
}
.js .hero-content > :nth-child(1) { animation-delay: .05s; }
.js .hero-content > :nth-child(2) { animation-delay: .15s; }
.js .hero-content > :nth-child(3) { animation-delay: .28s; }
.js .hero-content > :nth-child(4) { animation-delay: .4s; }
.js .hero-content > :nth-child(5) { animation-delay: .5s; }
.js .orbit { opacity: 0; animation: fade 1.6s .35s ease forwards; }

@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes fade { to { opacity: 1; } }

/* ==========================================================================
   Navegador simulado (compartido por varias secciones)
   ========================================================================== */

.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #FBFAF7;
}
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--paper-2);
  font-size: .8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url svg { width: 12px; height: 12px; flex: none; }

/* ---------- Sitio "viejo" ---------- */

.old-site {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #E9E9E9;
  padding: 0 0 14px;
  font-size: 13px;
  line-height: 1.35;
}
.old-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(#6E6E6E, #454545);
  color: #fff;
}
.old-logo {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
}
.old-menu { display: flex; gap: 8px; font-size: 11px; opacity: .9; }
.old-menu span { white-space: nowrap; }
.old-welcome {
  margin: 12px 14px 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  color: #454545;
  text-align: center;
}
.old-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin: 12px 14px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #ccc;
}
.old-stock {
  position: relative;
  min-height: 110px;
  border: 1px solid #bbb;
  background:
    radial-gradient(circle at 34% 58%, #C9B9A6 0 16%, transparent 17%),
    radial-gradient(circle at 66% 58%, #B9A794 0 16%, transparent 17%),
    linear-gradient(160deg, #D7DEE7, #AEB9C6);
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  font-size: 10px;
  color: #556;
}
.old-copy p { margin-bottom: 6px; }
.old-copy strong { font-size: 14px; color: #454545; display: block; margin-bottom: 6px; }
.old-link { color: #333333; text-decoration: underline; }
.old-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 14px 0;
}
.old-boxes div {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 11px;
  text-align: center;
}
.old-foot {
  margin: 10px 14px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #777;
}
.old-counter {
  font-family: "Courier New", monospace;
  background: #000;
  color: #3F3;
  padding: 1px 5px;
}

/* ---------- Sitio "nuevo" ---------- */

.new-site {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}
.new-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #ECEAF3;
}
.new-logo { font-weight: 750; letter-spacing: -.02em; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.new-logo i { width: 14px; height: 14px; border-radius: 4px; background: #15151C; }
.new-menu { display: flex; gap: 14px; font-size: 11px; color: #5B6070; }
.new-menu b {
  font-weight: 600;
  color: #fff;
  background: #15151C;
  padding: 4px 10px;
  border-radius: 999px;
}
.new-hero {
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, #15151C, #2A2A30);
  color: #fff;
}
.new-hero small { font-size: 10px; color: #9FC0E3; font-weight: 600; }
.new-hero h4 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 24ch;
}
.new-hero p { font-size: 11px; color: #C9D8EA; max-width: 40ch; }
.new-cta { display: flex; gap: 8px; margin-top: 12px; }
.new-cta span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #F2B33D;
  color: #15151C;
}
.new-cta span + span { background: transparent; border: 1px solid #4E6E91; color: #fff; }
.new-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #ECEAF3;
}
.new-stats div { padding: 10px 18px; border-right: 1px solid #ECEAF3; }
.new-stats div:last-child { border-right: 0; }
.new-stats b { display: block; font-size: 16px; letter-spacing: -.02em; color: #15151C; }
.new-stats span { font-size: 10px; color: #6B7080; }
.new-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 18px 16px; }
.new-cases div {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ECEAF3;
  font-size: 10px;
  color: #3B3A45;
}
.new-cases div::before {
  content: "";
  display: block;
  height: 46px;
  background: var(--img, linear-gradient(135deg, #C8D6E5, #8FA7C0));
}
.new-cases div span { display: block; padding: 6px 8px; font-weight: 600; }

/* ==========================================================================
   2. EL ESPEJO
   ========================================================================== */

.mirror { background: var(--paper); }

.mirror-grid {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.mirror-steps { list-style: none; margin: 0; padding: 0; }
.mirror-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px;
}
.mirror-step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 12vh; }
.mirror-step:last-child { min-height: 52vh; }

.mirror-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .875rem;
  font-weight: 700;
  color: var(--muted);
  transition: background-color .4s, color .4s, border-color .4s;
}
.mirror-step h3 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -.015em;
  line-height: 1.15;
  transition: color .4s;
}
.mirror-step p { margin-top: 12px; color: var(--muted); max-width: 44ch; }

.js .mirror-step { opacity: .38; transition: opacity .5s; }
.js .mirror-step.is-active { opacity: 1; }
.mirror-step.is-active .mirror-tag { background: var(--alert); border-color: var(--alert); color: #fff; }

.mirror-stage {
  position: sticky;
  top: calc(var(--header-h) + 6vh);
}

.mirror-stage .browser { position: relative; }

/* Anotaciones sobre el sitio viejo */
.note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 230px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  line-height: 1.35;
  font-weight: 500;
  box-shadow: var(--shadow-2);
  opacity: 0;
  translate: 0 8px;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out);
  pointer-events: none;
}
.note b {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--alert);
  font-size: .75rem;
}

.mark {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--alert);
  border-radius: 10px;
  background: rgba(194, 65, 12, .08);
  opacity: 0;
  scale: .97;
  transition: opacity .45s var(--ease-out), scale .45s var(--ease-out);
  pointer-events: none;
}

/* Paso 1: compartir el enlace — globo de chat con el link */
.share {
  position: absolute;
  z-index: 3;
  right: -14px;
  bottom: 18%;
  width: min(250px, 70%);
  padding: 12px;
  border-radius: 14px 14px 4px 14px;
  background: #DCF8C6;
  color: #1B3A13;
  font-size: .8125rem;
  line-height: 1.35;
  box-shadow: var(--shadow-2);
  opacity: 0;
  translate: 0 10px;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out);
}
.share u { color: #1A5FB4; word-break: break-all; }
.share small { display: block; margin-top: 6px; color: #557; font-size: .75rem; }
.share s { text-decoration-thickness: 2px; text-decoration-color: var(--alert); }

/* Paso 2: carpetas fuera del sitio */
.folders {
  position: absolute;
  z-index: 3;
  left: -18px;
  bottom: -22px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: .78rem;
  color: var(--ink-2);
  opacity: 0;
  translate: 0 10px;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out);
}
.folders span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.folders svg { width: 16px; height: 16px; color: #C69A2B; flex: none; }

/* Paso 4: el decisor revisando */
.reviewer {
  position: absolute;
  z-index: 3;
  right: -14px;
  top: 20%;
  width: min(240px, 68%);
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: .8125rem;
  opacity: 0;
  translate: 0 10px;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out);
}
.reviewer header { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.reviewer header i {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #CBD2E0, #9AA6BC);
}
.reviewer small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.trust { margin-top: 10px; font-size: .75rem; color: var(--muted); }
.trust-bar { height: 6px; border-radius: 6px; background: var(--paper-2); margin-top: 6px; overflow: hidden; }
.trust-bar i {
  display: block;
  height: 100%;
  width: 82%;
  border-radius: inherit;
  background: var(--alert);
  transition: width 1.4s .35s var(--ease-out);
}

/* Estados por paso */
[data-step="3"] .share,
[data-step="2"] .folders { opacity: 1; translate: 0 0; }

[data-step="2"] .mark--assets,
[data-step="1"] .mark--offer,
[data-step="1"] .mark--boxes { opacity: 1; scale: 1; }

[data-step="2"] .note--assets,
[data-step="1"] .note--offer { opacity: 1; translate: 0 0; }

[data-step="3"] .old-site { filter: saturate(.75); }
.old-site { transition: filter .6s; }

.mark--assets { left: 6px; right: 6px; bottom: 26px; height: 74px; }
.note--assets { right: 12px; bottom: 108px; }
.mark--offer { left: calc(50% + 2px); right: 8px; top: 92px; height: 112px; }
.mark--boxes { left: 6px; right: 6px; bottom: 26px; height: 74px; border-style: dashed; }
.note--offer { left: 12px; top: 64px; }

@media (max-width: 900px) {
  .mirror-grid { grid-template-columns: 1fr; gap: 0; }
  .mirror-stage {
    order: -1;
    top: calc(var(--header-h) + 8px);
    z-index: 5;
    padding-bottom: 8px;
  }
  .mirror-stage .browser { box-shadow: var(--shadow-1); }
  .mirror-step,
  .mirror-step:first-child,
  .mirror-step:last-child {
    min-height: 58vh;
    justify-content: flex-end;
    padding: 24px 0 32px;
  }
  .mirror-step:last-child { min-height: 70vh; }
  .old-site { font-size: 11px; }
  .old-boxes, .old-foot { display: none; }
  .old-hero { grid-template-columns: 1fr 1fr; }
  .mark--assets, .mark--boxes { bottom: auto; top: 60px; height: 36px; }
  .note--assets { bottom: auto; top: 102px; right: 8px; }
  .mark--offer { top: 92px; height: 104px; }
  .folders { left: 8px; bottom: 8px; }
  .share { right: 8px; bottom: 8px; }
  .reviewer { right: 8px; top: auto; bottom: 8px; }
  .note { max-width: 200px; font-size: .75rem; }
}

/* ==========================================================================
   3. EL ENFOQUE — antes y después
   ========================================================================== */

.approach { background: var(--surface); border-block: 1px solid var(--line); }

.compare {
  --pos: 50%;
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: var(--surface);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.compare-pane { display: block; }
.compare-pane--after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.compare .browser { border: 0; border-radius: 0; box-shadow: none; }
.compare .old-site,
.compare .new-site { min-height: 340px; }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  translate: -1px 0;
  background: var(--cobalt);
  pointer-events: none;
  z-index: 3;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 0 0 6px rgba(140, 175, 0, .18), var(--shadow-1);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  touch-action: pan-y;
}
.compare-range:focus-visible + .compare-handle::after { outline: 2px solid var(--ink); outline-offset: 6px; }

.compare-label {
  position: absolute;
  top: 60px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--pill);
  font-size: .8125rem;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  pointer-events: none;
}
.compare-label--before { left: 14px; }
.compare-label--after { right: 14px; background: var(--cobalt); }

.compare-hint {
  margin-top: 14px;
  text-align: center;
  font-size: var(--step--1);
  color: var(--muted);
}

.approach-cols {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.approach-col h3 { display: flex; align-items: center; gap: 10px; }
.approach-col h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.approach-col--ours h3::before { background: var(--cobalt); }
.approach-col p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.approach-col ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.approach-col li {
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-2);
}
.approach-col--trad li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(103,100,111,.5); }
.approach-col--ours li { border-color: color-mix(in srgb, var(--cobalt) 30%, transparent); background: var(--cobalt-soft); color: var(--cobalt-ink); }

@media (max-width: 760px) {
  .approach-cols { grid-template-columns: 1fr; }
  .compare .old-site,
  .compare .new-site { min-height: 300px; }
  .new-cases { grid-template-columns: repeat(2, 1fr); }
  .new-cases div:nth-child(3) { display: none; }
  .new-menu span { display: none; }
  .compare-label { top: 54px; font-size: .75rem; }
}

/* ==========================================================================
   4. PRUEBA SOCIAL
   ========================================================================== */

.cases-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}

.case { display: flex; flex-direction: column; gap: 20px; }
.case .browser { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.case:hover .browser { transform: translateY(-4px); }

.case-meta { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.case-meta span {
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--paper-2);
  color: var(--ink-2);
}
.case h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.2; letter-spacing: -.025em; }

/* Mini sitio de ingeniería */
.mini { font-size: 11px; line-height: 1.35; min-height: 250px; }
.mini-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-weight: 700; font-size: 12px;
}
.mini-top em { font-style: normal; font-weight: 500; color: #6B7080; font-size: 10px; display: flex; gap: 10px; }

.mini--eng { background: #F4F5F2; color: #1D2A22; }
.mini--eng .mini-top { background: #1D2A22; color: #fff; }
.mini--eng .mini-top em { color: #B8C4BB; }
.mini-filter { display: flex; gap: 6px; padding: 12px 14px 0; }
.mini-filter span { padding: 3px 9px; border-radius: 999px; border: 1px solid #CDD3CC; font-size: 10px; }
.mini-filter span:first-child { background: #1D2A22; color: #fff; border-color: #1D2A22; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 16px; }
.mini-grid div { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #E1E5DF; }
.mini-grid div::before { content: ""; display: block; height: 52px; background: var(--img); }
.mini-grid b { display: block; padding: 6px 8px 0; font-size: 10px; }
.mini-grid small { display: block; padding: 0 8px 7px; color: #6B7268; font-size: 9px; }

/* Mini sitio de consultoría con agenda */
.mini--cons { background: #FBF8F4; color: #2A1E1A; display: grid; grid-template-rows: auto 1fr; }
.mini--cons .mini-top { border-bottom: 1px solid #EDE5DC; }
.mini-cons-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; padding: 16px 14px; align-items: start; }
.mini-cons-body h5 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 750; font-size: 16px; line-height: 1.15; }
.mini-cons-body p { color: #6E5F57; font-size: 10px; }
.mini-cons-body ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 10px; }
.mini-cons-body li::before { content: "✓ "; color: #7A2E2E; font-weight: 700; }
.cal { background: #fff; border: 1px solid #EDE5DC; border-radius: 10px; padding: 10px; }
.cal b { font-size: 10px; display: block; margin-bottom: 8px; }
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cal-days i { height: 18px; border-radius: 4px; background: #F4EEE7; font-style: normal; font-size: 9px; display: grid; place-items: center; color: #8B7B70; }
.cal-days i.on { background: #7A2E2E; color: #fff; }
.cal-slots { display: grid; gap: 4px; margin-top: 8px; }
.cal-slots span { font-size: 9.5px; padding: 4px 6px; border: 1px solid #EDE5DC; border-radius: 5px; text-align: center; }
.cal-slots span.on { border-color: #7A2E2E; color: #7A2E2E; font-weight: 700; }

.quote {
  margin: clamp(56px, 8vw, 96px) auto 0;
  max-width: 900px;
  text-align: center;
}
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: var(--step-3);
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.quote p::before { content: "“"; color: var(--cobalt); }
.quote p::after { content: "”"; color: var(--cobalt); }
.quote figcaption { margin-top: 24px; color: var(--muted); font-weight: 600; }

@media (max-width: 860px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. LO QUE INCLUYE
   ========================================================================== */

.includes { background: var(--paper-2); }

.includes-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.includes-layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); }

.includes-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.includes-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.inc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--cobalt);
}
.inc-icon svg { width: 24px; height: 24px; }
.includes-list p { margin-top: 6px; color: var(--muted); }

@media (max-width: 860px) {
  .includes-layout { grid-template-columns: 1fr; }
  .includes-layout .section-head { position: static; }
}

/* ==========================================================================
   6. EL PROCESO
   ========================================================================== */

.process-track {
  --progress: 0;
  position: relative;
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  padding: 0;
}

.process-line {
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.process-line i {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(var(--progress));
  background: var(--cobalt);
  border-radius: inherit;
}
.process-line b {
  position: absolute;
  top: 50%;
  left: calc(var(--progress) * 100%);
  width: 14px;
  height: 14px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 6px rgba(140, 175, 0, .16);
}

.process-step { position: relative; }
.process-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--muted);
  transition: background-color .4s, color .4s, border-color .4s;
}
.process-step.is-done .process-num { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.process-step h3 { margin-top: 24px; }
.process-step p { margin-top: 8px; color: var(--muted); }

@media (max-width: 860px) {
  .process-track { grid-template-columns: 1fr; gap: 36px; padding-left: 64px; }
  .process-line { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; }
  .process-line i { transform-origin: top; transform: scaleY(var(--progress)); }
  .process-line b { left: 50%; top: calc(var(--progress) * 100%); }
  .process-num { position: absolute; left: -64px; top: 0; }
  .process-step h3 { margin-top: 6px; }
}

/* ==========================================================================
   7. PREGUNTAS FRECUENTES
   ========================================================================== */

.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}
.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease-out), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--cobalt-soft); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-out);
}
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 48px 24px 0; color: var(--muted); max-width: 60ch; }

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. CTA FINAL
   ========================================================================== */

.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--paper);
}
.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -300px;
  top: -380px;
  border-radius: 50%;
  border: 1px solid var(--night-line);
  box-shadow: 0 0 0 120px rgba(140, 175, 0, .05), 0 0 0 240px rgba(140, 175, 0, .035);
}
.final::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cobalt);
  right: calc(-300px + 450px + 318px * .70710678);
  top: calc(-380px + 450px + 318px * .70710678);
  box-shadow: 0 0 40px 8px rgba(140, 175, 0, .6);
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.final .eyebrow { color: #A9A9B4; }
.final h2 { font-size: var(--step-3); margin-top: 16px; color: #fff; }
.final-sub { margin-top: 20px; font-size: var(--step-1); color: #A9A9B4; max-width: 46ch; }
.final-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.diag {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 32px);
}
.diag h3 { color: #fff; }
.diag > p { margin-top: 6px; color: #A9A9B4; font-size: .9375rem; }
.diag-fields { margin-top: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: #E4E4EA; }
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--night-line);
  background: var(--night);
  color: #fff;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9A9B4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.field input::placeholder { color: #6E6E79; }
.field input:focus,
.field select:focus { outline: none; border-color: #D1FE17; box-shadow: 0 0 0 3px rgba(209, 254, 23, .2); }
.field-error { font-size: .8125rem; color: #FFB4A0; min-height: 0; }
.field input[aria-invalid="true"] { border-color: #FF8A6B; }
.diag .btn { width: 100%; margin-top: 8px; }
.diag-note { margin-top: 12px; font-size: .8125rem; color: #8A8A95; text-align: center; }

@media (max-width: 900px) {
  .final-layout { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: #A9A9B4;
  border-top: 1px solid var(--night-line);
  padding-block: 40px;
  font-size: .9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-inner img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: var(--pill);
  background: var(--wa);
  color: #0B3B1E;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(18, 140, 64, .55), var(--shadow-1);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

.js .wa-float { opacity: 0; translate: 0 16px; transition: opacity .4s, translate .5s var(--ease-out), transform .3s var(--ease-out); }
.js .wa-float.is-visible { opacity: 1; translate: 0 0; }

@media (max-width: 600px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .hero-content > *, .js .orbit { opacity: 1; translate: none; }
}

/* ==========================================================================
   Para quién es (ICPs)
   ========================================================================== */

.marquee {
  margin-top: 36px;
  display: grid;
  gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee var(--speed, 60s) linear infinite;
}
.marquee-row--rev { animation-direction: reverse; --speed: 70s; }
.marquee:hover .marquee-row,
.marquee.is-paused .marquee-row { animation-play-state: paused; }
.marquee ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }

@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

.icp-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.icp-pill .chip-icon { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row { width: auto; flex-wrap: wrap; animation: none !important; }
  .marquee ul { flex-wrap: wrap; }
  .marquee ul[aria-hidden="true"] { display: none; }
  /* La órbita queda congelada en su posición inicial */
  .orb, .orb-y {
    animation-duration: var(--D) !important;
    animation-iteration-count: infinite !important;
    animation-play-state: paused !important;
  }
}

/* Sitio nuevo: imagen de proyecto en el hero, para que la mitad derecha
   del comparador también muestre contenido */
.new-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: center;
}
.new-feature {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.new-feature-img {
  display: block;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, transparent 55%, rgba(14, 42, 71, .85)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.08) 18px 19px),
    linear-gradient(160deg, #8FB1D3 0%, #5B7FA6 45%, #3C5C80 100%);
}
.new-feature-cap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  color: #DCE7F3;
}
.new-feature-cap b { display: block; color: #F2B33D; font-size: 9.5px; }
@media (max-width: 520px) {
  .new-hero { grid-template-columns: 1fr 1fr; gap: 10px; }
  .new-hero h4 { font-size: 15px; }
  .new-hero p { display: none; }
}

/* ---------- Ajustes de celular ---------- */
@media (max-width: 520px) {
  .hero { padding-block: 36px 20px; gap: 32px; }
  .hero h1 { font-size: 2.375rem; margin-top: 20px; }
  .hero-sub { font-size: 1.0625rem; margin-top: 16px; }
  .hero-ctas { margin-top: 24px; }
  .hero-ctas .btn { --h: 48px; padding: 0 18px; font-size: .9375rem; }
  .hero-note { margin-top: 14px; font-size: .8125rem; }
  .hero-icp .marquee { margin-top: 12px; gap: 8px; }

  .mirror-stage .old-site { font-size: 10px; padding-bottom: 8px; }
  .mirror-stage .old-top { padding: 8px 10px; }
  .mirror-stage .old-logo { font-size: 12px; }
  .mirror-stage .old-menu { display: none; }
  .mirror-stage .old-welcome { font-size: 14px; margin-top: 8px; }
  .mirror-stage .old-hero { margin: 8px 10px 0; padding: 8px; gap: 8px; }
  .mirror-stage .old-stock { min-height: 78px; }
  .mirror-stage .old-copy strong { font-size: 11px; }
  .mirror-stage .browser-bar { padding: 8px 10px; }
  .mark--assets { top: 46px; height: 30px; }
  .note--assets { top: 82px; }
  .mark--offer { top: 74px; height: 92px; left: calc(50% + 4px); }
  .note--offer { top: 40px; }
  .share, .reviewer, .folders { font-size: .75rem; }
}

/* ==========================================================================
   Precios
   ========================================================================== */

.pricing { background: var(--paper); border-top: 1px solid var(--line); }
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.pricing .section-head .btn { margin-top: 32px; }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-1);
}
.pricing-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.pricing-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.pricing-list svg { width: 22px; height: 22px; flex: none; color: var(--cobalt); margin-top: 1px; }
.pricing-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

@media (max-width: 860px) {
  .pricing-layout { grid-template-columns: 1fr; }
}

/* Cinta de rubros simplificada: una fila de texto, separada por el punto del logo */
.hero-icp .marquee { --gap: 36px; margin-top: 14px; }
.hero-icp .marquee-row { gap: var(--gap); animation-duration: 75s; }
.hero-icp .marquee ul { gap: var(--gap); }
.hero-icp .marquee-row { animation-name: marquee-gap; }
@keyframes marquee-gap { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

.icp-item {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.icp-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cobalt);
  opacity: .55;
}

@media (max-width: 520px) {
  .hero-icp .marquee { --gap: 24px; }
  .icp-item { font-size: .9375rem; }
}

/* ==========================================================================
   Proyecto real (showcase)
   ========================================================================== */

.showcase {
  background: var(--surface);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.showcase-copy h2 { font-size: var(--step-3); margin-top: 16px; }
.showcase-sub { margin-top: 16px; font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.showcase-facts { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.showcase-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.showcase-facts svg { width: 22px; height: 22px; flex: none; color: var(--cobalt); margin-top: 1px; }

.showcase-stage {
  position: relative;
  padding: 0 7% 9% 0;
}

.showcase-browser { position: relative; }
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.shot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  will-change: transform;
}

/* La captura completa se recorre sola mientras está en pantalla */
.showcase-stage.is-live .shot img { animation: shot-scroll 20s ease-in-out infinite; }
@keyframes shot-scroll {
  0%, 12% { transform: translateY(0); }
  48%, 60% { transform: translateY(-75.6%); }
  96%, 100% { transform: translateY(0); }
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  padding: 7px;
  border-radius: 30px;
  background: #16161C;
  box-shadow: 0 30px 60px -18px rgba(21, 21, 28, .45), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone-screen {
  aspect-ratio: 375 / 812;
  border-radius: 23px;
  overflow: hidden;
  background: #fff;
}
.phone-screen img { width: 100%; height: auto; display: block; }

.rating-badge {
  position: absolute;
  left: -18px;
  bottom: 14%;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: .8125rem;
  color: var(--muted);
}
.rating-badge b { font-size: 1rem; color: var(--ink); }
.rating-stars { color: #F2A900; letter-spacing: 2px; font-size: .875rem; }

@media (max-width: 860px) {
  .showcase-layout { grid-template-columns: 1fr; }
  .showcase-stage { padding: 0 6% 12% 0; }
  .phone { width: 32%; border-radius: 22px; padding: 5px; }
  .phone-screen { border-radius: 17px; }
  .rating-badge { left: 8px; bottom: 4%; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-stage.is-live .shot img { animation: none; }
}
@media (max-width: 520px) {
  .rating-badge { padding: 8px 10px; font-size: .6875rem; border-radius: 12px; }
  .rating-badge b { font-size: .8125rem; }
  .rating-stars { font-size: .6875rem; letter-spacing: 1px; }
}

/* ==========================================================================
   Proyecto real con mockups fotográficos
   ========================================================================== */

.showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px clamp(40px, 6vw, 96px);
  align-items: end;
}
.showcase-head .showcase-facts { margin: 0; }

.showcase-gallery {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 64fr 36fr;
  gap: clamp(12px, 1.6vw, 20px);
}

.mock {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--paper-2);
  isolation: isolate;
}
.mock-scene { width: 100%; height: auto; display: block; }

/* Pantalla de la laptop: se deforma con matrix3d (JS) para calzar las 4 esquinas */
.mock-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 625px;
  overflow: hidden;
  transform-origin: 0 0;
  background: #fff;
  visibility: hidden;
}
.mock-screen.is-ready { visibility: visible; }
.mock-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  filter: saturate(.92) brightness(.98);
}
/* Reflejo suave para integrarla con la luz de la foto */
.mock-screen::after,
.mock-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0) 70%, rgba(60,40,20,.06) 100%);
  pointer-events: none;
}
.showcase-stage.is-live .mock-screen img,
#showcase-stage.is-live .mock-screen img { animation: shot-scroll 22s ease-in-out infinite; }

/* Pantalla del celular: vista frontal, basta con posiciones en % */
.mock-phone-screen {
  position: absolute;
  left: 36.25%;
  top: 22.43%;
  width: 27.16%;
  height: 44.26%;
  border-radius: 15.5% / 7.2%;
  overflow: hidden;
  background: #fff;
}
.mock-phone-screen img { width: 100%; height: auto; display: block; filter: saturate(.92) brightness(.98); }

.mock-tags {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mock-tags li {
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.view-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform .4s var(--ease-out), background-color .3s;
}
.view-btn:hover { transform: scale(1.08); background: var(--cobalt); }

.mock--phone .rating-badge { left: 16px; right: auto; top: auto; bottom: 16px; }

@media (max-width: 860px) {
  .showcase-head { grid-template-columns: 1fr; }
  .showcase-gallery { grid-template-columns: 1fr; }
  .mock--phone { max-width: 420px; justify-self: center; width: 100%; }
  .view-btn { width: 68px; height: 68px; font-size: .75rem; right: 12px; top: 12px; }
  .mock-tags { left: 10px; bottom: 10px; }
  .mock-tags li { font-size: .75rem; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #showcase-stage.is-live .mock-screen img { animation: none; }
}

/* ==========================================================================
   A quién le hablamos (ICPs)
   ========================================================================== */

.audience { background: var(--surface); border-top: 1px solid var(--line); }

.audience-list {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.audience-list > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 16px clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.audience-list h3 { font-size: var(--step-1); }
.audience-list p { color: var(--muted); }
.audience-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.audience-tags li {
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .audience-list > li {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
  }
  .audience-list > li > p,
  .audience-list > li > .audience-tags { grid-column: 2; }
  .audience-list > li > h3 { align-self: center; }
  .audience-tags { justify-content: flex-start; }
}

/* Hero sin la cinta de rubros */
.hero { padding-block: clamp(56px, 9vh, 104px); }
.orbit { inset: 0; }
@media (max-width: 520px) {
  .hero { padding-block: 40px 56px; }
}

/* Alternancia de fondos con el orden Hero → Problema → Para quién es → Trabajo → Enfoque */
.showcase { background: var(--paper); }

/* ==========================================================================
   El espejo — legibilidad y anotaciones alineadas
   ========================================================================== */

/* Todos los problemas se leen siempre; el activo se marca con su número */
.js .mirror-step { opacity: 1; }
.mirror-step h3 { color: var(--ink-2); }
.mirror-step.is-active h3 { color: var(--ink); }
.mirror-step p { color: var(--muted); }

/* Las marcas se dibujan sobre el elemento real, así siempre calzan */
.mirror-stage .mark { display: none; }
.mirror-stage .old-copy,
.mirror-stage .old-boxes {
  border-radius: 6px;
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition: outline-color .4s, background-color .4s;
}
.mirror-stage[data-step="1"] .old-copy,
.mirror-stage[data-step="2"] .old-boxes {
  outline-color: var(--alert);
  background-color: rgba(194, 65, 12, .06);
}

/* Notas y tarjetas dentro de la ventana, sin tapar el elemento marcado */
.mirror-stage .note--offer,
.mirror-stage .note--assets {
  left: 26px;
  right: auto;
  top: 118px;
  bottom: auto;
}
.mirror-stage .folders {
  left: auto;
  right: 14px;
  top: 112px;
  bottom: auto;
}
.mirror-stage .share {
  right: 14px;
  bottom: 14px;
}

@media (max-width: 900px) {
  .mirror-stage .old-boxes { display: grid; margin: 8px 10px 0; gap: 6px; }
  .mirror-stage .old-boxes div { padding: 5px; font-size: 10px; }
  .mirror-stage .note--offer,
  .mirror-stage .note--assets { left: 12px; top: 92px; max-width: 46%; }
  .mirror-stage .folders { right: 8px; top: 86px; }
  .mirror-stage .share { right: 8px; bottom: 8px; }
}

/* Formulario "Déjanos un mensaje" */
.field textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--night-line);
  background: var(--night);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea::placeholder { color: #6E6E79; }
.field textarea:focus { outline: none; border-color: #D1FE17; box-shadow: 0 0 0 3px rgba(209, 254, 23, .2); }
.field textarea[aria-invalid="true"] { border-color: #FF8A6B; }
.field-optional { font-weight: 400; color: #8A8A95; }

/* ==========================================================================
   CTAs en verde lima (#D1FE17) con texto oscuro para buen contraste
   ========================================================================== */
:root {
  --cta: #D1FE17;
  --cta-hover: #C2F000;
  --cta-ink: #15151C;
}
.btn--primary {
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 6px 20px -8px rgba(120, 150, 0, .55);
}
.btn--primary:hover { background: var(--cta-hover); }
.btn--primary:focus-visible { outline-color: var(--cta-ink); }

/* Íconos de las burbujas del hero en verde lima suave */
.orbit .chip-icon {
  background: #EEFCB8;
  color: #4F6300;
}

/* Logo un punto más grande */
.brand img { height: 46px; }
.footer-inner img { height: 46px; }
@media (max-width: 520px) {
  .brand img { height: 42px; }
}

/* ==========================================================================
   Para quién es — tres paneles (foto · tarjeta · frase)
   ========================================================================== */

.aud {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}
.aud-panel {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-m);
  overflow: hidden;
}

/* Foto con fundido entre rubros */
.aud-photo { background: var(--paper-2); }
.aud-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease-out;
}
.aud-photo img.is-on { opacity: 1; transform: scale(1); }
.aud-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}

/* Tarjeta tipo app sobre degradado */
.aud-app {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(209, 254, 23, .85), transparent 55%),
    radial-gradient(90% 70% at 0% 30%, rgba(140, 175, 0, .9), transparent 60%),
    linear-gradient(160deg, #0E0E12 0%, #1E2A0E 50%, #8FD14F 100%);
}
.aud-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(17, 18, 48, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
}
.aud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta, #D1FE17); flex: none; }

.aud-card {
  flex: 1;
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  padding: 14px 14px 0;
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.aud-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
  border-bottom: 1px solid var(--line);
}
.aud-card-top b { font-size: 1.0625rem; }
.aud-card-icons { display: flex; gap: 6px; }
.aud-card-icons svg {
  width: 30px; height: 30px; padding: 6px;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2);
}

.aud-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.aud-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color .3s;
}
.aud-row b { display: block; font-size: .875rem; font-weight: 650; color: var(--ink); line-height: 1.25; }
.aud-row small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.aud-ico {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--paper); color: var(--ink-2);
  transition: background-color .3s, color .3s;
}
.aud-ico svg { width: 16px; height: 16px; }
.aud-row:hover { background: var(--paper); }
.aud-row.is-on { background: var(--paper); }
.aud-row.is-on .aud-ico { background: var(--cta, #D1FE17); color: var(--cta-ink, #15151C); }

/* Frase en negro */
.aud-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 2.6vw, 36px);
  background: #0E0E12;
  color: #fff;
}
.aud-quote blockquote { margin: 0; }
.aud-quote p {
  font-size: clamp(1.375rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.aud-quote figcaption { display: grid; gap: 2px; font-size: .9375rem; color: #A9A9B4; }

@media (max-width: 1000px) {
  .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud-quote { grid-column: 1 / -1; aspect-ratio: auto; min-height: 240px; }
}
@media (max-width: 640px) {
  .aud { grid-template-columns: 1fr; }
  .aud-app { aspect-ratio: auto; padding-bottom: 0; }
  .aud-card { padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .aud-photo img { transition: opacity .2s; transform: none; }
}

/* Sin la sección Enfoque: Prueba social en blanco para separar de Trabajo */
.cases { background: var(--surface); border-top: 1px solid var(--line); }

/* ==========================================================================
   Franja "Websites visibles" — loop infinito sobre textura
   ========================================================================== */
.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 80px);
  background: #141A4A url("../assets/textura-franja.jpg") center / cover no-repeat;
  isolation: isolate;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 40, .35), rgba(10, 12, 40, .5));
}
.band-track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  width: max-content;
  animation: band-loop 38s linear infinite;
}
.band-track span {
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .95;
  text-transform: uppercase;
  color: #F6F3EC;
  white-space: nowrap;
}
.band-track i {
  flex: none;
  width: clamp(14px, 1.6vw, 26px);
  height: clamp(14px, 1.6vw, 26px);
  border-radius: 50%;
  background: var(--cta, #D1FE17);
}
/* La pista tiene 6 repeticiones: mover la mitad hace el loop perfecto */
@keyframes band-loop { to { transform: translateX(calc(-50% - clamp(24px, 3vw, 48px) / 2)); } }
.band.is-paused .band-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; }
}

/* Franja en negro sólido */
.band { background: #0E0E12; }
.band::before { display: none; }

/* ==========================================================================
   Formulario final y pie de página en negro (en lugar de azul noche)
   ========================================================================== */
:root {
  --night: #0E0E12;
  --night-2: #18181E;
  --night-line: #2C2C35;
}
.final .eyebrow,
.final-sub,
.diag > p,
.site-footer { color: #A9A9B4; }
.field label { color: #E4E4EA; }
.field-optional,
.diag-note { color: #8A8A95; }
.field input::placeholder,
.field textarea::placeholder { color: #6E6E79; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cta, #D1FE17);
  box-shadow: 0 0 0 3px rgba(209, 254, 23, .2);
}
.final .eyebrow::before { background: var(--cta, #D1FE17); }
/* Anillos decorativos neutros y punto lima */
.final::before { box-shadow: 0 0 0 120px rgba(255, 255, 255, .025), 0 0 0 240px rgba(255, 255, 255, .015); }
.final::after { background: var(--cta, #D1FE17); box-shadow: 0 0 40px 8px rgba(209, 254, 23, .35); }
.footer-links a:hover { color: #fff; }

/* Sin azul: punto de la órbita y botón "Ver sitio" en lima */
.chip--dot { background: var(--cta, #D1FE17); box-shadow: 0 0 0 6px rgba(209, 254, 23, .25), 0 0 0 1px rgba(21, 21, 28, .08); }
.view-btn:hover { background: var(--cta, #D1FE17); color: var(--cta-ink, #15151C); }

/* ==========================================================================
   Acentos con el verde lima de la marca (#D1FE17) como relleno + negro encima
   ========================================================================== */
:root {
  --cobalt: #15151C;        /* texto/íconos de acento: negro */
  --cobalt-ink: #000;
  --cobalt-soft: #EEFCB8;   /* fondos suaves: lima claro */
  --lime: #D1FE17;
}

/* Puntos de sección */
.eyebrow::before { background: var(--lime); box-shadow: 0 0 0 1.5px rgba(21, 21, 28, .55); }

/* Íconos: fondo lima, trazo negro */
.inc-icon { background: var(--lime); border-color: transparent; color: var(--ink); }
.showcase-facts svg,
.pricing-list svg { color: var(--ink); background: var(--lime); border-radius: 50%; }

/* Proceso: línea, punto y números en lima */
.process-line i { background: var(--lime); }
.process-line b { background: var(--lime); box-shadow: 0 0 0 6px rgba(209, 254, 23, .3), 0 0 0 1px rgba(21, 21, 28, .25); }
.process-step.is-done .process-num { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* Preguntas frecuentes: botón abierto en lima */
.faq-item[open] summary::after { background-color: var(--lime); border-color: var(--lime); }

/* Comillas del testimonio */
.quote p::before,
.quote p::after { color: var(--ink); }

/* Foco visible en negro (el lima no contrasta sobre crema) */
:focus-visible { outline-color: var(--ink); }

/* Línea del proceso más visible en lima */
.process-line { height: 4px; top: 18px; background: #E6E1D4; }
@media (max-width: 860px) {
  .process-line { width: 4px; height: auto; top: 20px; left: 18px; }
}

/* El proceso en un solo gris oscuro */
.process-line i { background: #2B2B31; }
.process-line b { background: #2B2B31; box-shadow: 0 0 0 6px rgba(43, 43, 49, .14); }
.process-step.is-done .process-num { background: #2B2B31; border-color: #2B2B31; color: #fff; }

/* ==========================================================================
   El espejo — antes / después
   ========================================================================== */
.ba {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-l);
  background: #0E0E12;
  color: #fff;
  overflow: hidden;
}

.ba-problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.ba-problems li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.ba-num {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--alert); color: #fff; font-weight: 700; font-size: .9375rem;
}
.ba-problems h3 { color: #fff; font-size: var(--step-1); }
.ba-problems p { margin-top: 6px; color: #A9A9B4; font-size: .9375rem; line-height: 1.55; }

/* Escenario visual */
.ba-stage {
  position: relative;
  min-height: clamp(440px, 46vw, 600px);
}
.ba-title {
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #6E6E79;
}
.ba-title span { color: #fff; }

.ba-frame {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  transition: transform 1s var(--ease-out), opacity .9s ease;
}
.ba-frame--before {
  left: 0;
  bottom: 4%;
  width: 46%;
  transform: rotate(-5deg);
  filter: grayscale(.4) brightness(.85);
}
.ba-frame--after {
  right: 0;
  top: 10%;
  width: 54%;
  transform: rotate(3deg);
  z-index: 2;
  outline: 1px solid rgba(255, 255, 255, .08);
}

.ba-pill {
  position: absolute;
  z-index: 3;
  padding: 6px 14px;
  border-radius: var(--pill);
  font-size: .875rem;
  font-weight: 700;
}
.ba-pill--before { left: 6%; bottom: calc(4% + 72%); background: #2B2B31; color: #D4D4DA; }
.ba-pill--after { right: 4%; top: calc(10% - 18px); background: var(--lime, #D1FE17); color: var(--ink); }

.ba-arrow {
  position: absolute;
  z-index: 3;
  left: 34%;
  top: 22%;
  width: clamp(70px, 9vw, 120px);
  color: #fff;
}
.ba-arrow path { stroke-dasharray: 160; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s .35s var(--ease-out); }

/* Antes: sitio viejo más saturado de cosas */
.ba .old-site { font-size: 10px; padding-bottom: 8px; }
.ba .old-top { padding: 8px 10px; }
.ba .old-logo { font-size: 12px; }
.ba .old-welcome { font-size: 13px; margin-top: 8px; }
.ba .old-hero { margin: 8px 8px 0; padding: 8px; gap: 8px; }
.ba .old-stock { min-height: 70px; font-size: 8px; }
.ba .old-copy strong { font-size: 10px; }
.ba .old-boxes { margin: 8px 8px 0; gap: 6px; }
.ba .old-boxes div { padding: 5px; font-size: 9px; }
.old-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 8px 8px 0; }
.old-gallery i { aspect-ratio: 1; background: linear-gradient(135deg, #C9C9C9, #9A9A9A); border: 1px solid #bbb; }
.ba .old-foot { margin: 8px 8px 0; font-size: 8px; }

/* Después: sitio nuevo "wow" */
.nw { background: #fff; color: var(--ink); font-size: 10px; line-height: 1.35; }
.nw-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #0E0E12; color: #D4D4DA;
}
.nw-nav b { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; letter-spacing: -.01em; margin-right: auto; }
.nw-nav b i { width: 12px; height: 12px; border-radius: 3px; background: var(--lime, #D1FE17); }
.nw-nav span { font-size: 9.5px; }
.nw-nav em { font-style: normal; font-weight: 700; font-size: 9.5px; padding: 4px 10px; border-radius: 999px; background: var(--lime, #D1FE17); color: var(--ink); }
.nw-hero {
  position: relative;
  padding: 26px 16px 22px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 10, 14, .88) 0%, rgba(10, 10, 14, .55) 55%, rgba(10, 10, 14, .15) 100%),
    url("../assets/rubros/construccion.jpg") center 40% / cover;
}
.nw-hero small { font-size: 8.5px; font-weight: 700; color: var(--lime, #D1FE17); letter-spacing: .02em; }
.nw-hero h5 { margin: 6px 0 6px; font-size: clamp(15px, 1.7vw, 22px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; max-width: 15ch; }
.nw-hero p { font-size: 9.5px; color: #D4D4DA; max-width: 30ch; }
.nw-cta { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 9.5px; padding: 6px 12px; border-radius: 999px; background: var(--lime, #D1FE17); color: var(--ink); }
.nw-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #ECEBE6; }
.nw-stats div { padding: 10px 12px; border-right: 1px solid #ECEBE6; }
.nw-stats div:last-child { border-right: 0; }
.nw-stats b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.nw-stats span { font-size: 8.5px; color: var(--muted); }
.nw-sec { padding: 12px 12px 4px; }
.nw-sec > p { font-weight: 700; font-size: 10.5px; margin-bottom: 8px; }
.nw-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nw-projects figure {
  margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: var(--img) center / cover;
}
.nw-projects figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  color: #fff; font-weight: 700; font-size: 9.5px;
}
.nw-projects small { display: block; font-weight: 500; font-size: 8px; color: #D4D4DA; }
.nw-trust { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; font-size: 8.5px; color: var(--muted); }
.nw-trust i { width: 34px; height: 10px; border-radius: 3px; background: #E3E1DA; }

/* Entrada orquestada (una vez) */
.js .ba .ba-frame--after { opacity: 0; transform: translate(40px, 16px) rotate(6deg); }
.js .ba .ba-arrow path { stroke-dashoffset: 160; }
.js .ba.is-in .ba-frame--after { opacity: 1; transform: rotate(3deg); }
.js .ba.is-in .ba-arrow path { stroke-dashoffset: 0; }

@media (max-width: 1000px) {
  .ba { grid-template-columns: 1fr; }
  .ba-stage { min-height: clamp(420px, 80vw, 620px); }
}
@media (max-width: 560px) {
  .ba { padding: 20px; }
  .ba-stage { min-height: 128vw; }
  .ba-frame--before { width: 62%; bottom: 0; }
  .ba-frame--after { width: 72%; top: 14%; }
  .ba-arrow { left: 8%; top: 18%; width: 64px; transform: rotate(10deg); }
  .ba-pill--before { left: 4%; bottom: auto; top: calc(100% - 128vw * .55); }
}
@media (prefers-reduced-motion: reduce) {
  .js .ba .ba-frame--after { opacity: 1; transform: rotate(3deg); }
  .js .ba .ba-arrow path { stroke-dashoffset: 0; }
}

/* Antes/después sobre el mismo fondo crema de la página */
.ba { background: transparent; color: var(--ink); padding-inline: 0; }
.ba-problems h3 { color: var(--ink); }
.ba-problems p { color: var(--muted); }
.ba-title { color: #B5B1A6; }
.ba-title span { color: var(--ink); }
.ba-arrow { color: var(--ink); left: 27%; top: 26%; width: clamp(64px, 7.5vw, 100px); }
.ba-frame { box-shadow: 0 2px 6px rgba(21, 21, 28, .06), 0 30px 60px -24px rgba(21, 21, 28, .35); }
.ba-frame--after { outline: 1px solid var(--line); }
.ba-pill--before { background: #E4E0D6; color: var(--ink-2); }
@media (max-width: 560px) {
  .ba { padding: 0; }
  .ba-arrow { left: 6%; top: 17%; }
}
.ba-pill--before { left: 2%; top: 37%; bottom: auto; transform: rotate(-5deg); }
@media (max-width: 560px) {
  .ba-pill--before { top: 44%; left: 2%; }
}
@media (max-width: 560px) {
  .ba-stage { min-height: 152vw; }
  .ba-frame--before { bottom: 2%; }
}

/* Números de los problemas en negro */
.ba-num { background: var(--ink); color: #fff; font-size: .8125rem; letter-spacing: .02em; width: 40px; height: 40px; }
.ba-problems li { grid-template-columns: 40px 1fr; }

/* Etiqueta "Después" con el mismo ángulo del sitio nuevo */
.ba-pill--after { transform: rotate(3deg); transform-origin: left center; }
.pricing-fine { display: block; margin-top: 4px; font-weight: 400; font-size: .8125rem; color: var(--muted); }

/* Hero sin etiqueta superior */
.hero h1 { margin-top: 0; }

/* Franja: tipografía más pequeña */
.band { padding-block: clamp(28px, 4.5vw, 60px); }
.band-track span { font-size: clamp(2.75rem, 8vw, 7rem); }
.band-track i { width: clamp(12px, 1.2vw, 20px); height: clamp(12px, 1.2vw, 20px); }

/* ==========================================================================
   Testimonio + CTA (dos paneles)
   ========================================================================== */
.testi {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.testi-card,
.testi-cta {
  margin: 0;
  min-height: clamp(320px, 32vw, 440px);
  border-radius: var(--radius-m);
}
.testi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 3.2vw, 48px);
  background: #26262B;
  color: #fff;
}
.testi-card blockquote { margin: 0; }
.testi-card p {
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--lime, #D1FE17); color: var(--ink);
  font-weight: 800; font-size: .9375rem; letter-spacing: .02em;
}
.testi-author b { display: block; font-size: 1.0625rem; font-weight: 650; }
.testi-author small { display: block; font-size: 1rem; color: #A9A9B4; }

.testi-cta {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(209, 254, 23, .85), transparent 55%),
    radial-gradient(90% 70% at 0% 30%, rgba(140, 175, 0, .9), transparent 60%),
    linear-gradient(160deg, #0E0E12 0%, #1E2A0E 50%, #8FD14F 100%);
}
.testi-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.testi-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .55); }
.testi-btn svg { width: 22px; height: 22px; color: #1FA855; }

@media (max-width: 760px) {
  .testi { grid-template-columns: 1fr; }
  .testi-cta { min-height: 220px; }
}

/* Selector de idioma ES | EN */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
}
.lang button {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
