/* ───────────────────────────────────────────────────────────────
   Nexur · Prototipos — mobile first
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #0f0d0b;
  --bg-2: #18150f;
  --bg-3: #221e17;
  --ink: #f4ede3;
  --mute: rgba(244, 237, 227, 0.64);
  --faint: rgba(244, 237, 227, 0.36);
  --line: rgba(244, 237, 227, 0.12);
  --unas: #ff7d9c;
  --barberia: #ef5a3c;
  --pilates: #8fd0a8;
  --retail: #f2d14b;
  --hero-c: var(--unas);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: 16px;
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  font-optical-sizing: auto;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }

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

/* grano de película */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--unas), var(--barberia), var(--pilates), var(--retail));
}

/* ─────────── encabezado ─────────── */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) var(--pad) 12px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled {
  background: rgba(15, 13, 11, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand__mark { width: 26px; height: 26px; color: var(--hero-c); transition: color 0.8s; }
.brand b { font-weight: 400; color: var(--mute); }
.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--mute);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px;
  white-space: nowrap;
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pilates); box-shadow: 0 0 0 0 rgba(143, 208, 168, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(143, 208, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 208, 168, 0); } }

/* ─────────── hero ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 104px var(--pad) 64px;
  isolation: isolate;
  overflow: hidden;
}

.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blobs span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  transition: background 1.2s var(--ease-io);
}
.blobs span:nth-child(1) {
  width: 120vw; height: 120vw; max-width: 900px; max-height: 900px;
  top: -30vw; right: -50vw;
  background: radial-gradient(closest-side, var(--hero-c), transparent);
  animation: drift1 14s var(--ease-io) infinite alternate;
}
.blobs span:nth-child(2) {
  width: 90vw; height: 90vw; max-width: 700px; max-height: 700px;
  bottom: 10%; left: -45vw;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--hero-c) 40%, #3b2bff), transparent);
  opacity: 0.35;
  animation: drift2 18s var(--ease-io) infinite alternate;
}
.blobs span:nth-child(3) {
  width: 50vw; height: 50vw; max-width: 380px; max-height: 380px;
  top: 30%; right: 5%;
  background: radial-gradient(closest-side, rgba(244, 237, 227, 0.5), transparent);
  opacity: 0.18;
  animation: drift1 11s var(--ease-io) infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(14vw, -8vh) scale(0.9); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.hero__title {
  font-size: clamp(3.1rem, 15.5vw, 9.5rem);
  font-weight: 750;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.04em 0 0.08em; margin-bottom: -0.08em; }
.hero__title .w { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) .w { animation-delay: 0.1s; }
.hero__title .line:nth-child(3) .w { animation-delay: 0.32s; }
.hero__title .line:nth-child(4) .w { animation-delay: 0.42s; }
.hero__title em { font-size: 1.08em; letter-spacing: -0.02em; color: var(--ink); }
@keyframes rise { to { transform: translateY(0); } }

.hero__title .rotor { height: 1.02em; padding: 0; margin: 0 0 0.02em; position: relative; }
.rotor__track {
  display: block;
  transform: translateY(calc(var(--i, 0) * -1.02em));
  transition: transform 0.9s var(--ease-out);
  animation: rise 1s var(--ease-out) 0.2s backwards;
}
.rotor__word {
  display: block;
  height: 1.02em;
  line-height: 1.02em;
  color: var(--hero-c);
  opacity: 0;
  transition: color 0.8s, opacity 0.5s;
}
html:not(.js) .rotor__word:first-child,
.rotor__word.is-on { opacity: 1; transition: color 0.8s, opacity 0.5s 0.15s; }

.hero__lead {
  max-width: 34ch;
  margin-top: 26px;
  font-size: 1.05rem;
  color: var(--mute);
  line-height: 1.5;
}

.hero__cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 30px;
  padding: 10px 10px 10px 22px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 650;
  font-size: 1rem;
  transition: transform 0.4s var(--ease-out), background 0.4s;
  will-change: transform;
}
.hero__cta svg {
  width: 40px; height: 40px; padding: 9px;
  border-radius: 50%;
  background: var(--hero-c);
  color: var(--bg);
  transition: background 0.8s, transform 0.4s var(--ease-out);
}
.hero__cta:hover svg { transform: translateY(3px); }
.hero__cta:active { transform: scale(0.97); }

.hero__scroll { position: absolute; right: var(--pad); bottom: 70px; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; width: 1px; height: 40%; background: var(--ink); animation: scrolly 1.8s var(--ease-io) infinite; }
@keyframes scrolly { from { top: -40%; } to { top: 100%; } }

/* ─────────── marquesina ─────────── */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  transform: rotate(-2.2deg) scale(1.04);
  margin: 8px 0 24px;
  padding: 14px 0;
  border-block: 1px solid rgba(0, 0, 0, 0.2);
}
.marquee__row {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee__row i { font-style: normal; font-size: 1rem; color: var(--barberia); }
.marquee__row i:nth-of-type(4n + 2) { color: var(--unas); }
.marquee__row i:nth-of-type(4n + 3) { color: #3f8f5f; }
.marquee__row i:nth-of-type(4n) { color: #b2930a; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── cabeceras de sección ─────────── */
.section-head { padding: 0 var(--pad); margin-bottom: 28px; }
.section-head__n {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.16em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(2.3rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.section-head h2 em { color: var(--mute); }
.section-head p { margin-top: 14px; color: var(--mute); max-width: 44ch; }

/* ─────────── tarjetas ─────────── */
.demos { padding: 72px 0 40px; }
.cards {
  display: grid;
  gap: 14px;
  padding: 0 var(--pad);
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
  will-change: transform;
}
.card__glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--c) 30%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card.is-focus .card__glow,
.card:hover .card__glow { opacity: 1; }
.card.is-focus,
.card:hover { border-color: color-mix(in oklab, var(--c) 55%, transparent); }
.card:active { transform: perspective(900px) scale(0.985); }

.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--c);
}
.card__tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--c);
  color: var(--c-ink);
}

.card__art {
  position: relative;
  border-radius: 20px;
  aspect-ratio: 200 / 150;
  background:
    radial-gradient(120% 90% at 50% 110%, color-mix(in oklab, var(--c) 32%, transparent), transparent 70%),
    color-mix(in oklab, var(--c) 9%, var(--bg-3));
  overflow: hidden;
}
.card__art::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--c) 35%, transparent) 1px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.art { position: relative; z-index: 1; width: 100%; height: 100%; }
.art * { animation-play-state: paused; }
.card.is-visible .art * { animation-play-state: running; }

.card__body h3 {
  font-size: clamp(1.7rem, 7.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.card__body h3 em { color: var(--c); font-size: 1.08em; }

.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 13px;
  color: var(--mute);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.card__url { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__url span { color: var(--faint); font-weight: 400; }
.card__go {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: var(--c-ink);
  transition: transform 0.5s var(--ease-out);
}
.card__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-out); }
.card:hover .card__go,
.card.is-focus .card__go { transform: rotate(45deg) scale(1.06); }

/* ─── piezas comunes de ilustración ─── */
.fill-c { fill: var(--c); }
.fill-cream { fill: var(--ink); }
.fill-ink { fill: var(--c-ink); }
.fill-ink-soft { fill: rgba(244, 237, 227, 0.7); }
.fill-shine { fill: rgba(255, 255, 255, 0.45); }
.line-cream { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.line-ink { stroke: var(--c-ink); stroke-width: 3; fill: none; stroke-linecap: round; }
.thick { stroke-width: 5; }

/* uñas */
.art--unas .stroke-paint {
  fill: none; stroke: var(--c); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 230; stroke-dashoffset: 230;
  animation: paint 4s var(--ease-io) infinite;
}
@keyframes paint { 0% { stroke-dashoffset: 230; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -230; } }
.art--unas .bottle { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 4s var(--ease-io) infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6px); } }
.art--unas .sparkles path { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.art--unas .sparkles path:nth-child(2) { animation-delay: 0.8s; }
.art--unas .sparkles path:nth-child(3) { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.3) rotate(0); opacity: 0.2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* barbería */
.art--barberia .blade { transform-origin: 0 0; animation: snipA 1.6s var(--ease-io) infinite; }
.art--barberia .blade--b { animation-name: snipB; }
@keyframes snipA { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
@keyframes snipB { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-10deg); } }
.art--barberia .scissors { animation: none; }

/* pilates */
.art--pilates .breath { fill: var(--c); transform-box: fill-box; transform-origin: center; animation: breathe 5s var(--ease-io) infinite; }
.art--pilates .breath--3 { opacity: 0.14; }
.art--pilates .breath--2 { opacity: 0.24; animation-delay: 0.25s; }
.art--pilates .breath--1 { opacity: 0.9; animation-delay: 0.5s; }
@keyframes breathe { 0%, 100% { transform: scale(0.82); } 50% { transform: scale(1.06); } }
.art--pilates .carriage { animation: slide 5s var(--ease-io) infinite; }
.art--pilates .spring { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; opacity: 0.8; transform-box: fill-box; transform-origin: 100% 50%; animation: stretch 5s var(--ease-io) infinite; }
@keyframes slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-34px); } }
@keyframes stretch { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.74); } }

/* retail */
.art--retail .bag { transform-box: fill-box; transform-origin: 50% 100%; animation: hop 2.8s var(--ease-out) infinite; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) scale(1, 1); } 10% { transform: translateY(0) scale(1.06, 0.94); } 25% { transform: translateY(-14px) scale(0.97, 1.03); } 40% { transform: translateY(0) scale(1.03, 0.97); } }
.art--retail .receipt { animation: print 2.8s var(--ease-io) infinite; }
@keyframes print { 0% { transform: translateY(26px); opacity: 0; } 30%, 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
.art--retail .pricetag { transform-box: fill-box; transform-origin: 0% 50%; animation: swing 2.8s var(--ease-io) infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } }

/* ─────────── cómo funciona ─────────── */
.how { padding: 80px 0 40px; }
.how__grid { display: grid; gap: 48px; padding: 0 var(--pad); position: relative; isolation: isolate; }
.how__grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%; left: 50%;
  width: min(560px, 120vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--hero-c) 28%, transparent), transparent);
  transition: background 1.2s;
  pointer-events: none;
}

.phone {
  justify-self: center;
  width: min(290px, 76vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #2c2720, #0b0a08);
  box-shadow:
    0 0 0 1px rgba(244, 237, 227, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background:
    radial-gradient(80% 50% at 20% 10%, color-mix(in oklab, var(--unas) 70%, transparent), transparent 70%),
    radial-gradient(70% 50% at 90% 40%, color-mix(in oklab, var(--barberia) 60%, transparent), transparent 70%),
    radial-gradient(80% 50% at 30% 90%, color-mix(in oklab, var(--pilates) 60%, transparent), transparent 70%),
    radial-gradient(60% 40% at 90% 100%, color-mix(in oklab, var(--retail) 60%, transparent), transparent 70%),
    #241a1c;
}
.phone__screen::before { content: ""; position: absolute; inset: 0; background: rgba(10, 8, 6, 0.28); }
.phone__island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 2; }
.phone__clock { position: relative; z-index: 1; text-align: center; padding-top: 56px; color: #fff; }
.phone__time { display: block; font-size: 4.2rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.phone__date { display: block; margin-top: 6px; font-size: 0.82rem; opacity: 0.85; }

.notifs { position: absolute; z-index: 1; left: 10px; right: 10px; top: 46%; display: grid; gap: 8px; }
.notif {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(250, 246, 240, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #17130f;
  font-size: 12.5px;
  line-height: 1.3;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4);
}
.notif__icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--c);
  color: #17130f;
  font-weight: 800;
  font-size: 14px;
}
.notif strong { display: flex; justify-content: space-between; gap: 8px; font-weight: 650; }
.notif small { font-weight: 400; opacity: 0.55; }
.notif p { margin-top: 1px; }
.js .notif { display: none; }
.js .notif.is-shown { display: flex; animation: notifIn 0.7s var(--ease-out); }
.js .notif.is-shown:nth-child(n + 4) { display: none; }
@keyframes notifIn { from { transform: translateY(-24px) scale(0.92); opacity: 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step {
  display: flex; gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), transparent);
}
.step__n {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--bg);
  background: var(--unas);
}
.step:nth-child(2) .step__n { background: var(--pilates); }
.step:nth-child(3) .step__n { background: var(--retail); }
.step h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.step p { margin-top: 4px; color: var(--mute); font-size: 0.95rem; }

/* ─────────── cierre ─────────── */
.outro { padding: 96px var(--pad) 80px; text-align: center; }
.outro__kicker { color: var(--mute); font-size: 0.95rem; letter-spacing: 0.04em; }
.outro__big {
  margin-top: 8px;
  font-size: clamp(2.8rem, 13vw, 7.5rem);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.outro__big em {
  display: inline-block;
  background: linear-gradient(90deg, var(--unas), var(--barberia), var(--retail), var(--pilates), var(--unas));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.08em 0.06em;
  animation: hue 8s linear infinite;
}
@keyframes hue { to { background-position: 300% 0; } }
.outro__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.outro__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.outro__link:hover { background: var(--ink); color: var(--bg); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

/* ─────────── portal de transición ─────────── */
.portal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--pc, var(--ink));
  color: var(--pc-ink, var(--bg));
  clip-path: circle(0 at var(--px, 50%) var(--py, 50%));
  pointer-events: none;
  visibility: hidden;
}
.portal.is-open {
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(150vmax at var(--px, 50%) var(--py, 50%));
  transition: clip-path 0.75s var(--ease-io);
}
.portal__label {
  font-size: clamp(1.6rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(16px);
}
.portal.is-open .portal__label { opacity: 1; transform: none; transition: opacity 0.4s 0.35s, transform 0.6s 0.35s var(--ease-out); }

/* ─────────── reveals ─────────── */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 0.9s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.4s; }
.js .hero .reveal { transition-delay: 0.55s; }
.js .hero .hero__cta.reveal { transition-delay: 0.7s; }

/* ─────────── tablet / escritorio ─────────── */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .hero { padding-bottom: 88px; }
  .hero__lead { font-size: 1.2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card { padding: 22px; }
  .marquee__row { font-size: 2.6rem; }
  .how__grid { grid-template-columns: auto 1fr; align-items: center; gap: 56px; }
  .how__grid::before { left: calc(var(--pad) + 145px); }
  .steps { max-width: 520px; }
}

@media (min-width: 1180px) {
  :root { --pad: 56px; }
  .hero__title { font-size: clamp(6rem, 10vw, 10rem); }
  .hero { padding-bottom: 96px; }
  .hero__lead { position: absolute; right: var(--pad); bottom: 110px; max-width: 30ch; }
  .hero__cta { margin-top: 40px; }
  .hero__scroll { display: none; }
  .blobs span:nth-child(1) { top: -18vw; right: -14vw; width: 70vw; height: 70vw; }
  .blobs span:nth-child(2) { left: -20vw; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card__body h3 { font-size: 1.85rem; }
  .how__grid { grid-template-columns: 1fr 1fr; justify-items: center; }
  .how__grid::before { left: 25%; }
  .demos { padding-top: 96px; }
}

@media (hover: none) {
  .card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { animation: none; }
  .hero__title .w { transform: none; }
  .art * { animation: none !important; }
  .art--unas .stroke-paint { stroke-dashoffset: 0; }
  .marquee__row { animation: none; }
}
