/* ==========================================================================
   Mantissa — Landing
   Tokens tomados de DESIGN.md (Auros) y adaptados al brief de Mantissa.
   ========================================================================== */

:root {
  /* Superficies (stack teal) */
  --abyss: #012624;
  --deep: #011d1c;
  --kelp: #003734;
  --kelp-soft: rgba(3, 81, 75, 0.5);

  /* Texto */
  --platinum: #ffffff;
  --mist: #edfffe;
  --silver: #bbc7c6;
  --ash: #f2f2f2;
  --slate: #707777;
  --line: rgba(237, 255, 254, 0.1);

  /* Acento */
  --phosphor: #fde9ff;
  --teal: #00827c;
  --aurora: linear-gradient(90deg, #cbfffc 0%, #edfffe 26.25%, #fffdfa 47.57%, #fad1ff 88.96%);

  /* Tipografía */
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Forma */
  --r-card: 16px;
  --r-sm: 6px;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(96px, 12vw, 164px);

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  /* Sin scroll-behavior: smooth: choca con ScrollTrigger. Las anclas se animan en main.js */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--platinum); font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--mist); font-weight: 500; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--mist);
}

:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--mist);
  color: var(--abyss);
  border-radius: var(--r-sm);
  font-size: 14px;
}
.skip-link:focus { top: 16px; }

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

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

.mono { font-family: var(--font-mono); }

/* ---------- Tipos ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.h2 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 18ch;
  text-wrap: balance;
}
.h2 em { letter-spacing: -0.02em; }

.body-lg {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.55;
  max-width: 56ch;
  margin-top: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background-color 200ms ease, background-position 400ms var(--ease-out);
}
.btn svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }

.btn--aurora {
  background: var(--aurora);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: #222222;
}
.btn--aurora:hover { background-position: 100% 0; }

.btn--kelp {
  background: var(--kelp);
  color: var(--platinum);
  min-height: 40px;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.btn--kelp:hover { background: #024a46; }

.btn--block { width: 100%; }

.link-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 200ms ease;
}
.link-ghost:hover { color: var(--platinum); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(1, 38, 36, 0.92);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 80px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--platinum);
}
.brand__mark { width: 30px; height: 30px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.nav__links {
  display: none;
  gap: 32px;
}
.nav__links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
  padding: 8px 0;
  transition: color 200ms ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--platinum); }

.nav__cta { display: none; }

.nav__toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--platinum);
  transition: transform 250ms var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav__mobile {
  background: var(--deep);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.nav__mobile .btn { margin-top: 24px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 140px;
  overflow: hidden;
  isolation: isolate;
}

.hero__orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 58% 42% at 50% 48%, rgba(1, 38, 36, 0.9), transparent 78%),
    linear-gradient(to bottom, transparent 70%, var(--abyss));
  pointer-events: none;
}

.hero__content {
  max-width: 920px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__content .eyebrow { justify-content: center; color: var(--mist); }

.hero__title {
  font-size: clamp(3rem, 1.6rem + 6.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.046em;
  text-wrap: balance;
}
.hero__title em { letter-spacing: -0.025em; font-size: 1.06em; }

.hero__lede {
  margin-top: 32px;
  max-width: 58ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  line-height: 1.55;
  color: var(--silver);
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}

.hero__readout {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.hero__readout b { color: var(--phosphor); font-weight: 500; }
.hero__readout-label { text-transform: uppercase; letter-spacing: 0.15em; font-size: 10px; }

/* ---------- Concepto ---------- */

.concept__grid {
  display: grid;
  gap: 64px;
}
@media (min-width: 1024px) {
  .concept__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; }
}

.bits {
  margin: 0;
  background: var(--kelp);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 48px);
}
.bits__row {
  display: flex;
  gap: 8px;
  overflow: hidden;
}
.bits__group {
  display: flex;
  gap: 2px;
}
.bits__group span {
  display: grid;
  place-items: center;
  width: clamp(14px, 2.1vw, 26px);
  height: clamp(28px, 3.6vw, 44px);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.1vw, 14px);
  border-radius: 3px;
  background: rgba(1, 29, 28, 0.6);
  color: var(--silver);
}
.bits__group--man span {
  background: var(--phosphor);
  color: var(--abyss);
}
.bits__legend {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--silver);
}
.bits__legend span:nth-child(1) { width: clamp(14px, 2.1vw, 26px); overflow: visible; white-space: nowrap; }
.bits__legend span:nth-child(2) { margin-left: clamp(16px, 2vw, 24px); flex: 0 0 auto; width: calc(8 * clamp(14px, 2.1vw, 26px) + 14px); }
.bits__legend .is-accent { color: var(--phosphor); }
@media (max-width: 520px) {
  .bits__legend span:nth-child(2) { width: auto; margin-left: 24px; }
  .bits__legend { justify-content: space-between; }
  .bits__legend span:nth-child(1) { width: auto; }
}

.principles {
  margin-top: 40px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.principles li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.principles .mono { font-size: 12px; color: var(--phosphor); padding-top: 3px; }
.principles strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--platinum);
}
.principles p { margin-top: 4px; }

/* ---------- Kinetic ---------- */

.kinetic {
  background: rgba(1, 29, 28, 0.55);
  padding: var(--section) 0;
}
.kinetic__text {
  font-size: clamp(2.6rem, 1rem + 6.6vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 19ch;
  text-wrap: balance;
}
.kinetic__text .tail {
  display: block;
  color: var(--silver); /* estado inicial; con la animación pasa a lavanda */
  transition: color 900ms ease;
}
.kinetic__text.is-in .tail { color: var(--phosphor); transition-delay: 500ms; }

.pains {
  margin-top: 80px;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) { .pains { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.pain {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: space-between;
  min-height: 200px;
}
.pain p { font-size: 18px; line-height: 1.45; color: var(--silver); }
.pain__tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--silver);
}
.pain--after { background: var(--kelp); border-color: transparent; }
.pain--after p { color: var(--mist); }
.pain--after .pain__tag { color: var(--phosphor); }

/* ---------- Casos ---------- */

.case__meta {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--silver);
  margin-bottom: 14px;
}
.case__title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--mist);
  white-space: nowrap;
}

/* ---------- Proceso ---------- */

.process { background: rgba(1, 29, 28, 0.55); }

.steps {
  margin-top: 72px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  counter-reset: s;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: transparent;
  padding: 40px 28px 48px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 720px) { .step { padding: 48px 32px 56px; } }
.step__num {
  font-size: 12px;
  color: var(--phosphor);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.step h3 { font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.step p { max-width: 36ch; }

/* ---------- Seguridad ---------- */

.secure__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .secure__grid { grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
}
.secure__card {
  background: var(--kelp);
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 64px);
}
.secure__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.secure__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.secure__list svg { width: 24px; height: 24px; color: var(--mist); margin-top: 2px; }
.secure__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--platinum);
  margin-bottom: 6px;
}

/* ---------- Equipo ---------- */

.team__lede { margin-top: 24px; }
.team__grid {
  margin-top: 64px;
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }

.member {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 250ms ease;
}
.member:hover { border-color: rgba(253, 233, 255, 0.35); }
.member__mono {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  background: var(--kelp);
  color: var(--phosphor);
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}
.member h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; }
.member p { font-size: 14px; }

/* ---------- CTA / Form ---------- */

.cta__well {
  background: rgba(1, 29, 28, 0.62);
  border-radius: var(--r-card);
  padding: clamp(40px, 7vw, 120px) clamp(24px, 6vw, 96px);
  display: grid;
  gap: 56px;
}
@media (min-width: 1024px) {
  .cta__well { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
}
.cta__sign {
  margin-top: 48px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--phosphor);
}

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--platinum);
  background: var(--abyss);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 200ms ease, background-color 200ms ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #95a5a4; }
.field input:hover,
.field textarea:hover { border-color: rgba(237, 255, 254, 0.22); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mist);
  background: var(--kelp);
}
.field.has-error input,
.field.has-error textarea { border-color: #ffb4c8; }
.field__error {
  font-size: 13px;
  color: #ffc9d6;
  min-height: 0;
}
.field__error:empty { display: none; }

.form__success {
  font-size: 15px;
  color: var(--mist);
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--kelp);
  border-left: 2px solid var(--phosphor);
}

/* ---------- Footer ---------- */

.footer {
  background: rgba(1, 29, 28, 0.75);
  padding: 96px 0 64px;
  margin-top: var(--section);
}
.footer__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer__legal { grid-column: 1 / -1; }
}
.footer__brand p { margin-top: 16px; color: var(--silver); }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer__nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
  padding: 10px 0;
  transition: color 200ms ease;
}
.footer__nav a:hover { color: var(--platinum); }
.footer__legal {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .kinetic__text .tail { color: var(--phosphor); }
}

/* ---------- Divisores con borde (evita que el fondo de línea asome en el padding) ---------- */
.steps { background: none; gap: 0; }
.step + .step { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .step + .step { border-top: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--line); }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .step:nth-child(n+3) { border-top: 0; }
  .step + .step { border-left: 1px solid var(--line); }
}

/* ==========================================================================
   v3 · Capa 3D y movimiento
   ========================================================================== */

/* Fondo WebGL fijo para toda la página */
.bg-gl {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-gl canvas { display: block; width: 100% !important; height: 100% !important; }
main, .footer { position: relative; z-index: 1; }
/* Auras (estilo auros.global): esferas de luz difusas detrás de todo */
.bg-aura {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.33; /* igual que Auros: más brillo hace perder contraste al texto gris */
}
.hero__content { will-change: transform, opacity; }

/* Marquesina gigante (texto como entorno) */
.marquee {
  overflow: hidden;
  padding: clamp(48px, 8vw, 120px) 0 0;
  pointer-events: none;
  user-select: none;
}
.marquee__track {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5.5rem, 3rem + 13vw, 18.4rem);
  line-height: 1;
  letter-spacing: -0.046em;
  white-space: nowrap;
  color: var(--platinum);
  will-change: transform;
}
.marquee__track .is-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 255, 254, 0.35);
  letter-spacing: -0.01em;
}
.marquee__dot { color: var(--phosphor); }

/* Bits con flip 3D */
.bits__row { perspective: 600px; }
.bits__group span { transform-style: preserve-3d; backface-visibility: hidden; }

/* Números de pasos con dígitos tabulares para el scramble */
.step__num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { transform: none !important; }
}

/* Mobile: el diagrama de bits no debe forzar scroll horizontal */
.concept__grid > * { min-width: 0; }
@media (max-width: 520px) {
  .bits__row { gap: 5px; }
  .bits__group { gap: 1px; }
  .bits__group span { width: 11px; height: 26px; font-size: 9px; }
}

/* Copy v2: evitar cortes feos en titulares y párrafos */
.nowrap { white-space: nowrap; }
.hero__lede, .body-lg, .story__step p, .panel p, .step p { text-wrap: pretty; }

/* ==========================================================================
   v4 · Reestructura: hero más claro, "Lo que construimos", casos en vivo
   ========================================================================== */

/* Hero: el H1 ahora es más largo */
.hero__content { max-width: 1120px; }
.hero__title { font-size: clamp(2.9rem, 1.2rem + 6vw, 5.6rem); }

/* ---------- Lo que construimos ---------- */
.build {
  position: relative;
  background: rgba(1, 29, 28, 0.8); /* más sólido: el aura se intuye sin restar contraste */
  overflow: hidden;
}
.build__inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(88px, 12vh, 112px) 0 clamp(24px, 4vh, 56px);
}
.build__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(24px, 4vh, 56px);
}
.build__head .h2 { max-width: 20ch; }

.build__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.build__viewport::-webkit-scrollbar { display: none; }
.build__track {
  display: flex;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  list-style: none;
}

.panel {
  flex: none;
  width: min(500px, 84vw);
  min-height: clamp(340px, 50vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--kelp);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 28px);
  scroll-snap-align: center;
  transition: background-color 400ms ease;
}
.panel.is-active { background: #014440; }
.panel__viz {
  position: relative;
  flex: 1;
  min-height: 160px;
  margin-bottom: clamp(16px, 3vh, 28px);
  border-radius: var(--r-sm);
  background: var(--deep);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.panel__num { font-size: 12px; color: var(--phosphor); letter-spacing: 0.1em; }
.panel h3 {
  margin-top: 10px;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.panel p { margin-top: 14px; max-width: 40ch; }

/* Las mini animaciones solo corren en el panel visible */
.panel__viz *, .panel__viz *::before { animation-play-state: paused !important; }
.panel.is-active .panel__viz *, .panel.is-active .panel__viz *::before { animation-play-state: running !important; }

/* 01 · chat */
.viz-chat { display: grid; grid-template-columns: 1fr; align-content: center; gap: 10px; width: 100%; padding: 0 12%; }
.vb {
  justify-self: start;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--mist);
  background: #0a4743;
  opacity: 0;
}
.vb--in { justify-self: end; background: var(--kelp); animation: vbIn 6s infinite; }
.vb--typing, .vb--out { grid-row: 2; grid-column: 1; }
.vb--typing { display: flex; gap: 4px; animation: vbTyping 6s infinite; }
.vb--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); animation: dot 0.9s infinite; }
.vb--typing i:nth-child(2) { animation-delay: 0.15s; }
.vb--typing i:nth-child(3) { animation-delay: 0.3s; }
.vb--out { background: var(--phosphor); color: var(--abyss); animation: vbOut 6s infinite; }
@keyframes vbIn { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes vbTyping { 0%, 16% { opacity: 0; } 20%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes vbOut { 0%, 44% { opacity: 0; transform: translateY(8px); } 50%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* 02 · sistema */
.viz-system { display: grid; gap: 8px; width: 78%; }
.viz-system .row {
  display: grid;
  grid-template-columns: 14px 1fr 46px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(0, 55, 52, 0.6);
  animation: rowScan 4.8s infinite;
}
.viz-system .row b { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--slate); animation: rowCheck 4.8s infinite; }
.viz-system .row i { height: 6px; border-radius: 3px; background: rgba(237, 255, 254, 0.18); }
.viz-system .row:nth-child(2) i { width: 70%; }
.viz-system .row:nth-child(3) i { width: 85%; }
.viz-system .row:nth-child(4) i { width: 60%; }
.viz-system .row em { height: 14px; border-radius: 7px; background: var(--slate); animation: rowDone 4.8s infinite; }
.viz-system .row:nth-child(2), .viz-system .row:nth-child(2) * { animation-delay: 0.6s; }
.viz-system .row:nth-child(3), .viz-system .row:nth-child(3) * { animation-delay: 1.2s; }
.viz-system .row:nth-child(4), .viz-system .row:nth-child(4) * { animation-delay: 1.8s; }
@keyframes rowScan { 0%, 100% { background: rgba(0, 55, 52, 0.6); } 8% { background: rgba(253, 233, 255, 0.1); } 18% { background: rgba(0, 55, 52, 0.6); } }
@keyframes rowCheck { 0%, 10% { background: transparent; border-color: var(--slate); } 14%, 80% { background: var(--phosphor); border-color: var(--phosphor); } 92%, 100% { background: transparent; border-color: var(--slate); } }
@keyframes rowDone { 0%, 12% { background: var(--slate); } 16%, 80% { background: var(--teal); } 92%, 100% { background: var(--slate); } }

/* 03 · kiosco */
.viz-kiosk .tablet {
  position: relative;
  width: 150px;
  height: 200px;
  padding: 12px;
  border: 1.5px solid rgba(237, 255, 254, 0.5);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 28px;
  gap: 8px;
}
.viz-kiosk .tile { border-radius: 4px; background: rgba(237, 255, 254, 0.1); }
.viz-kiosk .tile:nth-child(1) { animation: tileSel 4.8s infinite; }
.viz-kiosk .tile:nth-child(4) { animation: tileSel2 4.8s infinite; }
.viz-kiosk .paybar { grid-column: 1 / -1; border-radius: 4px; background: rgba(237, 255, 254, 0.1); overflow: hidden; }
.viz-kiosk .paybar span { display: block; height: 100%; background: var(--phosphor); transform-origin: 0 50%; transform: scaleX(0); animation: payFill 4.8s infinite; }
.viz-kiosk .tap {
  position: absolute;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid #fff;
  animation: tapMove 4.8s infinite;
}
@keyframes tileSel { 0%, 20% { background: rgba(237, 255, 254, 0.1); box-shadow: none; } 24%, 85% { background: rgba(253, 233, 255, 0.25); box-shadow: inset 0 0 0 1.5px var(--phosphor); } 95%, 100% { background: rgba(237, 255, 254, 0.1); box-shadow: none; } }
@keyframes tileSel2 { 0%, 44% { background: rgba(237, 255, 254, 0.1); box-shadow: none; } 48%, 85% { background: rgba(253, 233, 255, 0.25); box-shadow: inset 0 0 0 1.5px var(--phosphor); } 95%, 100% { background: rgba(237, 255, 254, 0.1); box-shadow: none; } }
@keyframes payFill { 0%, 66% { transform: scaleX(0); } 82%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes tapMove {
  0%   { left: 50%; top: 110%; opacity: 0; transform: scale(1); }
  12%  { left: 30%; top: 30%; opacity: 1; transform: scale(1); }
  20%  { left: 30%; top: 30%; transform: scale(0.75); }
  26%  { left: 30%; top: 30%; transform: scale(1); }
  38%  { left: 70%; top: 58%; transform: scale(1); }
  44%  { left: 70%; top: 58%; transform: scale(0.75); }
  50%  { left: 70%; top: 58%; transform: scale(1); }
  62%  { left: 50%; top: 90%; transform: scale(1); }
  68%  { left: 50%; top: 90%; transform: scale(0.75); opacity: 1; }
  80%, 100% { left: 50%; top: 90%; transform: scale(1); opacity: 0; }
}

/* 04 · integraciones */
.viz-sync { display: flex; align-items: center; width: 80%; }
.viz-sync .node {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(237, 255, 254, 0.45);
  font-family: var(--font-mono);
  color: var(--mist);
  background: var(--kelp);
}
.viz-sync .node:last-child { animation: nodeGlow 2.4s infinite; }
.viz-sync .wire { position: relative; flex: 1; height: 1px; background: rgba(237, 255, 254, 0.25); }
.viz-sync .wire i { position: absolute; inset: 0; animation: packet 2.4s linear infinite; }
.viz-sync .wire i::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--phosphor);
}
.viz-sync .wire i:nth-child(2) { animation-delay: 0.8s; }
.viz-sync .wire i:nth-child(3) { animation-delay: 1.6s; }
@keyframes packet { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(calc(100% - 9px)); opacity: 0; } }
@keyframes nodeGlow { 0%, 70%, 100% { border-color: rgba(237, 255, 254, 0.45); } 85% { border-color: var(--phosphor); } }

/* 05 · IA aplicada */
.viz-ai .photo {
  --dish: radial-gradient(circle at 44% 46%, #fde9ff 0 7%, transparent 7.5%),
          radial-gradient(circle at 58% 56%, #cbfffc 0 6%, transparent 6.5%),
          radial-gradient(ellipse 30% 28% at 50% 52%, #00827c 0 99%, transparent 100%),
          radial-gradient(ellipse 42% 40% at 50% 52%, #edfffe 0 99%, transparent 100%),
          #011d1c;
  position: relative;
  display: block;
  width: 220px;
  height: 148px;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.viz-ai .photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dish);
  filter: grayscale(1) brightness(0.55) blur(1px);
}
.viz-ai .photo__after {
  position: absolute;
  inset: 0;
  background: var(--dish);
  filter: saturate(1.3) brightness(1.08);
  clip-path: inset(0 100% 0 0);
  animation: aiReveal 4s ease-in-out infinite;
}
.viz-ai .scan {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: var(--phosphor);
  box-shadow: 0 0 12px rgba(253, 233, 255, 0.8);
  animation: aiScan 4s ease-in-out infinite;
}
@keyframes aiReveal { 0%, 10% { clip-path: inset(0 100% 0 0); } 60%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes aiScan { 0%, 10% { transform: translateX(0); opacity: 1; } 60% { transform: translateX(218px); opacity: 1; } 66%, 100% { transform: translateX(218px); opacity: 0; } }

/* ---------- Casos: historia con dispositivo fijo ---------- */
.story { margin-top: 56px; display: grid; gap: 0; }
.story__step { padding: 40px 0; border-top: 1px solid var(--line); }
.story__step p { margin-top: 18px; max-width: 46ch; font-size: 17px; }
.story__stage { display: none; }
.story__inline { margin-top: 28px; }

@media (min-width: 1024px) {
  .story { grid-template-columns: 1fr minmax(360px, 440px); gap: 80px; align-items: start; }
  /* espacio para que el dispositivo siga centrado en el último caso */
  .story__steps { padding-bottom: 12vh; }
  .story__step {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    opacity: 0.3;
    transition: opacity 500ms ease;
  }
  .story__step.is-active { opacity: 1; }
  .story__step .case__title { font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem); }
  .story__inline { display: none; }
  .story__stage {
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    height: 100vh;
    perspective: 1200px;
  }
}

.device {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 10 / 16;
  max-height: 78vh;
  margin: 0 auto;
  background: var(--deep);
  border: 1px solid rgba(237, 255, 254, 0.14);
  border-radius: var(--r-card);
  overflow: hidden;
}
.device--inline { max-width: 360px; max-height: none; margin: 0; }
.device__bar {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.device__dots { display: flex; gap: 6px; }
.device__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(237, 255, 254, 0.18); }
.device__label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); }
.device__pager {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.device__pager i { width: 18px; height: 2px; border-radius: 1px; background: rgba(237, 255, 254, 0.2); transition: background-color 300ms ease, width 300ms ease; }
.device__pager i.is-on { width: 30px; background: var(--phosphor); }

.screen {
  position: absolute;
  inset: 40px 0 36px;
  padding: 16px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 450ms ease, transform 550ms var(--ease-out);
  pointer-events: none;
}
.screen.is-active { opacity: 1; transform: none; }
.device--inline .screen { inset: 40px 0 0; }

/* Chat */
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat__avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #cbfffc); }
.chat__head b { display: block; color: var(--platinum); font-weight: 500; font-size: 14px; }
.chat__head small { font-size: 11px; color: var(--silver); }
.chat__body { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.msg {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
}
.msg--out { align-self: flex-end; background: var(--kelp); }
.msg--in { align-self: flex-start; background: #0a3f3b; color: var(--mist); }
.msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); animation: dot 0.9s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
.msg--file { display: flex; align-items: center; gap: 10px; background: var(--phosphor); color: var(--abyss); }
.msg--file b { display: block; font-weight: 500; }
.msg--file small { font-size: 11px; opacity: 0.75; }
.file__icon { width: 26px; height: 32px; border-radius: 3px; background: var(--abyss); opacity: 0.85; flex: none; }
.file__check { margin-left: 4px; font-weight: 600; }
.receipt {
  display: block;
  width: 120px;
  padding: 10px 10px 12px;
  background: #f3f1ea;
  color: #2a2a2a;
  font-family: var(--font-mono);
  font-size: 9px;
  border-radius: 3px;
}
.receipt b { display: block; text-align: center; letter-spacing: 0.2em; margin-bottom: 6px; }
.receipt i { display: block; height: 4px; margin: 5px 0; background: #c9c5ba; border-radius: 2px; }
.receipt i.short { width: 60%; }
.receipt em { display: block; margin-top: 8px; padding-top: 6px; border-top: 1px dashed #999; font-style: normal; font-weight: 600; }

.screen--chat.is-active .msg--ticket { animation: msgIn 0.45s 0.3s var(--ease-out) forwards; }
.screen--chat.is-active .msg--typing { animation: msgIn 0.3s 1.1s forwards, msgGone 0.25s 2.4s forwards; }
.screen--chat.is-active .msg--text { animation: msgIn 0.45s 2.5s var(--ease-out) forwards; }
.screen--chat.is-active .msg--file { animation: msgIn 0.5s 3.7s var(--ease-out) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
@keyframes msgGone { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: -5px 0; } }

/* Kiosco */
.kiosk__head b { display: block; color: var(--platinum); font-weight: 500; font-size: 16px; }
.kiosk__head small { font-size: 12px; color: var(--silver); }
.kiosk__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ktile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--kelp);
}
.ktile i { width: 55%; aspect-ratio: 1; margin: 6px auto 0; border-radius: 50%; background: rgba(237, 255, 254, 0.12); }
.ktile b { height: 6px; width: 70%; border-radius: 3px; background: rgba(237, 255, 254, 0.25); }
.kiosk__cart {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--phosphor);
  color: var(--abyss);
  font-size: 13px;
  opacity: 0;
  transform: translateY(20px);
}
.kiosk__cart b { font-weight: 600; }
.kiosk__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(1, 29, 28, 0.94);
  opacity: 0;
}
.kiosk__state {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--platinum);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: scale(0.95);
}
.kiosk__state i {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--phosphor);
  color: var(--abyss);
  font-style: normal;
  font-size: 24px;
}
.kiosk__finger {
  position: absolute;
  left: 50%; top: 110%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 1.5px solid #fff;
  opacity: 0;
}
.screen--kiosk.is-active .kiosk__finger { animation: finger 4.6s var(--ease-out) forwards; }
.screen--kiosk.is-active .ktile:nth-child(1) { animation: kSel 0.3s 1s forwards; }
.screen--kiosk.is-active .ktile:nth-child(4) { animation: kSel 0.3s 2.15s forwards; }
.screen--kiosk.is-active .kiosk__cart { animation: msgIn 0.4s 2.3s var(--ease-out) forwards; }
.screen--kiosk.is-active .kiosk__overlay { animation: msgIn 0.3s 3.35s forwards; }
.screen--kiosk.is-active .kiosk__state--ticket { animation: msgIn 0.3s 3.4s forwards, msgFade 0.25s 4.3s forwards; }
.screen--kiosk.is-active .kiosk__state--paid { animation: msgIn 0.4s 4.45s var(--ease-out) forwards; }
@keyframes kSel { to { box-shadow: inset 0 0 0 2px var(--phosphor); background: #0b4c47; } }
@keyframes msgFade { to { opacity: 0; } }
@keyframes finger {
  0%   { left: 50%; top: 105%; opacity: 0; transform: scale(1); }
  15%  { left: 28%; top: 30%; opacity: 1; transform: scale(1); }
  22%  { left: 28%; top: 30%; transform: scale(0.75); }
  28%  { left: 28%; top: 30%; transform: scale(1); }
  40%  { left: 72%; top: 58%; transform: scale(1); }
  47%  { left: 72%; top: 58%; transform: scale(0.75); }
  53%  { left: 72%; top: 58%; transform: scale(1); }
  65%  { left: 72%; top: 92%; transform: scale(1); }
  72%  { left: 72%; top: 92%; transform: scale(0.75); opacity: 1; }
  80%, 100% { left: 72%; top: 92%; transform: scale(1); opacity: 0; }
}

/* MENURA */
.dish {
  position: relative;
  aspect-ratio: 320 / 220;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.dish__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dish__img--before { filter: grayscale(0.85) brightness(0.55) contrast(0.9) blur(0.6px); }
.dish__img--after { filter: saturate(1.25) contrast(1.05) brightness(1.06); clip-path: inset(0 0 0 50%); }
.dish__handle {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--phosphor);
  box-shadow: 0 0 12px rgba(253, 233, 255, 0.7);
}
.screen--menura.is-active .dish__img--after { animation: sweepClip 5s ease-in-out infinite alternate; }
.screen--menura.is-active .dish__handle { animation: sweepHandle 5s ease-in-out infinite alternate; }
@keyframes sweepClip { from { clip-path: inset(0 0 0 85%); } to { clip-path: inset(0 0 0 12%); } }
@keyframes sweepHandle { from { left: 85%; } to { left: 12%; } }
.dish__tag {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(1, 29, 28, 0.75);
  color: var(--mist);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dish__tag--l { left: 10px; }
.dish__tag--r { right: 10px; }
.menura__menu {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--kelp);
}
.menura__menu b { display: block; color: var(--platinum); font-weight: 500; font-size: 14px; }
.menura__apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.menura__apps i {
  font-style: normal;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--mist);
}

@media (prefers-reduced-motion: reduce) {
  .panel__viz *, .panel__viz *::before,
  .dish__img--after, .dish__handle, .kiosk__finger, .msg--typing i { animation: none !important; }
  .vb--in, .vb--out, .msg, .kiosk__cart { opacity: 1; transform: none; }
  .msg--typing, .kiosk__state--ticket, .vb--typing, .kiosk__finger { display: none; }
  .viz-ai .photo__after { clip-path: none; }
  .viz-ai .scan { display: none; }
}


@media (max-width: 600px) {
  .build__head { flex-direction: column; align-items: flex-start; }
}

/* MENURA: enlaces a menura.digital */
.case__link { display: inline-flex; align-items: center; gap: 0.25em; transition: color 200ms ease; }
.case__link svg { width: 0.42em; height: 0.42em; transition: transform 200ms var(--ease-out); }
.case__link:hover { color: var(--phosphor); }
.case__link:hover svg { transform: translate(2px, -2px); }
.case__visit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--phosphor);
  border-bottom: 1px solid rgba(253, 233, 255, 0.35);
  transition: border-color 200ms ease;
}
.case__visit svg { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }
.case__visit:hover { border-color: var(--phosphor); }
.case__visit:hover svg { transform: translate(2px, -2px); }
.screen--menura.is-active { pointer-events: auto; }
.screen__link { display: block; color: inherit; cursor: pointer; }
.screen__link:hover .dish { box-shadow: 0 0 0 1px var(--phosphor); }
.menura__url { display: block; margin-top: 10px; font-size: 11px; color: var(--phosphor); letter-spacing: 0.04em; }

/* ---------- Lo que construimos: bento ---------- */
.build__inner {
  min-height: 0;
  display: block;
  padding: var(--section) 0;
}
.build__head { margin-bottom: clamp(40px, 5vw, 64px); }
.build__viewport { overflow: visible; scroll-snap-type: none; }
.build__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: auto;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.panel {
  width: auto;
  min-height: 380px;
}
/* Todas las ilustraciones miden lo mismo para que los títulos queden alineados */
.panel__viz { flex: none; height: 230px; min-height: 0; }
@media (min-width: 720px) {
  .build__track { grid-template-columns: repeat(2, 1fr); }
  .panel--wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .build__track { grid-template-columns: repeat(6, 1fr); }
  .panel { grid-column: span 2; min-height: 400px; }
  .panel--wide { grid-column: span 4; }
}

/* Formulario: aviso de error de envío y campo trampa */
.form__fail {
  font-size: 15px;
  color: #ffc9d6;
  padding: 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 180, 200, 0.08);
  border-left: 2px solid #ffb4c8;
}
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form { position: relative; }
