/* ==========================================================================
   Conecta y Listo — estilos
   Paleta: tinta azul, niebla de pantalla, amarillo "cursor del técnico".
   Tipografía: Atkinson Hyperlegible Next (diseñada para máxima legibilidad).
   ========================================================================== */

@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("../fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13294b;
  --ink-soft: #44546e;
  --line: #c9d6e6;
  --paper: #ffffff;
  --mist: #eaf0f6;
  --signal: #ffd23f;
  --wa: #0e7a3e;
  --wa-hover: #0b6533;
  --alert: #b3261e;

  --font: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.889rem;
  --step-0: 1.125rem;   /* 18px: cuerpo generoso para lectores de todas las edades */
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.4rem + 4vw, 4.1rem);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  letter-spacing: -0.005em;
}

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

a {
  color: inherit;
}

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

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn--wa {
  background: var(--wa);
  color: #fff;
}
.btn--wa:hover {
  background: var(--wa-hover);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--mist);
}

.btn--small {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: var(--step--1);
}
.btn--small svg {
  width: 18px;
  height: 18px;
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.05rem;
  }
  .site-header .btn span {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(12px, 2vw, 24px) clamp(40px, 6vw, 72px);
  background: var(--mist);
}

.hero .wrap {
  max-width: 1320px;
  padding-inline: clamp(12px, 2vw, 24px);
}

/* La portada vive en un panel: esquinas amplias y sombra suave */
.hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5.5vw, 80px) clamp(22px, 5vw, 72px);
  border-radius: clamp(28px, 3.5vw, 48px);
  background: var(--paper);
  border: 1px solid rgba(201, 214, 230, 0.7);
  box-shadow: 0 40px 100px -40px rgba(19, 41, 75, 0.18);
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

.hero__lead {
  margin-top: 22px;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__facts svg {
  width: 18px;
  height: 18px;
  color: var(--wa);
}

@media (max-width: 860px) {
  .hero__panel {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: 14ch;
  }
}

/* ---------- Pantalla del hero (la conexión remota) ---------- */

.rig {
  position: relative;
  max-width: 540px;
  width: 100%;
  justify-self: center;
}

.screen {
  position: relative;
  background: var(--ink);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 30px 60px -30px rgba(19, 41, 75, 0.55);
}

.screen__inner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe8f2;
  aspect-ratio: 16 / 10.5;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(160deg, #dbe6f2, #c5d5e7);
}

.session-bar {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(19, 41, 75, 0.92);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.session-bar__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.session-bar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.25);
}

.session-bar__stop {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 600;
}

.win {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 24%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 32px -18px rgba(19, 41, 75, 0.6);
  overflow: hidden;
}

.win__title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--mist);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.win__title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.win__body {
  display: grid;
  padding: clamp(14px, 3vw, 22px);
  min-height: clamp(116px, 22vw, 150px);
}

.win__body > * {
  grid-area: 1 / 1;
}

.win__state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.win__msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  line-height: 1.25;
}

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

.win__msg--bad {
  color: var(--alert);
}

.win__fake-btn {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.meter {
  height: 10px;
  border-radius: 99px;
  background: var(--mist);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--ink);
  transform-origin: left center;
}

.win__small {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.win__state--good {
  align-items: flex-start;
}

.done-word {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.done-word svg {
  width: 0.9em;
  height: 0.9em;
  padding: 0.12em;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
}

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
}

.cursor svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 3px 4px rgba(19, 41, 75, 0.35));
}

.cursor__tag {
  margin-top: 22px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.rig__stand {
  width: 26%;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0d1e38, var(--ink));
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.rig__base {
  width: 46%;
  height: 9px;
  margin: 0 auto;
  border-radius: 6px 6px 3px 3px;
  background: var(--ink);
}

.rig__code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 18px;
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-align: center;
}

.rig__code b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
}

@media (max-width: 520px) {
  .screen__inner {
    aspect-ratio: 16 / 12.5;
  }
  .session-bar {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  .win {
    left: 7%;
    right: 7%;
    top: 21%;
  }
  .win__body {
    padding: 14px;
  }
  .win__msg {
    font-size: 0.88rem;
  }
}

.rig__pause {
  display: block;
  margin: 10px auto 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rig__pause:hover {
  color: var(--ink);
}

/* Cambio de escenario: la ventana se desvanece y vuelve con el nuevo caso */
.win,
.cursor {
  transition: opacity 0.3s ease;
}

.is-swapping .win,
.is-swapping .cursor {
  opacity: 0;
}

.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

/* Secuencia: el técnico entra, hace clic, limpia y queda listo.
   Estado por defecto = final ("Listo."), para quien no tiene JavaScript
   o prefiere reducir el movimiento. main.js mide la pantalla, fija las
   coordenadas del cursor y agrega .is-playing para reproducirla una vez. */

.state-bad,
.state-work {
  opacity: 0;
  visibility: hidden;
}

.cursor {
  transform: translate(var(--rest-x, 72%), var(--rest-y, 70%));
}

.rig:not(.is-ready) .cursor {
  left: 70%;
  top: 68%;
  transform: none;
}

.is-playing .cursor {
  animation: cursor-path 5.2s cubic-bezier(0.45, 0.05, 0.25, 1) 1s both;
}
.is-playing .state-bad {
  animation: bad-window 2.8s linear 0s both;
}
.is-playing .state-work {
  animation: work-window 2.3s ease 2.8s both;
}
.is-playing .state-work .meter span {
  animation: meter-fill 1.8s cubic-bezier(0.3, 0, 0.3, 1) 2.95s both;
}
.is-playing .state-good {
  animation: fade-in-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 5s both;
}
.is-playing .win__fake-btn {
  animation: press 0.3s ease 2.55s both;
}

@keyframes cursor-path {
  0% {
    transform: translate(var(--start-x), var(--start-y));
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  32% {
    transform: translate(var(--btn-x), var(--btn-y));
  }
  37% {
    transform: translate(var(--btn-x), var(--btn-y)) scale(0.86);
  }
  41% {
    transform: translate(var(--btn-x), var(--btn-y)) scale(1);
  }
  100% {
    transform: translate(var(--rest-x), var(--rest-y));
    opacity: 1;
  }
}

@keyframes press {
  50% {
    transform: scale(0.94);
    background: #0b1c35;
  }
}

@keyframes bad-window {
  0%,
  88% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes work-window {
  0% {
    opacity: 0;
    visibility: visible;
  }
  10%,
  88% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes meter-fill {
  from {
    transform: scaleX(0.04);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Entrada de la portada: el texto sube primero y la pantalla lo acompaña.
   Junto con la animación del cursor, forman un solo momento. */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .js .hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .js .hero__copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .js .hero__copy > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .js .rig {
    animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Cinta de lo que atendemos: texto, no logos. Se detiene al pasar el cursor
   y queda fija para quien prefiere reducir el movimiento. */

.chips {
  margin-top: clamp(20px, 3vw, 32px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.chips__track {
  display: flex;
  width: max-content;
  animation: chips-scroll 60s linear infinite;
}

.chips:hover .chips__track,
.chips:focus-within .chips__track {
  animation-play-state: paused;
}

.chips__list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 4px 12px 4px 0;
  list-style: none;
}

.chips__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(201, 214, 230, 0.8);
  box-shadow: 0 1px 2px rgba(19, 41, 75, 0.06);
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
}

.chips__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(19, 41, 75, 0.25);
}

@keyframes chips-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chips {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .chips__track {
    width: auto;
    animation: none;
  }
  .chips__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px 0;
  }
  .chips__list[aria-hidden="true"] {
    display: none;
  }
}

/* Barra flotante de WhatsApp (solo en celular): aparece después de la
   portada y se oculta al llegar al cierre de la página. */

.dock {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 60;
  width: calc(100% - 24px);
  max-width: 420px;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
  pointer-events: none;
}

.dock.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.dock__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(201, 214, 230, 0.8);
  box-shadow: 0 12px 40px rgba(19, 41, 75, 0.16);
}

.dock__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}

.dock__mark svg {
  width: 26px;
  height: 26px;
}

.dock__text {
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.2;
}

.dock__btn {
  margin-left: auto;
  border-radius: 999px;
}

@media (min-width: 901px) {
  .dock {
    display: none;
  }
}

@media (max-width: 900px) {
  /* En celular la barra flotante sustituye al encabezado fijo */
  .site-header {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock {
    transition: none;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding-block: var(--section);
}

.section--mist {
  background: var(--mist);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__head .btn {
  margin-top: 24px;
}

.section__head p {
  margin-top: 14px;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Lo que resolvemos: la voz del cliente a la izquierda, la solución a la derecha */

.fixes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fix {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.fix:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.fix q {
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.25;
  quotes: "“" "”";
}

.fix p {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .fixes {
    grid-template-columns: 1fr;
  }
  .fix:nth-last-child(2) {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .fix {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.fixes__note {
  margin-top: 28px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Cómo funciona: es una secuencia real, por eso va numerada */

.steps {
  position: relative;
  display: grid;
  --steps-gap: clamp(20px, 3vw, 36px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--steps-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* Línea punteada: une el centro del primer círculo con el del último */
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: calc((100% - 3 * var(--steps-gap)) / 4 - 28px);
  border-top: 2px dashed var(--ink);
  opacity: 0.35;
}

.step {
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.45rem;
  box-shadow: 0 0 0 8px var(--mist);
}

.step p {
  margin-top: 8px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps::before {
    display: none;
  }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 64px;
    bottom: -20px;
    border-left: 2px dashed var(--ink);
    opacity: 0.35;
  }
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }
  .step::before {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .step h3 {
    align-self: center;
  }
  .step p {
    grid-column: 2;
  }
}

/* Precios */

.prices {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
}

.prices caption {
  text-align: left;
}

.prices th,
.prices td {
  padding: 20px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prices thead th {
  padding-block: 12px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}

.prices tbody th {
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.prices tbody th {
  width: 30%;
}

.prices td.when {
  color: var(--ink-soft);
}

.prices .num {
  text-align: right;
  white-space: nowrap;
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.prices thead .num {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0;
}

.prices tbody tr:last-child th,
.prices tbody tr:last-child td {
  border-bottom: 0;
}

.price-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 28px 0 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.price-notes h3 {
  font-size: var(--step-0);
}

.price-notes p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .prices thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .prices,
  .prices tbody,
  .prices tr,
  .prices th,
  .prices td {
    display: block;
  }
  .prices tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
  }
  .prices tbody tr:last-child {
    border-bottom: 0;
  }
  .prices th,
  .prices td {
    border: 0;
    padding: 0;
  }
  .prices tbody th {
    grid-column: 1 / -1;
  }
  .prices td.when {
    grid-column: 1 / -1;
    margin: 6px 0 14px;
    max-width: none;
  }
  .prices .num {
    text-align: left;
  }
  .prices .num::before {
    content: attr(data-label);
    display: block;
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink-soft);
  }
  .price-notes {
    grid-template-columns: 1fr;
  }
}

/* Seguridad: la única franja oscura de la página */

.section--ink {
  background: var(--ink);
  color: #fff;
}

.section--ink .section__head p {
  color: #c9d6e6;
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
}

.trust__list svg {
  width: 32px;
  height: 32px;
  color: var(--signal);
}

.trust__list p {
  margin-top: 4px;
  color: #c9d6e6;
}

@media (max-width: 760px) {
  .trust__list {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* Cómo saber que somos nosotros */

.verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.verify h3 {
  font-size: var(--step-2);
  line-height: 1.15;
}

.verify__steps {
  margin: 18px 0 0;
  padding-left: 1.3em;
  color: var(--ink-soft);
}

.verify__steps li + li {
  margin-top: 8px;
}

.verify__steps li::marker {
  font-weight: 800;
  color: var(--ink);
}

/* Ejemplo del mensaje de confirmación: una burbuja de chat */
.bubble {
  position: relative;
  max-width: 360px;
  margin: 28px 0 0 8px;
  padding: 16px 18px 14px;
  border-radius: 4px 18px 18px 18px;
  background: #e2f4dc;
  box-shadow: 0 1px 2px rgba(19, 41, 75, 0.12);
  font-size: var(--step--1);
  line-height: 1.45;
}

.bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid #e2f4dc;
  border-left: 10px solid transparent;
}

.bubble__title {
  font-weight: 800;
  font-size: var(--step-0);
}

.bubble__code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
}

.bubble__code b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.bubble__small {
  margin-top: 10px;
  color: var(--ink-soft);
}

.never {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.never li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.never li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    var(--alert);
  background-size: 12px 12px, 12px 12px, auto;
  background-position: center;
  background-repeat: no-repeat;
}

.verify__contact {
  margin-top: 20px;
  color: var(--ink-soft);
}

.verify__contact b {
  color: var(--ink);
}

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

/* Negocios */

.biz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.biz__lead {
  margin-top: 14px;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}

.biz .btn {
  margin-top: 28px;
}

.biz__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.biz__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.biz__list b {
  display: block;
  font-size: var(--step-0);
}

.biz__list span {
  display: block;
  margin-top: 2px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

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

/* Preguntas frecuentes */

.faq {
  max-width: 50rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateY(-4px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--ink-soft);
  max-width: 62ch;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* Llamado final */

.closer {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--signal);
}

.closer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.closer h2 {
  max-width: 18ch;
}

.closer p {
  margin-top: 10px;
  max-width: 44ch;
}

/* Pie */

.site-footer {
  padding-block: 48px 40px;
  background: var(--ink);
  color: #c9d6e6;
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer h2 {
  font-size: var(--step-0);
  color: #fff;
  margin-bottom: 10px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #fff;
  text-underline-offset: 3px;
}

.site-footer p {
  margin-top: 12px;
  max-width: 38ch;
}

.site-footer .legal-line {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 214, 230, 0.25);
}

@media (max-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Páginas legales ---------- */

.doc {
  padding-block: clamp(40px, 6vw, 80px) var(--section);
}

.doc .wrap {
  max-width: 820px;
}

.doc h1 {
  font-size: var(--step-3);
}

.doc .doc__meta {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.doc h2 {
  margin-top: 44px;
  font-size: var(--step-1);
}

.doc p,
.doc ul,
.doc ol {
  margin-top: 14px;
  max-width: 70ch;
}

.doc li + li {
  margin-top: 6px;
}

.doc .fill {
  background: #fff3c4;
  border-bottom: 2px solid var(--signal);
  padding: 0 4px;
  font-weight: 600;
}

.doc .draft-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--signal);
  background: var(--mist);
  font-size: var(--step--1);
}

.doc .back {
  display: inline-block;
  margin-top: 48px;
  font-weight: 600;
}

/* 404 */

.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}

.lost h1 {
  font-size: var(--step-4);
}

.lost p {
  margin: 16px auto 28px;
  max-width: 36ch;
  color: var(--ink-soft);
}
