/* ---------- Tokens ---------- */
:root {
  --bg: oklch(0.12 0.04 280);
  --bg-1: oklch(0.16 0.05 280);
  --bg-2: oklch(0.20 0.06 280);
  --line: oklch(0.30 0.05 280);
  --line-soft: oklch(0.22 0.04 280);
  --fg: oklch(0.97 0.01 280);
  --fg-dim: oklch(0.78 0.02 280);
  --fg-mute: oklch(0.58 0.03 280);
  --accent: #4231A5;                   /* azul de marca */
  --accent-2: oklch(0.78 0.14 250);   /* azul claro secundario */
  --brand: #4231A5;                    /* azul de marca para fondos sólidos */
  --brand-deep: #1C1445;               /* azul profundo para gradientes */
  --cream: oklch(0.94 0.02 280);
  --radius: 14px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

html { color-scheme: dark; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand); color: var(--bg); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.hairline { height: 1px; background: var(--line-soft); width: 100%; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px;
  border: 1px solid var(--fg); border-radius: 999px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
  mix-blend-mode: difference; transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease;
}
.cursor.hover { width: 46px; height: 46px; background: var(--fg); }
.cursor.text { width: 4px; height: 22px; border-radius: 2px; background: var(--brand); border-color: transparent; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 20px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 12px 10px 18px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.nav-logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--fg-dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: 8px 14px; font-size: 13px;
  background: var(--fg); color: var(--bg); border-radius: 999px;
  transition: transform .2s;
}
.nav-login {
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: -0.005em;
  padding: 6px 4px;
  transition: color .2s;
}
.nav-login:hover { color: var(--fg); }
.nav-lang {
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  background: color-mix(in oklab, var(--bg-1) 78%, transparent);
  transition: color .2s, border-color .2s, background .2s;
}
.nav-lang:hover,
.nav-lang:focus-visible {
  color: var(--fg);
  border-color: var(--line);
  background: color-mix(in oklab, var(--brand) 12%, var(--bg-1));
  outline: none;
}
@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  .nav-inner { gap: 14px; padding: 8px 10px 8px 14px; }
  .nav-login { font-size: 12.5px; padding: 6px 2px; }
  .nav-lang { min-width: 40px; min-height: 32px; font-size: 10.5px; padding: 0 8px; }
  .nav-cta { padding: 7px 12px; font-size: 12.5px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; letter-spacing: -0.005em;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  position: relative; will-change: transform;
}
.btn-primary { background: var(--brand); color: #fff; font-weight: 500; }
.btn-primary:hover { background: oklch(0.78 0.14 48); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-1); border-color: var(--fg-dim); }
.btn .arrow { display: inline-block; transition: transform .3s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(150px, 13vh, 170px) 0 clamp(56px, 7vh, 100px);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--line-soft) 80%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--line-soft) 80%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
  z-index: -2;
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -3;
  filter: blur(90px) saturate(1.1);
  opacity: 0.55;
}
.hero-mesh .blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
}
.blob.b1 { width: 640px; height: 640px; background: var(--brand); top: -10%; left: 10%; }
.blob.b2 { width: 520px; height: 520px; background: var(--accent-2); top: 30%; right: -5%; opacity: 0.7; }
.blob.b3 { width: 420px; height: 420px; background: oklch(0.5 0.08 30); bottom: -10%; left: 30%; opacity: 0.8; }

.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: color-mix(in oklab, var(--bg-1) 80%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 7vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 18ch;
}
.hero h1 .serif { color: var(--brand); }
.hero h1 .line { display: block; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .word > span { display: inline-block; will-change: transform; }

.hero-sub {
  margin-top: 22px;
  max-width: 52ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-dim);
  line-height: 1.55;
}
.hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: clamp(36px, 5vh, 60px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in oklab, var(--fg) 22%, transparent);
  max-width: 820px;
}
.hero-meta .cell .k { font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 40px); color: var(--fg); letter-spacing: -0.02em; line-height: 1; }
.hero-meta .cell .k .suf { font-family: var(--font-sans); font-size: clamp(14px, 1.3vw, 18px); color: var(--brand); margin-left: 2px; font-style: normal; }
.hero-meta .cell .l { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 720px) { .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.hero-render {
  position: absolute;
  right: -80px; bottom: -40px;
  width: 540px; height: 420px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
@media (max-width: 980px) { .hero-render { display: none; } }

/* Architectural plan SVG (now lives inside .how-right) */
.hero-plan {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

/* Hero video full-bleed background — dimmed + tinted so text reads clean */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  filter: brightness(0.7) saturate(1.06) contrast(1.02);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* directional darken: heavier on the left where the headline sits */
    linear-gradient(to right,
      rgba(6, 5, 14, 0.55) 0%,
      rgba(6, 5, 14, 0.22) 48%,
      rgba(6, 5, 14, 0.05) 100%),
    /* bottom darken for hero-meta legibility */
    linear-gradient(to top,
      rgba(6, 5, 14, 0.50) 0%,
      rgba(6, 5, 14, 0.00) 36%);
  pointer-events: none;
}
.hero-plan path, .hero-plan line, .hero-plan rect, .hero-plan circle { stroke: var(--fg-dim); fill: none; stroke-width: 1; }
.hero-plan .lbl { fill: var(--fg-mute); font-family: var(--font-mono); font-size: 9px; stroke: none; letter-spacing: 0.05em; }
.hero-plan .accent { stroke: var(--brand); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-head h2 .serif { color: var(--brand); }
.section-head p { margin-top: 22px; color: var(--fg-dim); font-size: 18px; max-width: 52ch; }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 42px; }
}

/* ---------- VALUE (why 30%) ---------- */

/* Editorial pillar rows — Linear/Vercel style */
.value-rows {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-soft);
  margin-top: 24px;
}
.value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "body art";
  column-gap: 80px;
  row-gap: 32px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.value-row:last-child { border-bottom: none; }
.value-row:nth-child(3) { padding-top: 40px; }
.value-row > .vr-body { grid-area: body; }
.value-row > .vr-art  { grid-area: art; }
.value-row.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "art body";
}

.vr-body { min-width: 0; }

.vr-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid color-mix(in oklab, var(--brand) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}
.vr-eyebrow .vr-idx { font-weight: 600; color: var(--brand); }
.vr-eyebrow .vr-sep { opacity: 0.4; }
.vr-eyebrow .vr-tag { color: var(--fg); letter-spacing: 0.08em; }

.value-row h3 {
  margin-top: 22px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 500;
  max-width: 16ch;
}
.value-row h3 em {
  font-family: var(--font-serif); font-style: italic;
  color: var(--brand); font-weight: 400;
}
.value-row p {
  margin-top: 22px;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 48ch;
}
.vr-bullets {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.vr-bullets li {
  position: relative;
  color: var(--fg);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  padding-left: 22px;
}
.vr-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 12px; height: 1px;
  background: var(--brand);
  opacity: 0.7;
}

.vr-art {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg-1);
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.vr-art svg { width: 100%; height: 100%; display: block; padding: 18px; box-sizing: border-box; }

/* Product video showcase */
.vr-video { background: #0a0a0a; padding: 0; }
.vr-video video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.95);
}
.vr-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.05) 50%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.vr-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in oklab, var(--brand) 18%, transparent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.vr-video-meta {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 3;
  display: flex; flex-direction: column; gap: 4px;
  color: #fff;
}
.vr-video-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
}
.vr-video-cap {
  font-size: 14.5px;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.94);
}

/* ----- Inline animated SVG (replaces video) — dark bg matching nodes-stage ----- */
.vr-anim-host { background: var(--bg); padding: 0; }
.vr-anim-host::before {
  background: linear-gradient(to top,
    color-mix(in oklab, var(--bg) 94%, transparent) 0%,
    transparent 42%
  );
}
.vr-anim-host::after {
  border: 1px solid var(--line-soft);
}
.vr-anim-host .vr-video-meta { color: rgba(255,255,255,0.88); }
.vr-anim-host .vr-video-tag { color: var(--brand); }
.vr-anim-host .vr-video-cap { color: rgba(255,255,255,0.80); }
/* ── SVG dark-theme: CSS overrides beat SVG presentation attributes ── */
.vr-anim-host .vr-anim text { fill: rgba(255,255,255,0.58); }
.vr-anim-host .vr-anim text[fill="#1a1a1a"] { fill: rgba(255,255,255,0.92); }
.vr-anim-host .vr-anim text[fill="#fff"] { fill: #fff; }
.vr-anim-host .vr-anim text[fill="#4231A5"] { fill: #8B7FE8; }
.vr-anim-host .vr-anim text[fill="#22A06B"] { fill: #2ecc8f; }
.vr-anim-host .vr-anim text[fill="#c0392b"] { fill: #e05a4a; }
.vr-anim-host .vr-anim line { stroke: rgba(255,255,255,0.1); }
.vr-anim-host .va2-mesh line { stroke: rgba(93,77,199,0.35); }
.vr-anim-host .va2-line { stroke: rgba(93,77,199,0.65) !important; }
/* Popup / event card rects → elevated dark surface */
.vr-anim-host .vr-anim rect[fill="#fff"] { fill: var(--bg-2); stroke: rgba(93,77,199,0.38); }
/* EMAIL badge (dark fill near-invisible on dark bg) */
.vr-anim-host .vr-anim rect[fill="rgba(0,0,0,0.55)"] { fill: rgba(255,255,255,0.16); }
/* City dots brighter on dark */
.vr-anim-host .va2-cdot { fill: rgba(93,77,199,0.55); }

/* ----- Portrait video card (9:16 video inside a near-square stage) ----- */
.vr-art.vr-video-portrait {
  aspect-ratio: 4 / 5;       /* override .vr-art 4/3 so the video fills the card */
  background: #0a0a0a;
  padding: 0;
}
.vr-video-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.08) 36%,
    rgba(0,0,0,0) 58%);
  pointer-events: none;
  z-index: 3;
}
.vr-video-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in oklab, var(--brand) 18%, transparent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
}
.vr-video-portrait .vr-portrait-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.vr-video-portrait .vr-portrait-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(38px) saturate(1.15) brightness(0.4);
  transform: scale(1.2);
  display: block;
}
.vr-video-portrait .vr-portrait-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 72px;
  box-sizing: border-box;
}
.vr-video-portrait .vr-portrait-frame {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 26px 64px -20px rgba(0,0,0,0.75),
    0 8px 22px -8px rgba(66,49,165,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
.vr-video-portrait .vr-portrait-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vr-video-portrait .vr-video-meta { z-index: 5; }

.vr-anim {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  padding: 0 !important;
}
/* Drawing animation for walls (10s loop) */
.vr-anim .va-draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: va-draw-cycle 10s ease-in-out infinite;
}
.vr-anim .va-wall-outer { animation-delay: 0s; }
.vr-anim .va-w1 { animation-delay: 0.6s; stroke-dasharray: 220; stroke-dashoffset: 220; }
.vr-anim .va-w2 { animation-delay: 0.9s; stroke-dasharray: 180; stroke-dashoffset: 180; }
.vr-anim .va-w3 { animation-delay: 1.2s; stroke-dasharray: 160; stroke-dashoffset: 160; }
@keyframes va-draw-cycle {
  0%   { stroke-dashoffset: var(--len, 1400); opacity: 0.2; }
  6%   { opacity: 1; }
  20%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  95%  { opacity: 0; }
  100% { stroke-dashoffset: var(--len, 1400); opacity: 0; }
}
/* Fade-in elements */
.vr-anim .va-fade { opacity: 0; animation: va-fade-cycle 10s ease-in-out infinite; }
.vr-anim .va-d1 { animation-delay: 1.6s; }
.vr-anim .va-f1 { animation-delay: 2.0s; }
.vr-anim .va-f2 { animation-delay: 2.2s; }
.vr-anim .va-f3 { animation-delay: 2.4s; }
.vr-anim .va-f4 { animation-delay: 2.6s; }
.vr-anim .va-l1 { animation-delay: 2.8s; }
.vr-anim .va-l2 { animation-delay: 2.95s; }
.vr-anim .va-l3 { animation-delay: 3.1s; }
.vr-anim .va-l4 { animation-delay: 3.25s; }
.vr-anim .va-l5 { animation-delay: 3.5s; }
@keyframes va-fade-cycle {
  0%, 15% { opacity: 0; }
  25%     { opacity: 1; }
  85%     { opacity: 1; }
  95%, 100% { opacity: 0; }
}
/* Cursor blip moving along the perimeter (decorative) */
.vr-anim .va-cursor {
  animation: va-cursor-move 10s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #4231A5);
}
@keyframes va-cursor-move {
  0%   { transform: translate(0, 0); opacity: 0; }
  4%   { opacity: 1; }
  20%  { transform: translate(380px, 0); }
  35%  { transform: translate(380px, 280px); }
  50%  { transform: translate(0, 280px); opacity: 1; }
  60%  { transform: translate(0, 0); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 0; }
}
/* Pulsing status dot */
.vr-anim .va-pulse {
  animation: va-pulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #4231A5);
}
@keyframes va-pulse {
  0%, 100% { opacity: 1; r: 3; }
  50%      { opacity: 0.4; r: 4.5; }
}
/* Counter pop on settle (CARD 1 only — explicit IDs) */
.vr-anim text#vaM2,
.vr-anim text#vaCost,
.vr-anim text#vaDays {
  animation: va-num-cycle 10s ease-in-out infinite;
}
@keyframes va-num-cycle {
  0%, 30% { opacity: 0.5; }
  40%     { opacity: 1; }
  85%     { opacity: 1; }
  95%, 100% { opacity: 0; }
}

/* CARD 2 — map with city dots + active popup */
.va2-cdot {
  fill: rgba(66,49,165,0.35);
  transition: fill 0.4s ease, opacity 0.4s ease;
}
.va2-active-dot {
  transition: cx 0.7s cubic-bezier(.2,.8,.2,1), cy 0.7s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 0 8px rgba(93,77,199,0.55));
}
.va2-active-ring {
  transition: cx 0.7s cubic-bezier(.2,.8,.2,1), cy 0.7s cubic-bezier(.2,.8,.2,1);
  animation: va2-ring-pulse 1.8s ease-out infinite;
}
@keyframes va2-ring-pulse {
  0%   { r: 7;  opacity: 0.85; }
  100% { r: 22; opacity: 0; }
}
.va2-line {
  transition: x2 0.7s cubic-bezier(.2,.8,.2,1), y2 0.7s cubic-bezier(.2,.8,.2,1);
}
.va2-popup-fade { animation: va2-popup-flash 0.7s ease-out; }
@keyframes va2-popup-flash {
  0%   { opacity: 0.4; }
  40%  { opacity: 1; }
  100% { opacity: 1; }
}
/* Network mesh — slow breathing to suggest live links */
.va2-mesh { animation: va2-mesh-breathe 4.6s ease-in-out infinite; }
@keyframes va2-mesh-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
/* Bottom row dots — staggered live pulse */
.va2-dot { animation: va2-dot-pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.va2-d1  { animation-delay: 0.0s; }
.va2-d2  { animation-delay: 0.2s; }
.va2-d3  { animation-delay: 0.4s; }
.va2-d4  { animation-delay: 0.6s; }
.va2-d5  { animation-delay: 0.8s; }
.va2-d6  { animation-delay: 1.0s; }
.va2-d7  { animation-delay: 1.2s; }
.va2-d8  { animation-delay: 1.4s; }
.va2-d9  { animation-delay: 1.6s; }
.va2-d10 { animation-delay: 1.8s; }
.va2-d11 { animation-delay: 2.0s; }
@keyframes va2-dot-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

/* CARD 3 — expediente + libro mayor live */
.va3-flash { animation: va3-flash-in 0.8s ease-out; }
@keyframes va3-flash-in {
  0%   { opacity: 0.25; transform: translateY(-6px); }
  60%  { opacity: 1;    transform: translateY(0); }
  100% { opacity: 1;    transform: translateY(0); }
}
/* Top event card subtle ring */
.va3 #va3E0 > g > rect:first-child {
  animation: va3-top-glow 3.2s ease-in-out infinite;
}
@keyframes va3-top-glow {
  0%, 100% { stroke: rgba(66,49,165,0.22); }
  50%      { stroke: rgba(66,49,165,0.5); }
}

/* CARD 4 — dispatch / orchestration */
.va4 .va4-hero {
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.va4 .va4-hero #va4HeroPay {
  transition: opacity 350ms ease-out;
}
.va4 .va4-flash {
  animation: va4-flash 900ms ease-out;
}
@keyframes va4-flash {
  0%   { filter: drop-shadow(0 0 0 rgba(34,160,107,0));    }
  35%  { filter: drop-shadow(0 0 14px rgba(34,160,107,0.65)) brightness(1.08); }
  100% { filter: drop-shadow(0 0 0 rgba(34,160,107,0));    }
}
.va4 .va4-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: va4-pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes va4-pop {
  0%   { transform: scale(0.86); opacity: 0.4; }
  60%  { transform: scale(1.05); opacity: 1;   }
  100% { transform: scale(1);    opacity: 1;   }
}
.va4 .va4-stream-enter {
  animation: va4-stream 420ms ease-out;
}
@keyframes va4-stream {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0);    }
}
.va4 #va4C0Prog {
  transition: width 700ms cubic-bezier(0.65, 0, 0.35, 1);
}
.va4 #va4C0BadgeBg {
  transition: fill 350ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .vr-anim * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .va2-active-dot, .va2-active-ring, .va2-line { transition: none !important; }
}
@media (max-width: 900px) {
  .value-row,
  .value-row.reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "body"
      "art";
    column-gap: 0;
    row-gap: 28px;
    padding: 56px 0;
  }
  .value-row h3 { max-width: 100%; }
  .vr-art { aspect-ratio: 16 / 10; }
  /* Portrait video card stays portrait on mobile — same 4/5 set in base rule */
  .vr-video-portrait .vr-portrait-stage { padding: 14px 14px 64px; }
  .vr-video-portrait .vr-portrait-bg video { filter: blur(28px) saturate(1.1) brightness(0.45); }
}

/* ---------- HOW IT WORKS (timeline) ---------- */
.how-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1100px) { .how-track { grid-template-columns: 1fr; } .how-right { display: none; } }
.how-steps { position: relative; }
.how-step {
  position: relative;
  padding: 28px 0 60px 56px;
  border-left: 1px dashed var(--line);
  margin-left: 10px;
}
.how-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.how-step::before {
  content: ""; position: absolute; left: -7px; top: 32px;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--brand);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--brand) 15%, transparent);
}
.how-step .num { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand); letter-spacing: 0.12em; }
.how-step h4 { margin-top: 12px; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; max-width: 22ch; }
.how-step h4 em { font-family: var(--font-serif); color: var(--brand); }
.how-step p { margin-top: 14px; color: var(--fg-dim); font-size: 15.5px; max-width: 46ch; }

.how-right {
  position: sticky; top: 120px;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 24px;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
}
.how-right svg { width: 100%; height: 100%; }

/* ---------- NODES (map) ---------- */
.nodes {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.nodes-stage {
  position: relative;
  aspect-ratio: 16/7;
  max-width: 980px;
  margin: 40px auto 0;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.nodes-stage svg { width: 100%; height: 100%; }
.node-dot { fill: var(--brand); }
.node-ring { fill: none; stroke: var(--brand); stroke-width: 1; opacity: 0.6; }
.node-label { font-family: var(--font-mono); font-size: 10px; fill: var(--fg-dim); letter-spacing: 0.06em; }
.node-line { stroke: color-mix(in oklab, var(--brand) 50%, transparent); stroke-width: 1; fill: none; stroke-dasharray: 2 3; }

.nodes-legend {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 48px;
}
.legend-cell { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.legend-cell .v { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--fg); letter-spacing: -0.02em; }
.legend-cell .v .suf { font-family: var(--font-sans); font-size: 18px; color: var(--brand); font-style: normal; }
.legend-cell .l { margin-top: 8px; color: var(--fg-dim); font-size: 14px; max-width: 28ch; }
@media (max-width: 720px) { .nodes-legend { grid-template-columns: 1fr; } }

/* ---------- TECH (platform) ---------- */
.tech {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
}
@media (max-width: 960px) { .tech { grid-template-columns: 1fr; } }
.tech-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: radial-gradient(ellipse at 30% 20%, oklch(0.26 0.04 50) 0%, var(--bg-1) 60%);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.tech-visual svg { width: 100%; height: 100%; }
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tech-item {
  padding: 22px 4px;
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 24px;
  transition: padding-left .3s;
  cursor: default;
}
.tech-item:last-child { border-bottom: 1px solid var(--line-soft); }
.tech-item:hover { padding-left: 14px; }
.tech-item .t-num { font-family: var(--font-mono); color: var(--fg-mute); font-size: 12px; min-width: 36px; padding-top: 6px; }
.tech-item h4 { font-size: 22px; letter-spacing: -0.015em; font-weight: 500; }
.tech-item h4 em { font-family: var(--font-serif); color: var(--brand); font-weight: 400; }
.tech-item p { margin-top: 8px; color: var(--fg-dim); font-size: 14.5px; max-width: 44ch; }

/* ---------- WHATSAPP section ---------- */
.wa {
  display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center;
}
@media (max-width: 1000px) { .wa { grid-template-columns: 1fr; } }

.wa-roles {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 600px) { .wa-roles { grid-template-columns: 1fr; } }
.wa-role {
  background: var(--bg-1);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wa-role-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.wa-role-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--brand);
  padding: 3px 7px;
  border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent);
  border-radius: 2px;
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}
.wa-role-name {
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wa-role ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wa-role ul li {
  position: relative;
  padding-left: 16px;
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.45;
}
.wa-role ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  opacity: 0.7;
}
.wa-phone {
  position: relative;
  width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 380/780;
  background: var(--bg-2);
  border-radius: 44px;
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), inset 0 0 0 1px var(--line-soft);
}
.wa-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ee 100%);
  border-radius: 32px;
  width: 100%; height: 100%;
  padding: 40px 16px 16px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  color: #1a1a1a;
}
.wa-header {
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.wa-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 13px;
}
.wa-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.wa-status { font-size: 11px; color: #4a8e3a; font-family: var(--font-mono); }
.wa-msgs { flex: 1; padding: 16px 4px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.wa-msg {
  max-width: 82%; padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px; line-height: 1.45;
  opacity: 0;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.wa-msg.bot { background: #ffffff; align-self: flex-start; border-top-left-radius: 4px; color: #1a1a1a; }
.wa-msg.me { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 4px; color: #1a1a1a; }
.wa-msg small { display: block; margin-top: 4px; font-size: 10px; opacity: 0.55; font-family: var(--font-mono); }
.wa-typing { display: inline-flex; gap: 3px; }
.wa-typing i { width: 5px; height: 5px; border-radius: 999px; background: rgba(0,0,0,0.4); display: inline-block; animation: dot 1.3s infinite ease-in-out; }
.wa-typing i:nth-child(2) { animation-delay: .2s; }
.wa-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; transform: translateY(-2px); } }

/* ---------- PROOF / testimonials ---------- */
.proof-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .proof-row { grid-template-columns: 1fr; } }
.quote {
  padding: 32px 28px;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px;
  transition: transform .3s, border-color .3s;
  will-change: transform;
}
.quote:hover { border-color: var(--line); }
.quote-body { font-family: var(--font-serif); font-size: 22px; line-height: 1.3; color: var(--fg); letter-spacing: -0.005em; }
.quote-body .q { color: var(--brand); }
.quote-who { margin-top: 28px; display: flex; gap: 12px; align-items: center; }
.quote-who .pic { width: 40px; height: 40px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), oklch(0.55 0.1 50)); }
.quote-who .n { font-size: 14px; }
.quote-who .r { font-size: 12px; color: var(--fg-mute); font-family: var(--font-mono); }

/* ---------- PRICING / CTA-like ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan {
  padding: 32px 28px 32px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bg);
  position: relative;
  display: flex; flex-direction: column;
}
.plan.featured { background: var(--bg-1); border-color: var(--brand); }
.plan .pill { position: absolute; top: -12px; left: 24px; padding: 4px 10px; background: var(--brand); color: var(--bg); font-size: 11px; font-family: var(--font-mono); border-radius: 999px; letter-spacing: 0.05em; }
.plan .name { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.plan .area { margin-top: 8px; font-family: var(--font-serif); font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.plan .area .u { font-family: var(--font-sans); font-size: 18px; color: var(--fg-mute); font-style: normal; margin-left: 4px; }
.plan .desc { margin-top: 10px; color: var(--fg-dim); font-size: 14px; max-width: 30ch; }
.plan ul { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.plan ul li { font-size: 14px; color: var(--fg-dim); padding-left: 22px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border: 1px solid var(--brand); border-radius: 2px; transform: rotate(45deg); }
.plan .price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.plan .price .from { font-size: 12px; color: var(--fg-mute); font-family: var(--font-mono); letter-spacing: 0.08em; }
.plan .price .v { font-family: var(--font-serif); font-size: 40px; letter-spacing: -0.02em; }
.plan .price .v .cur { font-family: var(--font-sans); font-size: 16px; color: var(--fg-mute); font-style: normal; margin-right: 4px; }
.plan .cta { margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; text-align: left;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 19px; letter-spacing: -0.01em; font-weight: 500;
  transition: color .2s;
}
.faq-q:hover { color: var(--brand); }
.faq-q .plus { width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1px; background: var(--fg-dim);
  transform: translate(-50%, -50%); transition: transform .3s;
}
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.2,.8,.2,1);
  color: var(--fg-dim); font-size: 15.5px;
}
.faq-a-inner { padding: 0 0 24px; max-width: 56ch; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.cta-band h2 {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1; letter-spacing: -0.035em;
  font-weight: 500; text-align: center;
  max-width: 14ch; margin: 0 auto;
}
.cta-band h2 .serif { color: var(--brand); }
.cta-band .sub { text-align: center; color: var(--fg-dim); margin-top: 24px; font-size: 18px; }
.cta-band .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.cta-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.cta-bg svg { width: 100%; height: 100%; opacity: 0.25; }
.cta-bg .grad {
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse at 30% 50%, var(--brand) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, var(--accent-2) 0%, transparent 50%);
  filter: blur(90px);
  opacity: 0.3;
}

@media (max-width: 720px) {
  .cta-band { padding: 72px 0; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand h4 { font-family: var(--font-serif); font-size: 32px; letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-brand p { color: var(--fg-dim); font-size: 14px; max-width: 34ch; }
.footer-col .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg-dim); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer-socials { display: flex; align-items: center; gap: 12px; }
.footer-socials a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--fg-dim);
  background: color-mix(in oklab, var(--bg-elev) 72%, transparent);
  transition: color .2s, border-color .2s, transform .2s, background .2s;
}
.footer-socials a:hover {
  color: var(--fg);
  border-color: color-mix(in oklab, var(--brand) 45%, var(--line-soft));
  background: color-mix(in oklab, var(--brand) 10%, var(--bg-elev));
  transform: translateY(-1px);
}
.footer-socials svg { display: block; }
.footer-bottom {
  margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-mute); letter-spacing: 0.04em;
}

/* ---------- Reveal baseline ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform .9s; transition-timing-function: cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- OBRAS ---------- */

/* Filter bar */
.obras-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.obras-filters {
  display: flex;
  gap: 6px;
}
.ofilter {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  background: transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.ofilter:hover { color: var(--fg); border-color: var(--line); }
.ofilter.is-active {
  color: var(--fg);
  background: var(--bg-1);
  border-color: var(--line);
}
.ofilter-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.obras-count {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}

/* Tier scaffolding */
.obras-tier { margin-bottom: 12px; }
.obras-tier--reels,
.obras-tier--photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Base card */
.obra {
  display: block;
  text-decoration: none;
  color: inherit;
  will-change: transform;
}

/* Media container */
.obra-media {
  position: relative;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, oklch(0.22 0.05 280) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, oklch(0.25 0.08 285), oklch(0.18 0.06 275));
  transition: border-color .3s;
}
.obras-tier--reels   .obra-media { aspect-ratio: 9/16; }
.obras-tier--photos  .obra-media { aspect-ratio: 4/3; }

/* Media elements */
.obra-media > img,
.obra-media > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

/* Grain overlay */
.obra-media::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg,
    color-mix(in oklab, var(--fg) 40%, transparent) 0 1px,
    transparent 1px 12px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* UI overlay */
.obra-ui {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  pointer-events: none;
}
.obra-ui-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.obra-ui-bot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1);
}
/* Chip pill */
.obra-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 65%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg);
  text-transform: uppercase;
  white-space: nowrap;
}
.obra-chip-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* Bottom gradient scrim */
.obra-ui::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.0) 100%);
  border-radius: 0 0 15px 15px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .35s;
}
/* Meta text */
.obra-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}
.obra-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}

/* Hover state */
.obra:hover .obra-media { border-color: var(--brand); }
.obra:hover .obra-media > img,
.obra:hover .obra-media > video { transform: scale(1.04); }
.obra:hover .obra-ui-bot { opacity: 1; transform: translateY(0); }
.obra:hover .obra-ui::before { opacity: 1; }

/* Filter: hide tiers by class on section */
.obras.filter-video .obras-tier--photos { display: none; }
.obras.filter-foto  .obras-tier--feature,
.obras.filter-foto  .obras-tier--reels   { display: none; }

/* Footer */
.obras-foot {
  margin-top: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
}

/* ---------- FEATURE SPLIT CARD ---------- */
.obra-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color .3s;
}
.obra-feature:hover { border-color: var(--brand); }
.obra-feature:hover .obra-feature-video > video { transform: scale(1.04); }
.obra-feature .obra-feature-video {
  aspect-ratio: 4/3;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--line-soft);
}
.obra-feature-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 28px 24px;
  background: var(--bg-1);
  gap: 20px;
}
.obra-feature-body { display: flex; flex-direction: column; gap: 10px; }
.obra-feature-panel .obra-loc { color: var(--fg-mute); }
.obra-feature-panel .obra-name {
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--fg);
}
.obra-feature-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 4px 0;
}
.obra-feature-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.obra-feature-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.obra-feature-spec-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.obra-feature-spec-v {
  color: var(--fg-dim);
  font-size: 13px;
}
.obra-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--brand);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: gap .25s;
}
.obra-feature:hover .obra-feature-cta { gap: 14px; }
.obra-feature-cta .arrow { display: inline-block; transition: transform .3s; }
.obra-feature:hover .obra-feature-cta .arrow { transform: translateX(4px); }

/* ---------- OBRAS RESPONSIVE ---------- */
/* ≤1100px — panel un poco más angosto */
@media (max-width: 1100px) {
  .obra-feature { grid-template-columns: minmax(0, 1fr) 260px; }
  .obra-feature-panel { padding: 24px 22px 20px; }
}
/* ≤960px — apila: video arriba, panel abajo */
@media (max-width: 960px) {
  .obra-feature { grid-template-columns: 1fr; }
  .obra-feature .obra-feature-video {
    aspect-ratio: 16/9;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .obra-feature-panel {
    padding: 22px 24px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }
  .obra-feature-body { flex: 1 1 auto; }
  .obra-feature-cta { align-self: flex-end; }
}
/* ≤680px — grid de fotos/reels + feature panel a columna */
@media (max-width: 680px) {
  .obras-tier--reels,
  .obras-tier--photos { grid-template-columns: repeat(2, 1fr); }
  .obras-tier--reels {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .obras-tier--reels::-webkit-scrollbar { display: none; }
  .obras-tier--reels .obra {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
  .obras-tier--reels .obra-media { aspect-ratio: 9/16; }
  /* feature panel vuelve a columna en móvil */
  .obra-feature-panel {
    flex-direction: column;
    padding: 20px;
  }
  .obra-feature-cta { align-self: flex-start; }
}
/* ≤480px — ajustes finales para pantallas pequeñas */
@media (max-width: 480px) {
  .obra-feature .obra-feature-video { aspect-ratio: 4/3; }
  .obra-feature-panel { padding: 16px; gap: 14px; }
  .obra-feature-panel .obra-name { font-size: 20px; }
  .obra-feature-specs { gap: 8px; }
  .obras-tier--photos { grid-template-columns: 1fr; }
  .obras-tier--reels .obra { flex: 0 0 75%; }
  .obra-name { font-size: 16px; }
}
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: color-mix(in oklab, var(--bg-1) 90%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: none;
  font-size: 12px;
  min-width: 220px;
}
.tweaks.on { display: block; }
.tweaks h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fg-mute); margin-bottom: 10px; text-transform: uppercase; }
.tweaks .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .sw { width: 20px; height: 20px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.tweaks .sw.on { outline: 2px solid var(--fg); outline-offset: 2px; }
.tweaks button { padding: 4px 8px; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-mono); }
.tweaks button.on { background: var(--fg); color: var(--bg); }
