/* Mi Municipio · landing · tokens tomados de design/tequio-ios.css (iOS 27, solo modo claro) */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --ink: #0b0b0f;
  --ink-2: rgb(60 60 67 / 0.72);
  --ink-3: rgb(60 60 67 / 0.46);
  --line: rgb(60 60 67 / 0.12);
  --line-strong: rgb(60 60 67 / 0.2);

  --accent: #0c996e;
  --accent-solid: #0a8460;
  --accent-ink: #087a59;
  --accent-soft: rgb(12 153 110 / 0.12);
  --on-accent: #ffffff;

  --blue: #007aff;
  --orange: #ff9500;
  --yellow: #f5b300;
  --green: #34c759;
  --indigo: #5856d6;
  --teal: #30b0c7;
  --purple: #af52de;
  --red: #ff3b30;
  --gray: #8e8e93;

  --r-card: 26px;
  --r-row: 14px;
  --container: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", var(--font);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -16px rgb(0 0 0 / 0.14);
  --shadow-phone: 0 40px 80px -30px rgb(0 0 0 / 0.45), 0 12px 24px -12px rgb(0 0 0 / 0.25);
  --glass: rgb(255 255 255 / 0.72);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--blue) 85%, transparent); outline-offset: 3px; border-radius: 8px; }
.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; }

/* ---------- layout ---------- */
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: min(var(--container), 100% - 32px); } }
section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent-ink); background: var(--accent-soft);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h2.title {
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
  text-wrap: balance;
}
.lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; letter-spacing: -0.012em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 480ms var(--spring), filter 160ms, background-color 160ms, box-shadow 160ms;
  user-select: none;
}
.btn:active { transform: scale(0.96); transition-duration: 90ms; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), transparent 60%), var(--accent-solid);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent-solid) 75%, transparent), inset 0 0.5px 0 rgb(255 255 255 / 0.35);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  color: var(--ink);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgb(0 0 0 / 0.04);
}
.btn-secondary:hover { background: var(--bg-2); }
.btn-dark { color: #fff; background: #111; box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5); }
.btn-dark:hover { filter: brightness(1.15); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; inset: 14px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 8px; border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.55), transparent 55%), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.25), inset 0 0 0 0.5px rgb(255 255 255 / 0.8), 0 0 0 0.5px rgb(0 0 0 / 0.06);
  max-width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 0 10px 0 2px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color 160ms, color 160ms;
}
.nav-links a:hover { color: var(--ink); background: rgb(0 0 0 / 0.05); }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 36px; padding: 0 10px; margin-left: 4px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 160ms, color 160ms;
}
.lang:hover { color: var(--ink); background: rgb(0 0 0 / 0.05); }
.nav-cta { max-width: 0; padding: 0; margin-left: 0; overflow: hidden; opacity: 0; pointer-events: none;
  transition: max-width 420ms var(--ease-ios), padding 420ms var(--ease-ios), margin 420ms var(--ease-ios), opacity 260ms var(--ease); }
.nav.scrolled .nav-cta { max-width: 160px; padding: 0 16px; margin-left: 6px; opacity: 1; pointer-events: auto; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .brand span { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 104px 0 0; overflow: hidden; }
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero .app-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 14px; }
.hero h1 {
  font-size: clamp(36px, 4.8vw, 58px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
  text-wrap: balance;
}
.hero .lead { margin: 12px auto 0; max-width: 520px; font-size: clamp(15px, 1.4vw, 17px); }
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; justify-content: center; margin-top: clamp(12px, 2vw, 24px); height: clamp(420px, 52vw, 680px); overflow: hidden; }
/* resplandor verde suave de fondo */
.hero-visual { background: radial-gradient(45% 55% at 50% 100%, rgb(12 153 110 / 0.12), transparent 70%); }
/* media luna invertida (∪): anillo verde difuso centrado arriba; solo se ve su parte baja y las puntas se desvanecen hacia arriba */
.hero-visual::before { content: ""; position: absolute; left: 50%; top: 14%; width: min(1100px, 160%); height: 78%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 72% at 50% 0%, transparent 72%, rgb(19 176 131 / 0.5) 86%, rgb(10 132 96 / 0.32) 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 60%); mask-image: linear-gradient(to bottom, transparent 15%, #000 60%);
  filter: blur(18px); }
/* el iPhone está a la izquierda dentro de la imagen (centro en x≈280 de 896): se desplaza 18.8% para que el teléfono quede centrado */
.hero-hand { position: relative; height: 112%; width: auto; max-width: none; align-self: flex-start; margin-top: clamp(28px, 4vw, 56px); translate: 18.8% 0; filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.18)); }
/* borde inferior: desenfoque progresivo que se funde con el fondo, para que la mano no se vea cortada */
.hero-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 25%, transparent) 40%, color-mix(in srgb, var(--bg) 75%, transparent) 75%, var(--bg));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.15) 25%, rgb(0 0 0 / 0.6) 55%, #000 85%);
  mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.15) 25%, rgb(0 0 0 / 0.6) 55%, #000 85%);
}
@media (max-width: 640px) { .hero { padding-top: 96px; } .hero-visual { height: 460px; } .hero-hand { height: 118%; margin-top: 32px; } }

.app-icon {
  width: 92px; height: 92px; margin: 0 auto 28px; border-radius: 22px;
  box-shadow: 0 24px 48px -20px rgb(8 128 92 / 0.55), 0 0 0 0.5px rgb(0 0 0 / 0.06);
}

/* ---------- phone mockup ---------- */
/* iPhone 17 Pro de frente (2D): banda de titanio plateado, bisel negro delgado, Dynamic Island y botones laterales.
   Proporción 823×1677; la pantalla (0.884 del ancho) coincide con las capturas 900×1956. */
.phone {
  --w: 300px;
  position: relative; width: var(--w); height: calc(var(--w) * 1677 / 823); flex: none;
  padding: calc(var(--w) * 0.016);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(90deg, #9a9a9f 0%, #e9e9ec 4%, #c9c9ce 9%, #f4f4f6 30%, #dcdce0 70%, #c9c9ce 91%, #e9e9ec 96%, #9a9a9f 100%);
  box-shadow: var(--shadow-phone),
    inset 0 0 0 1px rgb(0 0 0 / 0.22),
    inset 0 1.5px 1px rgb(255 255 255 / 0.9),
    inset 0 -1.5px 1px rgb(0 0 0 / 0.12);
}
.phone img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  border: calc(var(--w) * 0.042) solid #050506;
  border-radius: calc(var(--w) * 0.149); background: #f2f2f7;
}
/* brillo sutil donde el bisel toca el cristal */
.phone::before {
  content: ""; position: absolute; inset: calc(var(--w) * 0.016);
  border-radius: calc(var(--w) * 0.149); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.10); pointer-events: none; z-index: 2;
}
/* Dynamic Island */
.phone::after {
  content: ""; position: absolute; top: calc(var(--w) * 0.083); left: 50%; translate: -50% 0;
  width: calc(var(--w) * 0.274); height: calc(var(--w) * 0.081); border-radius: 999px; background: #000; z-index: 3;
}
.phone .btn-side { position: absolute; width: calc(var(--w) * 0.011); border-radius: 2px;
  background: linear-gradient(90deg, #8e8e93, #e6e6e9 50%, #a4a4a9); }
.phone .btn-side.act  { left: calc(var(--w) * -0.009); top: 17%; height: 4.5%; }
.phone .btn-side.vol1 { left: calc(var(--w) * -0.009); top: 25%; height: 8%; }
.phone .btn-side.vol2 { left: calc(var(--w) * -0.009); top: 35%; height: 8%; }
.phone .btn-side.pwr  { right: calc(var(--w) * -0.009); top: 27%; height: 12%; }
.phone .btn-side.cam  { right: calc(var(--w) * -0.009); top: 52%; height: 7%; }

/* ---------- statement (texto que se teclea + órbita de íconos que gira con el scroll) ---------- */
.statement {
  --R: clamp(250px, 40vw, 560px);          /* radio de la órbita */
  --s: clamp(54px, 5.6vw, 78px);           /* tamaño de cada ícono */
  --cy: calc(var(--R) + var(--s) / 2 + 40px); /* centro de la órbita = centro del texto */
  position: relative; overflow: hidden; height: calc(var(--cy) + var(--R) * 0.62); margin-bottom: clamp(80px, 12vw, 180px);
}
.orbit {
  position: absolute; left: 50%; top: var(--cy); width: calc(var(--R) * 2 + var(--s) * 2); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 78%); mask-image: linear-gradient(to bottom, #000 52%, transparent 78%);
}
.orbit-ring { --rot: 0deg; position: absolute; inset: 0; }
.orbit .sq {
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
  border-radius: 28%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  box-shadow: 0 18px 32px -14px color-mix(in srgb, var(--c) 80%, transparent), inset 0 0.5px 0 rgb(255 255 255 / 0.5);
  transform: rotate(calc(var(--a) + var(--rot))) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1 - var(--rot) * 0.6));
  will-change: transform;
}
.orbit .sq svg { width: 50%; height: 50%; }
.st-center {
  position: absolute; left: 50%; top: var(--cy); transform: translate(-50%, -50%); z-index: 2;
  width: min(calc(100% - 40px), calc(var(--R) * 1.2), 640px); text-align: center;
}
.statement h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
@media (max-width: 600px) { .statement { --R: 230px; --s: 50px; } .statement h2 { font-size: 30px; } }

/* ---------- features (bloques alternados) ---------- */
.features { padding-top: 0; }
.fb { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(56px, 8vw, 120px) 0; }
.fb.flip .fb-art { position: relative; height: clamp(380px, 40vw, 560px); border-radius: 32px; overflow: hidden; display: flex; justify-content: center; align-items: center;
  background: radial-gradient(70% 60% at 50% 30%, rgb(255 255 255 / 0.22), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); }
.fb.flip .fb-art { order: 2; }
@media (max-width: 860px) { .fb { grid-template-columns: 1fr; } .fb.flip .fb-art { order: 0; } }
.fb-art { position: relative; height: clamp(360px, 40vw, 560px); border-radius: 32px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: clamp(40px, 5vw, 80px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 86%, #fff), var(--c)); }
.fb-phone { max-width: 88%; max-height: 88%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.30)); transition: transform 600ms var(--ease); }
.fb-art:hover .fb-phone { transform: translateY(-6px) rotate(-1deg); }
/* iPhone 2D derecho dentro de la tarjeta de color; se corta en el borde inferior */
.fb-art-flat { align-items: flex-start; }
.fb-flat { --w: clamp(200px, 19vw, 250px); margin-top: clamp(32px, 4vw, 56px); box-shadow: 0 40px 60px -24px rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(0 0 0 / 0.22), inset 0 1.5px 1px rgb(255 255 255 / 0.9); transition: transform 600ms var(--ease); }
.fb-art-flat:hover .fb-flat { transform: translateY(-6px); }
.fb-text { max-width: 460px; }
.fb-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; }
.fb-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.fb-ic svg { width: 13px; height: 13px; }
.fb-text h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.fb-text p { margin: 22px 0 32px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ---------- how it works (bento con teléfonos que se cortan en la tarjeta) ---------- */
.how .section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bn { position: relative; overflow: hidden; border-radius: 28px; background: var(--bg-2); display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 300ms var(--ease); }
.bn.full { grid-column: 1 / -1; }
.bn-copy { max-width: 480px; padding: 0 24px; }
.bn-copy h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.bn-copy p { margin-top: 10px; font-size: clamp(15px, 1.2vw, 16px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.bn-step { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; font-family: var(--font-rounded); font-size: 14px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent-soft); }
.bn-step.done { color: #fff; background: var(--accent-solid); }
.bn-step svg { width: 18px; height: 18px; }
.bn-phone { --w: clamp(200px, 20vw, 260px); flex: none; }
/* iPhone 823×1677 centrado en horizontal; texto arriba y el teléfono se corta en el borde inferior */
.bn.top { padding-top: clamp(36px, 4vw, 52px); height: clamp(500px, 44vw, 580px); }
.bn.top .bn-phone { margin-top: clamp(24px, 3vw, 36px); }
.bn.full .bn-phone { --w: clamp(220px, 22vw, 280px); }
/* side: teléfono a la izquierda (cortado abajo), texto a la derecha */
.bn.side { flex-direction: row; align-items: flex-start; justify-content: center; gap: clamp(32px, 6vw, 96px); text-align: left;
  height: clamp(440px, 38vw, 500px); padding: clamp(36px, 4vw, 52px) clamp(24px, 6vw, 96px) 0; }
.bn.side .bn-copy { align-self: center; padding: 0; max-width: 440px; margin-top: -4%; }
@media (max-width: 860px) {
  .bn.side { flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; text-align: center; height: 560px; padding: 36px 0 0; }
  .bn.side .bn-copy { order: -1; align-self: auto; margin: 0 0 28px; padding: 0 24px; }
}
/* movimiento con scroll: el teléfono sale más de la tarjeta (--p de 0 a 1, lo pone script.js) */
.bn-phone { --shift: clamp(60px, 8vw, 100px); transform: translateY(calc((1 - var(--p, 1)) * var(--shift))); will-change: transform; }
.bn.bottom .bn-phone { transform: translateY(calc((var(--p, 1) - 1) * var(--shift))); }
/* bottom: el teléfono entra desde el borde superior (se ve su parte de abajo) y el texto va debajo */
.bn.bottom { justify-content: flex-end; padding-bottom: clamp(32px, 4vw, 48px); height: clamp(500px, 44vw, 580px); }
.bn.bottom .bn-phone { position: absolute; left: 50%; top: calc(var(--w) * 1677 / 823 * -0.3); translate: -50% 0; }
.bn.bottom .bn-copy { position: relative; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bn.top, .bn.bottom { height: 560px; }
  .bn.top .bn-phone { margin-top: 28px; }
  .bn-phone, .bn.full .bn-phone { --w: min(240px, 64vw); --shift: 48px; }
}

/* ---------- por qué ahora (tarjetas con micro-animaciones) ---------- */
.why { background: var(--bg); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.why h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 860px; text-wrap: balance; margin-bottom: clamp(36px, 5vw, 56px); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.wcard {
  background: var(--bg-2); border-radius: 14px; padding: 32px; min-height: 300px;
  display: flex; flex-direction: column; cursor: default;
  transition: transform 200ms var(--ease);
}
.wcard:hover { transform: scale(0.98); }
.wcard:active { transform: scale(0.96); }
.wcard .viz { display: flex; align-items: center; justify-content: center; height: 150px; }
.wcard h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin-top: 22px; letter-spacing: -0.02em; text-wrap: balance; }
.wcard p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-top: 8px; }
.wcard .src { display: block; margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* Cada tarjeta tiene su propia animación; en pausa hasta que la tarjeta aparece (.in). */
.wcard .viz * { animation-play-state: paused; }
.wcard.in .viz * { animation-play-state: running; }

/* fila: personas que avanzan hacia la ventanilla */
.queue { position: relative; width: 150px; height: 40px; display: flex; align-items: center; overflow: hidden; }
.queue .line { display: flex; gap: 10px; margin-left: -24px; animation: q-step 1.6s var(--ease) infinite; }
.queue .line i { width: 14px; height: 14px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.queue::after { content: ""; position: absolute; right: 22px; top: 0; bottom: 0; width: 34px; background: linear-gradient(90deg, transparent, var(--bg-2) 80%); }
.queue b { position: absolute; right: 0; top: 4px; width: 22px; height: 32px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--accent); animation: q-win 1.6s var(--ease) infinite; }
@keyframes q-win { 0%, 55% { background: transparent; } 75% { background: var(--accent); } 100% { background: transparent; } }
@keyframes q-step { 0%, 30% { transform: translateX(0); } 70%, 100% { transform: translateX(24px); } }

/* parpadeo: muchos reportes, uno reparado */
.blink { display: grid; grid-template-columns: repeat(6, 14px); gap: 10px; }
.blink i { width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); animation: b-ping 3s var(--d) ease-in-out infinite; }
.blink i.hot { background: var(--accent); animation: b-ring 1.8s ease-out infinite; }
@keyframes b-ping { 0%, 70%, 100% { background: color-mix(in srgb, var(--ink) 10%, transparent); transform: scale(1); } 80% { background: #ff9f0a; transform: scale(1.25); } }
@keyframes b-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* anillo: 30.8 % que se llena, se vacía y vuelve */
.ring { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke: color-mix(in srgb, var(--ink) 8%, transparent); }
.ring .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 0 100; animation: r-fill 4s var(--ease) infinite; }
@keyframes r-fill { 0%, 8% { stroke-dasharray: 0 100; } 45%, 80% { stroke-dasharray: 30.8 100; } 100% { stroke-dasharray: 0 100; } }

/* barrido: los municipios cambian de color en ola */
.sweep { display: grid; grid-template-columns: repeat(7, 14px); gap: 6px; }
.sweep i { width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); animation: s-flip 3.2s var(--d) var(--ease) infinite; }
@keyframes s-flip { 0%, 100% { background: color-mix(in srgb, var(--accent) 18%, transparent); transform: none; } 20%, 50% { background: var(--accent); transform: rotateY(180deg); } }

/* voz: barras de onda */
.voice { display: flex; align-items: center; gap: 7px; height: 90px; }
.voice i { width: 8px; height: 100%; border-radius: 999px; background: var(--accent); transform: scaleY(0.2); animation: v-bar 1.1s var(--d) ease-in-out infinite alternate; }
@keyframes v-bar { to { transform: scaleY(1); } }

/* mosaico: tres bloques que cambian de acomodo */
.morph { position: relative; width: 140px; height: 110px; }
.morph i { position: absolute; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.morph i.hot { background: var(--accent); }

/* ---------- contacto (tarjeta grande + modal) ---------- */
.contact { background: var(--bg); }
/* en desktop la tarjeta de contacto sale del ancho normal del contenedor */
@media (min-width: 901px) { .contact .container { width: min(1400px, 100% - 40px); } }
.ct-card { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 4vw, 64px); align-items: center; border-radius: 36px; padding: clamp(32px, 4vw, 56px);
  background: radial-gradient(80% 90% at 20% 20%, rgb(12 153 110 / 0.10), transparent 60%), #f3f8f6; overflow: hidden; }
@media (max-width: 900px) { .ct-card { grid-template-columns: 1fr; } }
.ct-copy h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.ct-copy .lead { margin-top: 16px; max-width: 460px; }
.ct-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ct-stats { display: flex; gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 6vw, 96px); }
.ct-stats b { display: block; font-family: var(--font-rounded); font-size: clamp(44px, 4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ct-stats b small { font-size: 0.42em; color: var(--ink-3); font-weight: 600; }
.ct-stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.ct-art { position: relative; height: clamp(380px, 40vw, 600px); border-radius: 28px; background: linear-gradient(180deg, #cfeee2, #a9e0cb); overflow: hidden; }
.ct-phone { position: absolute; width: auto; max-width: none; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.28)); }
.ct-phone.back { left: 6%; top: 6%; height: 82%; }
.ct-phone.front { left: 40%; top: 14%; height: 84%; }
@media (max-width: 600px) { .ct-art { height: 360px; } }

/* modal liquid glass: vidrio translúcido con brillo especular en el borde */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(240 242 245 / 0.18); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); animation: fade 240ms var(--ease); }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 34px; padding: 28px 24px 24px; text-align: center;
  background:
    radial-gradient(120% 60% at 15% 0%, rgb(255 255 255 / 0.75), transparent 60%),
    linear-gradient(180deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.42));
  -webkit-backdrop-filter: blur(40px) saturate(2) brightness(1.06); backdrop-filter: blur(40px) saturate(2) brightness(1.06);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: 0 40px 90px -24px rgb(0 0 0 / 0.38), 0 2px 6px rgb(0 0 0 / 0.06),
    inset 0 1.5px 0 rgb(255 255 255 / 0.95), inset 0 -1px 0 rgb(255 255 255 / 0.35), inset 0 0 24px rgb(255 255 255 / 0.35);
  animation: pop 420ms var(--spring); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(12px); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.6); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.9), 0 1px 3px rgb(0 0 0 / 0.08); color: var(--ink-2); }
.modal-close svg { width: 14px; height: 14px; }
.modal-card .app-icon { width: 64px; height: 64px; border-radius: 15px; margin: 4px auto 14px; }
.modal-card h3 { font-size: 24px; letter-spacing: -0.02em; }
.modal-card .md-sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.md-list { margin-top: 18px; border-radius: 20px; background: rgb(255 255 255 / 0.55); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.9), 0 1px 2px rgb(0 0 0 / 0.04); overflow: hidden; text-align: left; }
.md-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 58px; }
.md-row + .md-row { border-top: 0.5px solid var(--line); }
a.md-row:hover { background: rgb(0 0 0 / 0.04); }
.md-row b { display: block; font-size: 15px; } .md-row small { display: block; font-size: 13px; color: var(--ink-2); }
.md-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c)); }
.md-ic svg { width: 18px; height: 18px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 0.5px solid var(--line); }
.person .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c)); }
.person b { display: block; font-size: 15px; } .person span:not(.av) { display: block; font-size: 13px; color: var(--ink-2); }
.md-team { margin-top: 14px; text-align: left; }
.md-team .person { padding: 10px 2px; }
.md-team .person b { font-size: 15px; } .md-team .person span { font-size: 13px; }
.md-cta { width: 100%; margin-top: 14px; }
body.modal-open { overflow: hidden; }
/* formulario dentro del modal */
.md-ic-lg { width: 60px; height: 60px; border-radius: 17px; margin: 4px auto 14px; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--c) 80%, transparent); }
.md-ic-lg svg { width: 32px; height: 32px; }
.md-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; text-align: left; }
.md-form label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.md-form label span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding-left: 4px; }
.md-form input { height: 48px; padding: 0 16px; border: 0; border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink); outline: 0;
  background: rgb(255 255 255 / 0.62); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.95), inset 0 1px 2px rgb(0 0 0 / 0.05); transition: box-shadow 160ms, background-color 160ms; }
.md-form input:focus { background: rgb(255 255 255 / 0.85); box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }
.md-form input::placeholder { color: var(--ink-3); }
.md-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.md-error { padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; color: #c4271d; background: rgb(255 59 48 / 0.12); }
.md-form .md-cta { margin-top: 4px; }
.md-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.join-done { padding-top: 8px; }

/* ---------- municipios ---------- */
.browser {
  border-radius: 20px; overflow: hidden; background: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 40px 80px -36px rgb(0 0 0 / 0.35), 0 0 0 0.5px var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: #f5f5f7; border-bottom: 0.5px solid var(--line); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #e1e1e6; }
.browser-bar .dots i:nth-child(1) { background: #ff5f57; } .browser-bar .dots i:nth-child(2) { background: #febc2e; } .browser-bar .dots i:nth-child(3) { background: #28c840; }
.browser-bar .url { flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 0.5px var(--line); font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 6px; }
.browser-bar .url svg { width: 11px; height: 11px; }
.browser img { width: 100%; height: auto; }
/* control segmentado tipo iOS: la píldora blanca se desliza a la pestaña activa (--i lo pone script.js) */
.panel-tabs {
  --n: 4; --i: 0;
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  width: min(100%, 420px); margin: 0 auto 22px; padding: 3px; border-radius: 12px;
  background: rgb(118 118 128 / 0.12);
}
.panel-tabs::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n));
  border-radius: 9px; background: var(--card);
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.12), 0 3px 1px rgb(0 0 0 / 0.04), 0 0 0 0.5px rgb(0 0 0 / 0.04);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 380ms var(--ease-ios);
}
.panel-tabs button {
  position: relative; z-index: 1; min-height: 32px; padding: 0 10px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: font-weight 160ms, opacity 160ms;
}
.panel-tabs button:not([aria-pressed="true"]):hover { opacity: 0.6; }
.panel-tabs button[aria-pressed="true"] { font-weight: 600; }
.browser-shot { position: relative; }
.browser-shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.55) 45%, rgb(255 255 255 / 0.92) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.panel-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 0 24px 26px;
  text-align: center; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance;
}

/* ---------- download ---------- */
.download { padding-bottom: 0; overflow: hidden; }
.download .section-head { margin-bottom: 36px; }
.download .app-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 22px; }
.download-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.download-visual { position: relative; height: clamp(300px, 36vw, 440px); margin-top: clamp(40px, 6vw, 64px); display: flex; justify-content: center; }
.dl-phone { height: 128%; width: auto; max-width: none; filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.25)); }
.download-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, transparent, var(--bg)); z-index: 3; }

/* ---------- footer ---------- */
footer { padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { padding: 0; }
.foot-brand p { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 320px; line-height: 1.5; }
.foot-brand .by { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.foot-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 0.5px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ---------- páginas de legal y soporte (privacidad.html, soporte.html, sumate.html) ---------- */
.doc { padding: 112px 0 clamp(64px, 8vw, 104px); }
.doc-wrap { max-width: 760px; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px; }
.doc-back:hover { color: var(--ink); }
.doc-back svg { width: 16px; height: 16px; }
.doc-hero { margin-bottom: clamp(32px, 5vw, 48px); }
.doc-hero h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.doc-hero .lead { margin-top: 12px; }
.doc-meta { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.doc-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--c) 80%, transparent), inset 0 0.5px 0 rgb(255 255 255 / 0.5); }
.doc-ic svg { width: 55%; height: 55%; }
.doc-ic-lg { width: 64px; height: 64px; border-radius: 18px; }
.doc-ic-sm { width: 30px; height: 30px; border-radius: 9px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 5vw, 48px); }
.doc-toc a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg-2); }
.doc-toc a:hover { color: var(--ink); background: rgb(0 0 0 / 0.07); }
.doc-sec { padding: 0; margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: 100px; }
.doc-faq-group { padding: 0; }
.doc-sec:first-of-type { margin-top: 0; }
.doc-sec h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px; }
.doc-sec p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.doc-sec p + p { margin-top: 10px; }
.doc-sec p b { color: var(--ink); font-weight: 600; }
.doc a:not(.btn):not(.doc-contact):not(.doc-back):not(.doc-toc a) { color: var(--accent-ink); font-weight: 500; }
.doc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .doc-facts { grid-template-columns: 1fr; } }
.doc-fact { background: var(--bg-2); border-radius: 22px; padding: 22px; }
.doc-fact b { display: block; margin-top: 16px; font-size: 17px; letter-spacing: -0.01em; }
.doc-fact p { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.doc-list { list-style: none; background: var(--bg-2); border-radius: 22px; overflow: hidden; }
.doc-row { display: flex; gap: 14px; padding: 18px 20px; }
.doc-row + .doc-row { border-top: 0.5px solid var(--line); }
.doc-row b { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.doc-row p { margin-top: 2px; font-size: 15px !important; line-height: 1.5; }
.doc-tag { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); background: rgb(0 0 0 / 0.06); padding: 2px 8px; border-radius: 999px; }
.doc-contact { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 20px; border-radius: 22px; background: var(--bg-2); transition: transform 200ms var(--ease); }
.doc-sec + .doc-contact, .doc-alert + .doc-contact { margin-top: clamp(36px, 5vw, 56px); }
.doc-contact:hover { transform: scale(0.99); }
.doc-contact > span:not(.doc-ic) { flex: 1; min-width: 0; }
.doc-contact b { display: block; font-size: 17px; }
.doc-contact small { display: block; font-size: 15px; color: var(--ink-2); }
.doc-contact-mail { flex: none !important; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.doc-arrow { width: 20px; height: 20px; color: var(--ink-3); }
@media (max-width: 600px) { .doc-contact { flex-wrap: wrap; } .doc-contact-mail { width: 100%; padding-left: 54px; } }
.doc-search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 999px; background: var(--bg-2); }
.doc-search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.doc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.doc-search input::-webkit-search-cancel-button { display: none; }
.doc-search:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.doc-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 clamp(32px, 4vw, 44px); }
@media (max-width: 700px) { .doc-topics { grid-template-columns: 1fr 1fr; } }
.doc-topic { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 20px; background: var(--bg-2); text-align: left; transition: transform 200ms var(--ease), box-shadow 200ms; }
.doc-topic:active { transform: scale(0.97); }
.doc-topic b { font-size: 16px; line-height: 1.2; }
.doc-topic small { font-size: 13px; color: var(--ink-2); margin-top: -10px; }
.doc-topic[aria-pressed="true"] { background: var(--card); box-shadow: 0 0 0 2px var(--accent), 0 10px 24px -14px rgb(0 0 0 / 0.3); }
.doc-faq-group + .doc-faq-group { margin-top: 28px; }
.doc-faq-h { padding: 0 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.doc-faq { background: var(--bg-2); border-radius: 22px; overflow: hidden; }
.doc-faq details + details { border-top: 0.5px solid var(--line); }
.doc-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 17px; font-weight: 600; cursor: pointer; }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: transform 240ms var(--ease); }
.doc-faq details[open] summary svg { transform: rotate(180deg); }
.doc-faq details p { padding: 0 20px 18px; margin-top: -4px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.doc-empty { padding: 32px; border-radius: 22px; background: var(--bg-2); text-align: center; color: var(--ink-2); }
.doc-alert { display: flex; align-items: center; gap: 14px; margin-top: clamp(36px, 5vw, 56px); padding: 18px 20px; border-radius: 22px; background: color-mix(in srgb, var(--red) 9%, #fff); }
.doc-alert > div { flex: 1; min-width: 0; }
.doc-alert b { display: block; font-size: 17px; color: #c4271d; }
.doc-alert p { font-size: 15px; color: var(--ink-2); }
.doc-911 { color: #fff; background: #d92d20; flex: none; }
@media (max-width: 600px) { .doc-alert { flex-wrap: wrap; } .doc-911 { width: 100%; } }
.foot-col a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- entrada del texto (script.js parte títulos en letras y párrafos en palabras) ---------- */
.statement h2 .muted { color: var(--ink-3); }
.tx-w { display: inline-block; white-space: nowrap; }
.tx .tx-c {
  display: inline-block; white-space: pre; opacity: 0; transform: translate(-0.1em, 0.8em); filter: blur(0.25em);
  transition: opacity 400ms ease, transform 400ms ease, filter 400ms ease; transition-delay: calc(var(--i) * var(--step, 30ms));
}
.tx.tx-in .tx-c { opacity: 1; transform: none; filter: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; } .reveal.d2 { transition-delay: 160ms; } .reveal.d3 { transition-delay: 240ms; } .reveal.d4 { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
