/* bloqueofutbol.com · diseño monocromo. Solo el estado lleva color: ámbar (bloqueado) y verde (online).
   Fondos planos, una familia tipográfica, espaciado y escala tipográfica cerrados. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --s0: 0;
  --s25: 2px;
  --s50: 4px;
  --s75: 8px;
  --s100: 12px;
  --s200: 16px;
  --s300: 24px;
  --s400: 32px;
  --s500: 40px;
  --s600: 48px;
  --s700: 64px;
  --s800: 80px;
  --s900: 96px;

  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Modo día (por defecto) */
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #ebebeb;
  --line: #e0e0e0;
  --fg: #0a0a0a;
  --muted: #5c5c5c;
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --h-from: #000000;
  --h-to: #666666;
  --warn: #9a5b00;
  --warn-bg: #fdf0d8;
  --ok: #14683f;
  --ok-bg: #dcf3e6;
  --glass: rgba(255, 255, 255, 0.92);
  --overlay: rgba(255, 255, 255, 0.9);
  --tg-dim: rgba(10, 10, 10, 0.3);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --line: #272727;
  --fg: #f5f5f5;
  --muted: #a3a3a3;
  --btn-bg: #f5f5f5;
  --btn-fg: #000000;
  --h-from: #ffffff;
  --h-to: #9b9b9b;
  --warn: #f2b45a;
  --warn-bg: #2d2312;
  --ok: #5fd69a;
  --ok-bg: #10281c;
  --glass: rgba(24, 24, 24, 0.92);
  --overlay: rgba(0, 0, 0, 0.9);
  --tg-dim: rgba(245, 245, 245, 0.3);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
}

body {
  overflow-x: hidden;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 600;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

.ic {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.ic-sm {
  width: 20px;
  height: 20px;
}

.ic-xs {
  width: 16px;
  height: 16px;
}

.sprite {
  position: absolute;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-radius: var(--r-lg);
}

.skip {
  position: absolute;
  left: var(--s200);
  top: var(--s200);
  z-index: 100;
  padding: var(--s75) var(--s100);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--r-lg);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

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

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.02em;
  max-width: 680px;
}

.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 680px;
}

.head {
  display: flex;
  flex-direction: column;
  gap: var(--s100);
  margin-bottom: var(--s600);
}

.prose {
  max-width: 680px;
  color: var(--muted);
}

.prose p + p {
  margin-top: var(--s200);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: var(--s75);
  margin-top: var(--s300);
  min-height: 44px;
  font-weight: 600;
  color: var(--fg);
}

.more .ic {
  transition: transform 500ms var(--ease);
}

.more:hover .ic {
  transform: translateX(4px);
}

/* ---------- Navegación en píldora ---------- */
.nav {
  position: fixed;
  top: var(--s300);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-inline: var(--s200);
}

.pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s200);
  max-width: 100%;
  padding: var(--s75) var(--s75) var(--s75) var(--s200);
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.links {
  display: none;
  align-items: center;
  gap: var(--s50);
}

.links a {
  padding: var(--s75) var(--s100);
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-decoration: none;
  transition: color 500ms var(--ease), background-color 500ms var(--ease);
}

.links a:hover {
  color: var(--fg);
  background: var(--surface);
}

.links a[aria-current="page"] {
  color: var(--fg);
  background: var(--surface-2);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 500ms var(--ease), transform 500ms var(--ease);
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon-btn:active {
  transform: scale(0.96);
}

.theme-btn .i-sun {
  display: none;
}

html[data-theme="dark"] .theme-btn .i-sun {
  display: block;
}

html[data-theme="dark"] .theme-btn .i-moon {
  display: none;
}

.burger {
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 700ms var(--ease), opacity 400ms var(--ease);
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s100);
  padding: var(--s900) var(--s300) var(--s500);
  background: var(--overlay);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.menu a {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.menu.open a {
  opacity: 1;
  transform: none;
}

.menu.open a:nth-child(1) { transition-delay: 100ms; }
.menu.open a:nth-child(2) { transition-delay: 150ms; }
.menu.open a:nth-child(3) { transition-delay: 200ms; }
.menu.open a:nth-child(4) { transition-delay: 250ms; }
.menu.open a:nth-child(5) { transition-delay: 300ms; }
.menu.open a:nth-child(6) { transition-delay: 350ms; }

.btn.cta-pill {
  display: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s75);
  min-height: 44px;
  padding: var(--s75) var(--s100);
  border: 1px solid transparent;
  border-radius: 9999px;
  font: 600 16px/24px var(--font);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 700ms var(--ease), background-color 700ms var(--ease), opacity 700ms var(--ease);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  font-size: 14px;
  line-height: 20px;
}

.btn .ic {
  width: 20px;
  height: 20px;
}

.is-pending {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--s900) + var(--s700));
  padding-bottom: var(--s800);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s700);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s300);
}

.free-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s75);
  padding: var(--s50) var(--s100);
  border: 1px solid var(--ok);
  border-radius: 9999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.free-pill i {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: currentColor;
}

.hero h1,
.page-head h1 {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.03em;
  max-width: 680px;
  background: linear-gradient(to right, var(--h-from), var(--h-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 680px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s100);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s100) var(--s300);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--s75);
}

.trust .ic {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

.hero-fig {
  display: flex;
  flex-direction: column;
  gap: var(--s200);
  min-width: 0;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.fine {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.hero-fig .fine {
  text-align: center;
}

/* Esquema animado */
#scene {
  width: 100%;
  height: auto;
  overflow: visible;
}

.node rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
  transition: fill 800ms var(--ease), stroke 800ms var(--ease);
}

.node.warn rect {
  fill: var(--warn-bg);
  stroke: var(--warn);
}

.node.ok rect {
  stroke: var(--ok);
}

.node.off rect {
  stroke-dasharray: 4 4;
  fill: var(--bg);
}

.node text {
  fill: var(--fg);
  font: 600 16px var(--font);
}

.node text.sm {
  fill: var(--muted);
  font: 400 12px var(--mono);
  transition: fill 800ms var(--ease);
}

.node.warn text.sm {
  fill: var(--warn);
}

.node.ok text.sm {
  fill: var(--ok);
}

.node.off {
  opacity: 0.55;
}

.node {
  transition: opacity 800ms var(--ease);
}

.lane {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  fill: none;
}

.bypass {
  stroke: var(--ok);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  fill: none;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}

.bypass.on {
  opacity: 1;
}

.pt {
  fill: var(--fg);
}

.pt.warn {
  fill: var(--warn);
}

.pt.ok {
  fill: var(--ok);
}

/* Tarjeta de estado */
.status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s75);
}

.status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s100);
  padding: var(--s100) var(--s200);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s200);
  padding: var(--s200);
  background: var(--bg);
  border-radius: var(--r-lg);
}

.site {
  display: flex;
  flex-direction: column;
  gap: var(--s25);
  min-width: 0;
}

.site b {
  font-weight: 600;
}

.site small {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s75);
  padding: var(--s50) var(--s100);
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
}

.badge i {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: currentColor;
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.steps-bar {
  display: flex;
  gap: var(--s75);
  margin-top: var(--s75);
}

.steps-bar div {
  flex: 1;
  padding: var(--s100) var(--s200);
  border-radius: var(--r-lg);
  background: var(--bg);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  transition: color 700ms var(--ease), background-color 700ms var(--ease);
}

.steps-bar div b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: var(--s25);
}

.steps-bar div.on {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

/* ---------- Banda "gratis" ---------- */
.free-band {
  padding-block: var(--s400);
}

.free-box {
  display: grid;
  gap: var(--s300);
  padding: var(--s300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
}

.free-box h2 {
  font-size: 24px;
  line-height: 32px;
}

.free-box p {
  color: var(--muted);
  max-width: 680px;
  margin-top: var(--s75);
}

.free-facts {
  display: grid;
  gap: var(--s100);
}

.free-facts li {
  display: flex;
  gap: var(--s100);
  align-items: flex-start;
}

.free-facts .ic {
  color: var(--ok);
  margin-top: var(--s25);
}

/* ---------- Tarjetas ---------- */
.grid {
  display: grid;
  gap: var(--s200);
  grid-template-columns: minmax(0, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s100);
  min-width: 0;
  padding: var(--s300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
}

.card h3 {
  font-size: 20px;
  line-height: 28px;
}

.card p {
  color: var(--muted);
}

.ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.ico .ic {
  width: 28px;
  height: 28px;
}

.num {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.stat strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

/* ---------- Frase central ---------- */
.tag {
  padding-block: var(--s900);
}

.tagline {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 880px;
  text-wrap: balance;
}

.tg-w {
  color: var(--tg-dim);
  transition: color 800ms var(--ease);
}

.tg-w.on {
  color: var(--fg);
}

/* ---------- Planes ---------- */
.plan .price {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: var(--s100);
}

.plan li {
  display: flex;
  gap: var(--s100);
}

.plan li .ic {
  width: 20px;
  height: 20px;
  margin-top: var(--s25);
  color: var(--ok);
}

.plan .btn {
  margin-top: auto;
  align-self: flex-start;
}

.plan.feat {
  background: var(--bg);
  border-color: var(--fg);
}

.plan .opt {
  align-self: flex-start;
}

/* ---------- Desplegables ---------- */
.acc {
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
}

.acc + .acc {
  margin-top: var(--s75);
}

.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s200);
  width: 100%;
  min-height: 56px;
  padding: var(--s200) var(--s300);
  border: 0;
  border-radius: var(--r-2xl);
  background: transparent;
  color: var(--fg);
  font: 500 16px/24px var(--font);
  text-align: left;
  cursor: pointer;
}

.acc-btn .ic {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 700ms var(--ease);
}

.acc.open .acc-btn .ic {
  transform: rotate(45deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 700ms var(--ease), visibility 0s linear 700ms;
}

.acc.open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.acc-in {
  min-height: 0;
  overflow: hidden;
}

.acc-body {
  padding: 0 var(--s300) var(--s300);
  color: var(--muted);
}

.acc-body p + p,
.acc-body ul {
  margin-top: var(--s100);
}

.acc-body li {
  position: relative;
  padding-left: var(--s300);
}

.acc-body li + li {
  margin-top: var(--s75);
}

.acc-body li::before {
  content: "";
  position: absolute;
  left: var(--s75);
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--muted);
}

.faq {
  max-width: 760px;
}

html:not(.js) .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

/* ---------- Páginas interiores ---------- */
.page-head {
  padding-top: calc(var(--s900) + var(--s500));
  padding-bottom: var(--s400);
}

.page-head .eyebrow {
  margin-bottom: var(--s100);
}

.page-head .lead {
  margin-top: var(--s200);
}

.block {
  padding-block: var(--s600);
  border-top: 1px solid var(--line);
}

.block h2 {
  font-size: 30px;
  line-height: 36px;
}

.two {
  display: grid;
  gap: var(--s500);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.figure {
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
  padding: var(--s200);
}

.figure svg {
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: var(--s100);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.compare {
  display: grid;
  gap: var(--s200);
  grid-template-columns: minmax(0, 1fr);
}

.compare .card h3 {
  display: flex;
  align-items: center;
  gap: var(--s100);
}

.pros-cons li {
  position: relative;
  padding-left: var(--s300);
  color: var(--muted);
}

.pros-cons li + li {
  margin-top: var(--s75);
}

.pros-cons li::before {
  content: "";
  position: absolute;
  left: var(--s75);
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--muted);
}

/* Diagramas SVG */
.d-box {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 1;
}

.d-box.soft {
  fill: var(--surface-2);
}

.d-box.warn {
  fill: var(--warn-bg);
  stroke: var(--warn);
  transition: fill 800ms var(--ease), stroke 800ms var(--ease);
}

.d-text {
  fill: var(--fg);
  font: 500 14px var(--font);
}

.d-sm {
  fill: var(--muted);
  font: 400 12px var(--mono);
}

.d-warn {
  fill: var(--warn);
  font: 500 12px var(--mono);
}

.d-line {
  stroke: var(--muted);
  stroke-width: 1;
  fill: none;
  stroke-opacity: 0.5;
}

.d-line.warn {
  stroke: var(--warn);
  stroke-opacity: 1;
}

.ipdot {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1;
  transition: fill 600ms var(--ease), stroke 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.in-view .ipdot.hit {
  fill: var(--warn-bg);
  stroke: var(--warn);
}

.site-chip {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke 800ms var(--ease), fill 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.in-view .site-chip {
  stroke: var(--warn);
  fill: var(--warn-bg);
}

.cross {
  stroke: var(--warn);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 800ms var(--ease) 600ms;
}

.in-view .cross {
  opacity: 1;
}

.bar {
  fill: var(--fg);
  fill-opacity: 0.85;
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.bar.hot {
  fill: var(--warn);
  fill-opacity: 1;
}

.in-view .bar {
  transform: scaleY(1);
}

.grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.tl-block {
  fill: var(--warn-bg);
  stroke: var(--warn);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1400ms var(--ease);
}

.in-view .tl-block {
  transform: scaleX(1);
}

.tl-ok {
  fill: var(--ok-bg);
  stroke: var(--ok);
  stroke-width: 1;
}

.tl-mark {
  fill: var(--fg);
  opacity: 0;
  transition: opacity 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.in-view .tl-mark {
  opacity: 1;
}

/* ---------- Formulario clásico (página de ayuda) ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s200);
  max-width: 560px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s75);
}

label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: var(--s75) var(--s100);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/24px var(--font);
}

input,
select {
  min-height: 44px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--fg);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Final y pie ---------- */
.final {
  text-align: center;
}

.final h2 {
  margin-inline: auto;
}

.final .cta-row {
  justify-content: center;
  margin-top: var(--s300);
}

.coffee {
  margin-top: var(--s400);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s500);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

footer .wrap {
  display: grid;
  gap: var(--s300);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s100) var(--s300);
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--fg);
}

.legaltext {
  max-width: 680px;
  font-size: 12px;
  line-height: 16px;
}

.doc {
  padding-top: calc(var(--s900) + var(--s500));
  padding-bottom: var(--s700);
}

.doc h1 {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.03em;
}

.doc h2 {
  font-size: 24px;
  line-height: 32px;
  margin-top: var(--s500);
}

.doc p,
.doc ul {
  margin-top: var(--s100);
  color: var(--muted);
  max-width: 680px;
}

.doc li {
  position: relative;
  padding-left: var(--s300);
  margin-top: var(--s50);
}

.doc li::before {
  content: "";
  position: absolute;
  left: var(--s75);
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--muted);
}

.todo {
  padding: var(--s100) var(--s200);
  border: 1px solid var(--warn);
  border-radius: var(--r-xl);
  background: var(--warn-bg);
  color: var(--fg);
}

/* ---------- Aparición al hacer scroll ---------- */
.js .rv {
  opacity: 0;
  transform: translateX(-56px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .rv[data-from="r"] {
  transform: translateX(56px);
}

.js .rv[data-from="b"] {
  transform: translateY(40px);
}

/* En el móvil el bloque no se desplaza más que el margen lateral, para no ensanchar la página */
@media (max-width: 767px) {
  .js .rv {
    transform: translateX(-16px);
  }

  .js .rv[data-from="r"] {
    transform: translateX(16px);
  }

  .js .rv[data-from="b"] {
    transform: translateY(40px);
  }
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

/* Lo que ya se ve al cargar la página aparece fijo, sin animación */
.js .rv.now {
  transition: none;
}

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

  .js .rv,
  .js .rv[data-from],
  .js .rv.in {
    transform: none;
    transition: opacity 1ms;
  }

  .tg-w,
  .acc-panel,
  .acc-btn .ic,
  .menu,
  .menu a,
  .burger span,
  .bar,
  .tl-block,
  .ipdot,
  .site-chip,
  .cross,
  .tl-mark {
    transition-duration: 1ms;
    transition-delay: 0s;
  }
}

/* ---------- Pantallas anchas ---------- */
@media (min-width: 768px) {
  .wrap {
    padding-inline: var(--s300);
  }

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

  h2,
  .block h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .hero h1,
  .page-head h1 {
    font-size: 60px;
    line-height: 1;
  }

  .btn.cta-pill {
    display: inline-flex;
  }

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

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

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

  .free-box {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: var(--s400);
  }

  .tagline {
    font-size: 48px;
    line-height: 1;
  }

  .doc h1 {
    font-size: 48px;
    line-height: 1;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s600);
    align-items: start;
  }

  .hero h1 {
    font-size: 48px;
  }

  .two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s600);
  }

  .two.flip .figure {
    order: -1;
  }

  .tagline {
    font-size: 60px;
  }
}

/* ---------- Diagramas: estados adicionales ---------- */
.d-ok {
  fill: var(--ok);
  font: 500 12px var(--mono);
}

.d-box.ok {
  fill: var(--ok-bg);
  stroke: var(--ok);
}

.d-line.ok {
  stroke: var(--ok);
  stroke-opacity: 1;
}

.d-line.dash {
  stroke-dasharray: 4 4;
}

.pdot {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1;
}

.pdot.bad {
  fill: var(--warn-bg);
  stroke: var(--warn);
}

.pdot.good {
  fill: var(--ok-bg);
  stroke: var(--ok);
}

.frame-watch {
  fill: none;
  stroke: var(--ok);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.fx {
  opacity: 0;
  transition: opacity 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.in-view .fx {
  opacity: 1;
}

.callout {
  display: grid;
  gap: var(--s200);
  padding: var(--s300);
  border: 1px solid var(--warn);
  border-radius: var(--r-2xl);
  background: var(--warn-bg);
}

.callout .ic {
  width: 32px;
  height: 32px;
  color: var(--warn);
}

.callout h2 {
  font-size: 24px;
  line-height: 32px;
}

.callout p {
  margin-top: var(--s100);
  max-width: 680px;
}

@media (min-width: 768px) {
  .callout {
    grid-template-columns: auto 1fr;
    padding: var(--s400);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx {
    transition-duration: 1ms;
    transition-delay: 0s;
  }
}

.d-box.dash {
  stroke-dasharray: 4 4;
}

/* Listas y espaciado dentro de los textos de bloque */
h2 + .prose,
h2 + .lead {
  margin-top: var(--s200);
}

.prose ul {
  margin-top: var(--s200);
}

.prose li {
  position: relative;
  padding-left: var(--s300);
}

.prose li + li {
  margin-top: var(--s100);
}

.prose li::before {
  content: "";
  position: absolute;
  left: var(--s75);
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--muted);
}

.prose ul + p {
  margin-top: var(--s200);
}

.cta-row {
  margin-top: var(--s400);
}

.hero-text .cta-row,
.final .cta-row {
  margin-top: 0;
}

.final .cta-row {
  margin-top: var(--s300);
}

/* Formulario de ayuda */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  padding: 0;
}

.check a {
  text-decoration: underline;
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.form-status.ok {
  color: var(--ok);
}

.form-status.err {
  color: var(--warn);
}

.form-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s200);
  max-width: 640px;
  padding: var(--s400);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  outline: none;
}

.form-done[hidden],
.form[hidden] {
  display: none;
}

.form-done .ico {
  width: 56px;
  height: 56px;
  background: var(--ok-bg);
  border-color: transparent;
  color: var(--ok);
}

.form-done .ico .ic {
  width: 32px;
  height: 32px;
}

.form-done h3 {
  margin: 0;
}

.form-done p {
  margin: 0;
}

.list-card h3 + ul {
  margin-top: var(--s200);
}

.fine .ic {
  display: inline-block;
  vertical-align: -3px;
  margin-right: var(--s50);
}

/* ---------- Menú con más enlaces: la lista aparece desde 1024 ---------- */
.menu.open a:nth-child(7) { transition-delay: 400ms; }

@media (min-width: 1024px) {
  .links {
    display: flex;
  }

  .burger {
    display: none;
  }
}

/* ---------- Capturas de la app ---------- */
.phone {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}

.phone-in {
  padding: var(--s75);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: var(--surface);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: var(--r-2xl);
}

.phone .shot-d {
  display: none;
}

html[data-theme="dark"] .phone .shot-l {
  display: none;
}

html[data-theme="dark"] .phone .shot-d {
  display: block;
}

.phone figcaption {
  margin-top: var(--s100);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  text-align: center;
}

.phones {
  display: grid;
  gap: var(--s400);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s300);
  }
}

.versus {
  display: grid;
  gap: var(--s200);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .versus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.versus .card.hand h3 {
  color: var(--warn);
}

.versus .card.app {
  border-color: var(--fg);
  background: var(--bg);
}

.phones.duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s200);
}

@media (min-width: 768px) {
  .phones.duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.phones + .fine {
  margin-top: var(--s300);
  text-align: center;
}

.prose + .versus {
  margin-top: var(--s400);
}

.versus + .note {
  margin-top: var(--s200);
}

.wrap > .phones {
  margin-bottom: var(--s200);
}

/* Logotipo: negro con símbolo blanco y punto naranja; en modo noche se invierte */
.logo {
  gap: var(--s75);
}

.logomark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.lm-bg {
  fill: var(--btn-bg);
}

.lm-line {
  fill: none;
  stroke: var(--btn-fg);
  stroke-width: 16;
  stroke-linejoin: round;
}

.lm-fill {
  fill: var(--btn-fg);
  stroke: var(--btn-fg);
  stroke-width: 16;
  stroke-linejoin: round;
}
