/* ============================================================================
 * HUKPAY · CAPA DE EFECTOS (fx)
 *
 * El lenguaje de movimiento del sitio, en la paleta Hukpay:
 *   · intro de píxeles con estallido de luz y transición de píxeles entre páginas
 *   · glitch RGB en el titular, palabras que suben, eyebrows que se descifran
 *   · cursor de punto, píldora 3D de scroll que cambia de color por sección
 *   · escenas fijas (sticky) guiadas por el scroll: mosaico con parallax por
 *     columna, texto que se escribe, dial de cuotas, «hecho en Colombia»,
 *     ciudades escalonadas y las máscaras 3D de /nosotros.
 * Todo respeta prefers-reduced-motion: sin intro, escenas en su estado final.
 * ========================================================================= */

:root {
  --fx-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --fx-ink: #0b0b0f;
}
:root[data-theme="dark"] {
  --fx-ink: #f6f2ff;
}

/* ---------------------------------------------------------------- intro de píxeles */
.fx-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  display: none;
}
.fx-loading .fx-intro,
.fx-leaving .fx-intro {
  display: block;
}
/* Mientras carga, el lienzo tapa la página aunque aún no haya pintado nada. */
.fx-loading .fx-intro {
  background: var(--purple);
  /* Seguro: si el JS no corre, el velo se va solo. */
  animation: fxFailsafe 0s linear 3.2s forwards;
}
.fx-loading.fx-burst .fx-intro {
  /* La intro de la portada nace sobre la página ya visible, como el original. */
  background: transparent;
}
.fx-gl {
  position: fixed;
  inset: 0;
  z-index: 201;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
.fx-loading .fx-intro.is-drawing,
.fx-leaving .fx-intro.is-drawing {
  background: transparent;
  animation: none;
}
@keyframes fxFailsafe {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- glitch RGB del titular */
.fx-glitch {
  position: relative;
}
.fx-glitch::before,
.fx-glitch::after {
  content: attr(data-text);
  white-space: pre-line;
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.fx-glitch.is-glitching::before {
  color: var(--fuchsia);
  mix-blend-mode: multiply;
  animation: fxGlitchA 1.05s steps(1) forwards;
}
.fx-glitch.is-glitching::after {
  color: #7a00c8;
  mix-blend-mode: multiply;
  animation: fxGlitchB 1.05s steps(1) forwards;
}
:root[data-theme="dark"] .fx-glitch.is-glitching::before,
:root[data-theme="dark"] .fx-glitch.is-glitching::after {
  mix-blend-mode: screen;
}
.fx-glitch.is-glitching {
  animation: fxGlitchBase 1.05s steps(1) forwards;
}
@keyframes fxGlitchA {
  0% {
    opacity: 1;
    transform: translate(-6px, 0);
    clip-path: inset(10% 0 62% 0);
  }
  12% {
    transform: translate(5px, 0);
    clip-path: inset(55% 0 8% 0);
  }
  24% {
    transform: translate(-3px, 0);
    clip-path: inset(30% 0 40% 0);
  }
  38% {
    transform: translate(7px, 0);
    clip-path: inset(70% 0 2% 0);
  }
  52% {
    transform: translate(-2px, 0);
    clip-path: inset(5% 0 80% 0);
  }
  68% {
    transform: translate(3px, 0);
    clip-path: inset(44% 0 30% 0);
  }
  82% {
    opacity: 0.6;
    transform: translate(-1px, 0);
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes fxGlitchB {
  0% {
    opacity: 1;
    transform: translate(6px, 0);
    clip-path: inset(60% 0 12% 0);
  }
  14% {
    transform: translate(-6px, 0);
    clip-path: inset(18% 0 58% 0);
  }
  30% {
    transform: translate(4px, 0);
    clip-path: inset(80% 0 0 0);
  }
  46% {
    transform: translate(-5px, 0);
    clip-path: inset(36% 0 36% 0);
  }
  60% {
    transform: translate(2px, 0);
    clip-path: inset(0 0 70% 0);
  }
  80% {
    opacity: 0.5;
    transform: translate(1px, 0);
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes fxGlitchBase {
  0% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
  10% {
    clip-path: inset(0 12% 0 0);
    transform: translate(3px, 0);
  }
  20% {
    clip-path: inset(0 0 0 8%);
    transform: translate(-3px, 0);
  }
  34% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
  48% {
    clip-path: inset(0 30% 0 0);
  }
  56% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: none;
    transform: none;
  }
}

/* ---------------------------------------------------------------- palabras que suben */
.fx-words .fx-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.fx-words .fx-w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.fx-words.is-in .fx-w > span {
  transform: none;
}

/* ---------------------------------------------------------------- cursor de punto */
.fx-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 190;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--fx-ink);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease),
    border-radius 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s;
  will-change: transform;
}
.fx-cursor.is-on {
  opacity: 1;
}
.fx-cursor.is-link {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(214, 0, 255, 0.22);
  box-shadow: inset 0 0 0 1.5px var(--fuchsia);
}
@media (pointer: coarse) {
  .fx-cursor {
    display: none;
  }
}

/* ---------------------------------------------------------------- píldora y riel de scroll */
.fx-pill {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 16px;
  height: 38px;
  pointer-events: none;
  transform: rotate(var(--pill-rot, 30deg));
  filter: drop-shadow(0 6px 10px rgba(58, 0, 107, 0.35));
}
.fx-pill i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--pill-a, #d600ff) 0 50%, var(--pill-b, #3a006b) 50% 100%);
  transition: --pill-a 0.6s, background 0.6s;
}
/* El volumen: brillo arriba, sombra al costado. */
.fx-pill i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 30% at 35% 18%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(60% 30% at 35% 68%, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 40%, rgba(0, 0, 0, 0.35));
}
.fx-pill[data-tone="purple"] i {
  --pill-a: #3a006b;
  --pill-b: #c58bff;
}
.fx-pill[data-tone="lavender"] i {
  --pill-a: #ede4fb;
  --pill-b: #d600ff;
}
.fx-pill[data-tone="ink"] i {
  --pill-a: #0b0b0f;
  --pill-b: #ff3df0;
}
.fx-rail {
  position: fixed;
  right: 8px;
  top: 50%;
  z-index: 120;
  width: 2px;
  height: 120px;
  margin-top: -60px;
  border-radius: 2px;
  pointer-events: none;
}
.fx-rail i {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: var(--ink-3);
  transform: translateY(calc(var(--p, 0) * 98px));
}

/* ---------------------------------------------------------------- escenas fijas */
.scene {
  position: relative;
  height: var(--len, 300vh);
}
.scene__stick {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.mono {
  font-family: var(--fx-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- MEGA titular */
.mega {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0 70px;
  position: relative;
}
.mega__inner {
  will-change: transform, opacity;
}
.mega__title {
  font-size: clamp(54px, 10.6vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--fx-ink);
}
.mega__title .grad-text {
  padding-right: 0.04em;
}
.mega__sub {
  margin: 26px auto 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--ink-2);
}
.mega .hero__actions {
  justify-content: center;
}
.mega__hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--fx-ink);
  animation: fxHint 1.8s var(--ease) infinite;
}
@keyframes fxHint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.4;
  }
}

/* ---------------------------------------------------------------- mosaico con parallax */
.mosaic {
  position: relative;
  padding: 10px 0 120px;
}
.mosaic__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mosaic__bar .mono b {
  color: var(--fuchsia);
  font-weight: 700;
}
.mosaic__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.mosaic__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}
.mosaic__col:nth-child(2) {
  margin-top: 70px;
}
.mosaic__col:nth-child(3) {
  margin-top: 24px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
  min-height: 160px;
}
.tile--dark {
  background: radial-gradient(70% 60% at 50% 40%, #2a0a4a, #0b0b0f 75%);
  color: #fff;
  box-shadow: none;
}
.tile--fuchsia {
  background: var(--fuchsia);
  color: #fff;
  box-shadow: none;
}
.tile--purple {
  background: var(--purple);
  color: #fff;
  box-shadow: none;
}
.tile--lav {
  background: var(--lavender-2);
  box-shadow: none;
}
:root[data-theme="dark"] .tile--lav {
  background: #2a1145;
}
.tile--photo {
  aspect-ratio: 4 / 5;
}
.tile--photo.tile--wide {
  aspect-ratio: 4 / 3;
}
.tile--photo img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: translateY(var(--py, 0px)) scale(1.02);
  will-change: transform;
}
.tile__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.tile__mono {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
}
.tile--dark .mono,
.tile--fuchsia .mono,
.tile--purple .mono {
  color: rgba(255, 255, 255, 0.6);
}

/* Fragmentos triangulares que orbitan alrededor de una palabra que se descifra. */
.shards {
  aspect-ratio: 1 / 0.82;
  background: var(--surface);
}
.shards__shard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  margin: -17% 0 0 -17%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.shards__shard:nth-child(3n) {
  clip-path: polygon(0 0, 100% 30%, 20% 100%);
}
.shards__shard:nth-child(3n + 1) {
  clip-path: polygon(10% 10%, 100% 0, 60% 100%);
}
.shards__shard:nth-child(3n + 2) {
  clip-path: polygon(0 60%, 90% 0, 100% 100%);
}
.shards__word {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fx-ink);
  pointer-events: none;
}
.shards__word span {
  background: var(--surface);
  padding: 2px 4px;
  border-radius: 4px;
}

/* El checkout en miniatura. */
.mini-checkout {
  padding: 22px;
  display: grid;
  gap: 10px;
}
.mini-checkout b {
  color: var(--head);
}
.mini-checkout__amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--head);
}
.mini-checkout__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-checkout__methods span {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: background 0.3s, color 0.3s;
}
.mini-checkout__methods span.is-on {
  background: var(--grad);
  color: #fff;
  box-shadow: none;
}
.mini-checkout__pay {
  margin-top: 4px;
  height: 42px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.mini-checkout__pay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%);
  transform: translateX(-100%);
  animation: fxSweep 2.6s var(--ease) infinite;
}
@keyframes fxSweep {
  60%,
  100% {
    transform: translateX(100%);
  }
}

/* Movimientos en vivo. */
.feed {
  padding: 18px 16px 8px;
  height: 300px;
}
.feed__list {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 8px;
}
.feed__list li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 12.5px;
  animation: fxRow 0.6s var(--ease) both;
}
.feed__list li i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  background: var(--grad);
}
.feed__list li b {
  color: var(--head);
  font-size: 13px;
}
.feed__list li small {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
}
.feed__list li em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent-ink);
}
@keyframes fxRow {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
}

/* Teléfono con la marca en píxeles. */
.phone-tile {
  aspect-ratio: 4 / 4.6;
  display: grid;
  place-items: center;
}
.phone {
  width: 46%;
  aspect-ratio: 9 / 18.5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 4px #0b0b0f, 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 34%;
  height: 9px;
  margin-left: -17%;
  border-radius: 999px;
  background: #0b0b0f;
  z-index: 2;
}
.phone canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Contador grande. */
.count-tile {
  padding: 26px 22px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.count-tile h3 {
  color: inherit;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.count-tile p {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.85;
}

/* Palabra con un bloque que la recorre. */
.word-tile {
  min-height: 150px;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
}
.word-tile b {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fx-ink);
  font-family: var(--font);
}
.word-tile b i {
  font-style: normal;
  display: inline-block;
  min-width: 0.55em;
  text-align: center;
}
.word-tile b i.is-block {
  color: transparent;
  background: var(--fuchsia);
  border-radius: 3px;
  transform: scale(0.72);
}

/* La tarjeta 3D dentro del mosaico. */
.tile--card {
  aspect-ratio: 1 / 1.08;
  perspective: 1200px;
}
.tile--card .card3d {
  right: 8%;
  bottom: auto;
  top: 26%;
  width: 84%;
}

/* ---------------------------------------------------------------- texto que se escribe */
.typer .scene__stick {
  display: grid;
  place-items: center;
}
.typer__text {
  position: relative;
  z-index: 3;
  text-align: left;
  font-size: clamp(36px, 6.2vw, 96px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--fx-ink);
  min-width: min(14ch, 90vw);
}
.typer__line {
  display: block;
  min-height: 1.02em;
  white-space: nowrap;
}
.typer__line:nth-child(2) {
  padding-left: 1.4em;
}
.typer__caret {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: var(--fuchsia);
  animation: fxCaret 0.9s steps(1) infinite;
}
@keyframes fxCaret {
  50% {
    opacity: 0;
  }
}
.typer__mark {
  display: inline-block;
  width: 0.62em;
  height: 0.72em;
  margin-left: 0.18em;
  vertical-align: -0.04em;
  fill: url(#hk-grad);
  transform: translateY(calc((1 - var(--drop, 0)) * -120vh))
    rotate(calc((1 - var(--drop, 0)) * -40deg));
}
.typer__float {
  position: absolute;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(58, 0, 107, 0.55);
  will-change: transform;
}
.typer__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------- dial de cuotas */
.dial .scene__stick {
  display: grid;
  place-items: center;
}
.dial__svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(118vh, 112vw);
  height: min(118vh, 112vw);
  transform: translate(-50%, calc(-50% + var(--lift, 0) * -1px));
  overflow: visible;
}
.dial__arc {
  fill: none;
  stroke: var(--fuchsia);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.dial__ticks line {
  stroke: var(--ink-3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.dial__ticks line.is-major {
  stroke: var(--fuchsia);
}
.dial__num {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 300px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: var(--fx-ink);
  fill-opacity: var(--fill, 0);
  stroke: var(--line-2);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-opacity: var(--outline, 0);
}
.dial__needle {
  stroke: var(--fuchsia);
  stroke-width: 9;
  stroke-linecap: round;
}
.dial__hub {
  fill: var(--fuchsia);
}
.dial__sticker {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%) scale(var(--s, 0)) rotate(var(--r, 0deg));
  will-change: transform;
}
.dial__sticker img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(58, 0, 107, 0.4));
}
.sticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  background: #fff;
  color: var(--purple);
  box-shadow: 0 16px 30px -12px rgba(58, 0, 107, 0.45), 0 0 0 1px rgba(58, 0, 107, 0.08);
}
.sticker-chip i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  color: #fff;
  font-size: 12px;
  background: var(--grad);
}
.sticker-coin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff7af5, #d600ff 45%, #5b0aa3);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.25), 0 18px 30px -12px rgba(214, 0, 255, 0.6);
}
.dial__copy {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  z-index: 4;
  width: min(760px, 100% - 32px);
  transform: translate(-50%, calc((1 - var(--copy, 0)) * 40px));
  opacity: var(--copy, 0);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
  padding: 22px 26px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line);
}
.dial__copy h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--fx-ink);
  letter-spacing: -0.03em;
}
.dial__copy p {
  font-size: 14px;
  color: var(--ink-2);
}
.dial__copy .btn {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- hecho en Colombia */
.assemble .scene__stick {
  display: block;
}
.assemble__head {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  text-align: center;
  transform: translate(-50%, calc(-50% - var(--up, 0) * 33vh));
}
.assemble__title {
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--fx-ink);
  white-space: nowrap;
}
.assemble__title span {
  display: inline-block;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--sc, 1));
  transform-origin: center;
}
.assemble__title .dot {
  color: var(--fuchsia);
}
.assemble__sub {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
  opacity: var(--subo, 0);
}
.assemble__row {
  position: absolute;
  left: 0;
  bottom: 7vh;
  z-index: 3;
  display: flex;
  gap: 16px;
  padding-left: max(16px, (100vw - var(--wrap)) / 2);
  transform: translateX(calc(var(--slide, 0) * -1px));
  will-change: transform;
}
.pcard {
  position: relative;
  flex: none;
  width: clamp(220px, 21vw, 300px);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transform: translateY(calc((1 - var(--rise, 0)) * 85vh));
  will-change: transform;
}
.pcard--fuchsia {
  background: var(--fuchsia);
}
.pcard--lav {
  background: #cdb6f2;
}
.pcard--purple {
  background: var(--purple);
}
.pcard--ink {
  background: #0b0b0f;
}
.pcard--pink {
  background: #ff7af5;
}
.pcard__stack {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 66%;
  aspect-ratio: 1.1;
  transform: translate(-50%, -50%);
}
.pcard__stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
}
.pcard__stack img:first-child {
  transform: rotate(-9deg) translate(-8%, 4%);
}
.pcard__stack img:last-child {
  transform: rotate(5deg) translate(6%, -3%);
}
.pcard__foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--fx-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.pcard--lav .pcard__foot {
  color: var(--purple);
}

/* ---------------------------------------------------------------- ciudades */
.cities {
  padding: 120px 0 140px;
  overflow: hidden;
}
.cities__lead {
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--fuchsia);
}
.cities__lead > span {
  display: block;
}
.cities__lead > span:nth-child(2) {
  padding-left: 1.2em;
}
.cities__list {
  list-style: none;
  margin-top: 0.1em;
}
.cities__list li {
  display: flex;
  align-items: center;
  gap: 0.18em;
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--fx-ink);
  white-space: nowrap;
  transform: translateX(calc(var(--x, 0) * 1px));
  opacity: var(--o, 1);
  will-change: transform;
}
.cities__list li .mono {
  font-size: 9.5px;
  letter-spacing: 0.05em;
  line-height: 1.3;
  font-weight: 400;
  align-self: flex-end;
  margin: 0 0 0.5em 0.4em;
  color: var(--ink-2);
}
.cities__list li .mono.is-left {
  margin: 0 0.4em 0.5em 0;
}
.cities__img {
  display: inline-block;
  width: 1.4em;
  height: 0.8em;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
}
.cities__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------- máscaras 3D (/nosotros) */
.zk {
  --len: 340vh;
}
.zk .scene__stick {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 0;
}
.zk__rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.zk__rule--bottom {
  padding: 10px 0 0;
  border-bottom: 0;
  border-top: 1px solid var(--line-2);
}
.zk__pill {
  position: relative;
  margin: 0 auto;
  width: min(1180px, 100% - 32px);
  aspect-ratio: 3.1;
  max-height: 46vh;
  border-radius: 999px;
  border: 1.5px solid var(--fx-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* Al entrar, la píldora nace pequeña y llena de negro; al crecer, el negro se
 * adelgaza hacia el borde y descubre la palabra (una sombra interior que se encoge). */
.zk__pill {
  transform: scale(0.4, 0.36);
}
.zk__pill::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 60vh var(--fx-ink);
  pointer-events: none;
}
.zk__pill.is-in {
  animation: zkGrow 0.75s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}
.zk__pill.is-in::after {
  animation: zkRing 1s cubic-bezier(0.7, 0, 0.2, 1) 0.7s forwards;
}
@keyframes zkGrow {
  to {
    transform: none;
  }
}
@keyframes zkRing {
  to {
    box-shadow: inset 0 0 0 0 var(--fx-ink);
  }
}
.zk__word {
  position: relative;
  font-size: min(14vw, 25vh);
  font-weight: 400;
  letter-spacing: -0.035em;
  /* Delgada y extendida, como el logotipo de ZiKD. */
  transform: scaleX(1.2) translateY(-0.04em);
  line-height: 1;
  color: var(--fx-ink);
}
.zk__canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .mosaic__cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .mosaic__col {
    gap: 12px;
  }
  .mosaic__col:nth-child(3) {
    display: none;
  }
  .dial__copy {
    grid-template-columns: 1fr;
    gap: 6px;
    bottom: 5vh;
  }
  .dial__sticker {
    max-width: 30vw;
  }
  .typer__float {
    opacity: 0.55;
  }
  .fx-rail {
    display: none;
  }
}
@media (max-width: 560px) {
  .mosaic__col:nth-child(2) {
    margin-top: 40px;
  }
  .tile {
    border-radius: 16px;
  }
  .cities__list li .mono {
    display: none;
  }
  .zk__pill {
    aspect-ratio: 2.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene {
    height: auto;
  }
  .scene__stick {
    position: relative;
    height: auto;
    min-height: 100vh;
  }
  .fx-words .fx-w > span {
    transform: none;
  }
  .typer__mark {
    transform: none;
  }
  .zk__pill {
    transform: none;
  }
  .zk__pill::after {
    box-shadow: none;
  }
}
