/* ═══════════════════════════════════════════════════════════════
   RESET / TOKENS
═══════════════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Depth palette — near-black with cool undertone */
  --bg-0: #05060b;
  --bg-1: #080a12;
  --bg-2: #0b0d18;
  --bg-3: #10131e;
  --bg-elev: #141826;

  /* Ink */
  --ink-100: #f5f7fc;
  --ink-80:  #d3d7e0;
  --ink-60:  #9098aa;
  --ink-40:  #5a6072;
  --ink-20:  #2b2f3d;

  /* Accent — restrained blues */
  --blue-100: #a9c8ff;
  --blue-200: #7ba7f7;
  --blue-400: #3e7ce6;
  --blue-600: #1d4fd8;
  --blue-800: #0f2b7a;
  --blue-glow: rgba(62, 124, 230, 0.35);

  /* Surfaces / borders */
  --line-1: rgba(255,255,255,0.055);
  --line-2: rgba(255,255,255,0.09);
  --line-blue: rgba(120,167,247,0.22);
  --glass:  rgba(255,255,255,0.025);
  --glass-2: rgba(255,255,255,0.045);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Curves & motion */
  --ease: cubic-bezier(0.16, 0.84, 0.32, 1);
  --ease-slow: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
  --dur-fast: 450ms;

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

html, body {
  background: var(--bg-0);
  color: var(--ink-80);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body { position: relative; min-height: 100vh; }

/* Global ambient light — three big radial gradients */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 800px at 18% 10%, rgba(62,124,230,0.10), transparent 60%),
    radial-gradient(900px 700px at 82% 40%, rgba(29,79,216,0.08), transparent 60%),
    radial-gradient(1000px 1000px at 50% 110%, rgba(120,167,247,0.06), transparent 60%);
}

/* Grain — barely perceptible */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.7 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }

::selection { background: rgba(126,167,247,0.30); color: #fff; }

/* Utility */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 5; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--blue-200); opacity: 0.85;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-400); box-shadow: 0 0 12px var(--blue-glow);
  vertical-align: middle; margin-right: 12px; transform: translateY(-1px);
}
.grad-text {
  background: linear-gradient(120deg, #d8e4ff 0%, #8fb3f7 40%, #3e7ce6 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* Descenders (g, p, y, j) need breathing room when using background-clip: text */
  display: inline-block;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  line-height: 1.15;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink-100);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.12;
}
h1 { font-size: clamp(44px, 6.8vw, 96px); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(34px, 4.8vw, 68px); font-weight: 400; line-height: 1.12; }
h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; }
p  { color: var(--ink-60); }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
nav.top.scrolled {
  background: rgba(5,6,11,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line-1);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.32em; color: var(--ink-100);
  text-transform: uppercase;
}
.brand .brand-mark { width: 34px; height: 26px; }
.brand-mark {
  width: 30px; height: 24px;
  display: inline-block;
  background: url(/assets/isotipo.png) center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(120,167,247,0.18));
}
.brand-logo {
  height: 34px;
  display: inline-block;
  background: url(/assets/logo_full.png) left center/contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(120,167,247,0.28));
  aspect-ratio: 1200/310;
}
nav.top ul {
  list-style: none; display: flex; gap: 38px; align-items: center;
  font-size: 13.5px; color: var(--ink-80); font-weight: 400;
}
nav.top ul li a { position: relative; transition: color var(--dur-fast) var(--ease); }
nav.top ul li a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--blue-200); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
nav.top ul li a:hover { color: var(--ink-100); }
nav.top ul li a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-100);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  font-size: 13px; letter-spacing: 0.02em;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nav-cta:hover {
  border-color: var(--line-blue);
  background: linear-gradient(180deg, rgba(62,124,230,0.12), rgba(29,79,216,0.06));
  transform: translateY(-1px);
}
.menu-btn { display: none; }
.nav-panel { display: none; }

@media (max-width: 960px) {
  nav.top ul { display: none; }
  .nav-cta { display: none; }
  .menu-btn {
    display: block; width: 28px; height: 20px; position: relative;
    background: transparent; border: none; padding: 0; cursor: pointer;
    z-index: 5;
  }
  .menu-btn span {
    position: absolute; left: 0; right: 0; height: 1px;
    background: var(--ink-100); transform-origin: 50% 50%;
    transition: transform 320ms cubic-bezier(0.22,1,0.36,1),
                top 300ms cubic-bezier(0.22,1,0.36,1),
                bottom 300ms cubic-bezier(0.22,1,0.36,1),
                width 250ms ease,
                opacity 200ms ease;
  }
  .menu-btn span:nth-child(1) { top: 3px; }
  .menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 70%; }
  .menu-btn span:nth-child(3) { bottom: 3px; }
  nav.top.nav-open .menu-btn span:nth-child(1) { top: 50%; transform: translate(0, -50%) rotate(45deg); }
  nav.top.nav-open .menu-btn span:nth-child(2) { opacity: 0; width: 0; }
  nav.top.nav-open .menu-btn span:nth-child(3) { bottom: auto; top: 50%; transform: translate(0, -50%) rotate(-45deg); }

  /* Mobile menu panel — expands from the header */
  .nav-panel {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0;
    top: 100%;
    background: rgba(5,6,11,0.98);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--line-1);
    padding: 0 var(--pad);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 520ms cubic-bezier(0.22,1,0.36,1),
                opacity 380ms ease,
                padding-top 520ms cubic-bezier(0.22,1,0.36,1),
                padding-bottom 520ms cubic-bezier(0.22,1,0.36,1);
  }
  nav.top.nav-open .nav-panel {
    max-height: 65vh;
    opacity: 1;
    pointer-events: auto;
    padding: 36px var(--pad) 44px;
  }
  .nav-panel-links { display: flex; flex-direction: column; gap: 26px; }
  .nav-panel-links a {
    font-size: clamp(22px, 5.4vw, 26px);
    color: var(--ink-100); font-weight: 400;
    letter-spacing: -0.01em; line-height: 1.15;
    opacity: 0; transform: translateY(6px);
    transition: opacity 420ms ease, transform 480ms cubic-bezier(0.22,1,0.36,1), color 250ms ease;
  }
  nav.top.nav-open .nav-panel-links a { opacity: 1; transform: translateY(0); }
  nav.top.nav-open .nav-panel-links a:nth-child(1) { transition-delay: 140ms, 140ms, 0ms; }
  nav.top.nav-open .nav-panel-links a:nth-child(2) { transition-delay: 210ms, 210ms, 0ms; }
  nav.top.nav-open .nav-panel-links a:nth-child(3) { transition-delay: 280ms, 280ms, 0ms; }
  nav.top.nav-open .nav-panel-links a:nth-child(4) { transition-delay: 350ms, 350ms, 0ms; }
  .nav-panel-cta {
    margin-top: 34px;
    padding: 16px 28px; border-radius: 999px;
    border: 1px solid var(--line-blue);
    background: linear-gradient(180deg, rgba(62,124,230,0.18), rgba(29,79,216,0.08));
    color: var(--ink-100); font-size: 15px; letter-spacing: 0.02em;
    text-align: center; font-weight: 500;
    opacity: 0; transform: translateY(6px);
    transition: opacity 420ms ease, transform 480ms cubic-bezier(0.22,1,0.36,1);
    cursor: pointer;
  }
  nav.top.nav-open .nav-panel-cta { opacity: 1; transform: translateY(0); transition-delay: 440ms; }
}
body.nav-lock { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
section#hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 100px;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-inner { max-width: 1080px; }
.hero-inner .eyebrow { margin-bottom: 32px; }
.hero-inner h1 {
  margin-bottom: 32px;
}
.hero-inner h1 span.line-2 {
  display: block;
}
.hero-lead {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--ink-60); max-width: 620px;
  line-height: 1.5; margin-bottom: 48px;
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-fast);
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(180deg, #4a86ea, #1d4fd8);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(120,167,247,0.35) inset,
    0 8px 30px -8px rgba(29,79,216,0.55),
    0 0 40px rgba(62,124,230,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(120,167,247,0.5) inset,
    0 14px 40px -6px rgba(29,79,216,0.65),
    0 0 60px rgba(62,124,230,0.28);
}
.btn-ghost {
  color: var(--ink-100);
  border-color: var(--line-2);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
  border-color: var(--line-blue);
  background: rgba(62,124,230,0.06);
  transform: translateY(-2px);
}
.arrow-r { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow-r { transform: translateX(3px); }

/* Hero preview — subtle floating platform peek */
.hero-preview {
  position: relative;
  margin-top: 100px;
  max-width: 1080px;
  aspect-ratio: 16/8;
  border-radius: 20px;
  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(16,19,30,0.7), rgba(8,10,18,0.3));
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(120,167,247,0.06) inset,
    0 -30px 60px -30px rgba(62,124,230,0.15) inset;
}
.hero-preview::before {
  content:''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(62,124,230,0.18), transparent 60%),
    radial-gradient(500px 300px at 80% 60%, rgba(120,167,247,0.10), transparent 60%);
  pointer-events: none;
}
.hero-preview::after {
  content:'';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,6,11,0.85) 100%);
  pointer-events: none;
}
.hero-preview-inner {
  position: absolute; inset: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

/* Fake app skeleton for hero preview */
.hp-side {
  padding: 14px;
  border-right: 1px solid var(--line-1);
}
.hp-side .brand-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.24em; color: var(--ink-80);
  padding-bottom: 14px; border-bottom: 1px solid var(--line-1); margin-bottom: 14px;
}
.hp-side .brand-row .brand-mark { width: 16px; height: 16px; }
.hp-side ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.hp-side li {
  font-size: 11.5px; padding: 8px 10px; border-radius: 6px;
  color: var(--ink-60);
  display: flex; align-items: center; gap: 8px;
}
.hp-side li.active {
  color: var(--ink-100);
  background: rgba(120,167,247,0.06);
  box-shadow: inset 0 0 0 1px var(--line-blue);
}
.hp-side li::before {
  content:''; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--line-2);
}
.hp-side li.active::before { background: var(--blue-400); border-color: transparent; box-shadow: 0 0 8px var(--blue-glow); }

.hp-main { padding: 6px; display: flex; flex-direction: column; gap: 10px; }
.hp-topbar { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-60); padding: 6px 4px; }
.hp-topbar .pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-1); background: rgba(255,255,255,0.02); }
.hp-topbar .pill.blue { color: var(--blue-100); border-color: var(--line-blue); background: rgba(62,124,230,0.08); }

.hp-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; flex: 1; }
.hp-card {
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006));
}
.hp-card .title { font-size: 10.5px; letter-spacing: 0.2em; color: var(--ink-60); text-transform: uppercase; margin-bottom: 8px; }
.hp-card .val { font-size: 22px; color: var(--ink-100); font-weight: 400; letter-spacing: -0.02em; }
.hp-card .sub { font-size: 10.5px; color: var(--blue-200); margin-top: 4px; }
.hp-chart {
  position: relative; height: 62px; margin-top: 10px; overflow: hidden; border-radius: 6px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.32em; color: var(--ink-40); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--ink-40), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:0.3} 50%{opacity:0.8} }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT TOUR (autoplay, responsive)
═══════════════════════════════════════════════════════════════ */
section#tour {
  position: relative;
  padding: clamp(64px, 8vh, 110px) 0 clamp(48px, 6vh, 80px);
  overflow: hidden;
}
.tour-viewport {
  position: relative;
  overflow: visible;
}
.tour-viewport::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 22% 30%, rgba(62,124,230,0.10), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(120,167,247,0.06), transparent 60%);
  pointer-events: none;
}
.tour-wide {
  position: relative; z-index: 2;
  max-width: 1560px;
  width: calc(100% - 80px);
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vh, 56px);
}
.tour-intro {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.tour-intro .eyebrow { justify-content: center; margin-bottom: clamp(14px, 1.6vh, 22px); }
.tour-title {
  margin: 0;
  font-size: clamp(48px, 5vw, 76px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em;
}
.tour-title-1 { display: block; color: var(--ink-100); }
.tour-title-2 { display: block; }
.tour-lead {
  margin: clamp(18px, 2.2vh, 28px) auto 0;
  max-width: 780px;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-60);
  line-height: 1.55;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT TOUR v3 — Stepper + 2×2 composition
═══════════════════════════════════════════════════════════════ */

.tour-stage {
  --p-bg:      #f7f8fb;
  --p-elev:    #ffffff;
  --p-border:  #e5e7ee;
  --p-border-2:#d3d7e0;
  --p-ink:     #0b0b16;
  --p-ink-2:   #3a3f52;
  --p-muted:   #6b7280;
  --p-muted-2: #9098aa;
  --p-accent:  #4c33e0;
  --p-accent-2:#7c3aed;
  --p-green:   #10b981;
  --p-blue:    #3e7ce6;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--p-bg);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(120,167,247,0.14), 0 0 90px -20px rgba(62,124,230,0.32);
  width: 100%;
  min-width: 0;
  height: clamp(620px, 67vh, 720px);
  color: var(--p-ink);
  display: flex; flex-direction: column;
}
.stepper {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--p-border);
  background: white;
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 2;
}
.step-block {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; opacity: 0.42;
  transition: opacity 500ms var(--ease-slow);
  cursor: pointer;
}
.step-block.done, .step-block.active { opacity: 1; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--p-border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--p-muted); background: white;
  transition: all 500ms var(--ease); letter-spacing: 0.02em;
}
.step-block.done .step-num { border-color: var(--p-accent); background: var(--p-accent); color: white; }
.step-block.active .step-num { border-color: var(--p-accent); background: var(--p-accent); color: white; box-shadow: 0 0 0 5px rgba(76,51,224,0.16); }
.step-name { font-size: 11px; color: var(--p-muted); font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; transition: color 400ms var(--ease); white-space: nowrap; }
.step-block.done .step-name, .step-block.active .step-name { color: var(--p-ink); }
.step-connector { flex: 1; height: 1px; min-width: 12px; background: var(--p-border); position: relative; overflow: hidden; }
.step-connector::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--p-accent); transition: width 700ms var(--ease-slow); }
.step-connector.filled::after { width: 100%; }

.tour-body {
  position: relative; flex: 1; min-height: 0;
  padding: clamp(16px, 1.4vw, 22px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr;
  gap: clamp(14px, 1.4vw, 24px);
  transition: grid-template-columns 900ms cubic-bezier(0.22, 1, 0.36, 1),
              grid-template-rows    900ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Grid expands the row+column containing the active card */
.tour-body[data-active="0"] { grid-template-columns: 1.55fr 1fr; grid-template-rows: 1.75fr 1fr; }
.tour-body[data-active="1"] { grid-template-columns: 1fr 1.55fr; grid-template-rows: 1.75fr 1fr; }
.tour-body[data-active="2"] { grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1.75fr; }
.tour-body[data-active="3"] { grid-template-columns: 1fr 1.55fr; grid-template-rows: 1fr 1.75fr; }
/* data-active="none" → all four compact, evenly distributed */

.tour-card {
  background: white;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 12px 13px;
  overflow: hidden;
  transition: box-shadow 700ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 500ms cubic-bezier(0.22, 1, 0.36, 1),
              padding 700ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 0;
  min-width: 0;
  opacity: 1; pointer-events: auto;
}
.tour-card.active {
  z-index: 5;
  padding: 16px 18px;
  box-shadow: 0 18px 38px -14px rgba(76,51,224,0.22), 0 0 0 1.5px rgba(76,51,224,0.16);
  border-color: rgba(76,51,224,0.28);
}
/* Card internals: compact by default, expand smoothly when active */
.tour-card .card-tag { font-size: 8.5px; margin-bottom: 3px; transition: font-size 500ms cubic-bezier(0.22,1,0.36,1); }
.tour-card .card-title { font-size: 12px; margin-bottom: 6px; line-height: 1.15; transition: font-size 500ms cubic-bezier(0.22,1,0.36,1), margin-bottom 500ms cubic-bezier(0.22,1,0.36,1); }
.tour-card .card-body { gap: 6px; transition: gap 500ms cubic-bezier(0.22,1,0.36,1); }
.tour-card.active .card-tag   { font-size: 9.5px; margin-bottom: 4px; }
.tour-card.active .card-title { font-size: 15.5px; margin-bottom: 10px; }
.tour-card.active .card-body  { gap: 8px; }

/* Card 1 fields — smaller in compact */
.tour-card .mini-field { padding: 5px 7px; }
.tour-card .mini-field .lbl { font-size: 8px; }
.tour-card .mini-field .val { font-size: 11px; }
.tour-card.active .mini-field { padding: 7px 9px; }
.tour-card.active .mini-field .lbl { font-size: 9px; }
.tour-card.active .mini-field .val { font-size: 12.5px; }

/* Card 2 metrics compact */
.tour-card .mini-metrics { font-size: 9.5px; gap: 8px; }
.tour-card .mini-improve { font-size: 9.5px; padding: 4px 8px; }
.tour-card.active .mini-metrics { font-size: 11px; gap: 12px; }
.tour-card.active .mini-improve { font-size: 11px; padding: 6px 10px; }

/* Card 3 flujos */
.tour-card .flujos-sub { font-size: 8.5px; }
.tour-card.active .flujos-sub { font-size: 10px; }
.tour-card .flujos-legend { font-size: 9px; gap: 12px; padding: 4px 0 0; }
.tour-card.active .flujos-legend { font-size: 10.5px; gap: 18px; padding: 6px 0 0; }

/* Card 4 report preview */
.tour-card .report-preview { padding: 7px 9px; gap: 4px; }
.tour-card .report-preview .report-title { font-size: 8.5px; padding-bottom: 4px; }
.tour-card .report-sections { font-size: 9px; gap: 3px; }
.tour-card .report-cta { padding: 6px 10px; font-size: 9.5px; }
.tour-card.active .report-preview { padding: 10px 12px; gap: 6px; }
.tour-card.active .report-preview .report-title { font-size: 10px; padding-bottom: 6px; }
.tour-card.active .report-sections { font-size: 10.5px; gap: 4px; }
.tour-card.active .report-cta { padding: 8px 14px; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .tour-body, .tour-card, .tour-card .card-tag, .tour-card .card-title, .tour-card .card-body { transition: none; }
}
.tour-card .card-tag { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--p-muted-2); font-weight: 500; margin-bottom: 4px; transition: color 400ms var(--ease); }
.tour-card.active .card-tag, .tour-card.done .card-tag { color: var(--p-accent); }
.tour-card .card-title { font-size: 15px; color: var(--p-ink); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.tour-card .card-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }

.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-field { padding: 7px 9px; border-radius: 7px; background: #f7f8fb; border: 1px solid var(--p-border); display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.mini-field.wide { flex-direction: column; align-items: flex-start; }
.mini-field .lbl { font-size: 9px; letter-spacing: 0.02em; color: var(--p-muted-2); margin-bottom: 0; }
.mini-field .val { font-size: 12.5px; color: var(--p-ink); font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mini-portfolio { margin-top: auto; padding: 8px 10px; border-radius: 8px; background: #f7f8fb; border: 1px solid var(--p-border); }
.mini-portfolio .lbl { font-size: 9px; letter-spacing: 0.02em; color: var(--p-muted-2); margin-bottom: 6px; }
.p-bar-mini { display: flex; height: 6px; border-radius: 4px; overflow: hidden; }
.p-bar-mini .seg-dap { background: linear-gradient(90deg, #7c3aed, #6b4dff); flex: 40; }
.p-bar-mini .seg-fm  { background: linear-gradient(90deg, #4c8bff, #3e7ce6); flex: 40; }
.p-bar-mini .seg-acc { background: linear-gradient(90deg, #10b981, #0ea472); flex: 20; }

.mini-chart { padding: 4px; border-radius: 7px; background: #f7f8fb; border: 1px solid var(--p-border); flex: 1; min-height: 40px; display: flex; }
.mini-chart svg { width: 100%; height: 100%; display: block; }
.mini-chart .grid line { stroke: #eef0f5; stroke-width: 0.5; }
.mini-chart .axis { stroke: #d3d7e0; stroke-width: 0.5; }
.mini-chart .line-base { fill: none; stroke: #3e7ce6; stroke-width: 1.5; stroke-linecap: round; }
.mini-chart .line-opt  { fill: none; stroke: #10b981; stroke-width: 1.5; stroke-linecap: round; }
.mini-chart .area-opt  { fill: rgba(16,185,129,0.10); }
.mini-metrics { display: flex; gap: 12px; font-size: 11px; color: var(--p-ink); font-weight: 500; }
.mini-metrics > div { display: flex; align-items: center; gap: 6px; }
.mini-metrics .dot { width: 7px; height: 7px; border-radius: 2px; }
.mini-metrics .dot.base { background: #3e7ce6; }
.mini-metrics .dot.opt  { background: #10b981; }
.mini-improve { margin-top: 4px; padding: 6px 10px; background: #e6f7ef; color: #0d7d5a; border-radius: 6px; font-size: 11px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.mini-improve .arrow { font-weight: 600; }

/* Card 3 — Flujos acumulados (aportes / retiros) */
.flujos-sub { font-size: 10px; color: var(--p-muted); text-align: center; margin-bottom: 4px; letter-spacing: 0.02em; }
.flujos-chart { padding: 6px 6px 4px; border-radius: 7px; background: #f7f8fb; border: 1px solid var(--p-border); flex: 1; min-height: 60px; display: flex; }
.flujos-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.flujos-chart text { font-family: var(--font); fill: var(--p-muted); }
.flujos-chart .grid { stroke: #e5e7ee; stroke-width: 0.5; }
.flujos-chart .grid.zero { stroke: #b8bec9; stroke-width: 0.7; }
.flujos-chart .ylbl { font-size: 6.5px; fill: var(--p-muted-2); }
.flujos-chart .unit { font-size: 6.5px; fill: var(--p-muted-2); }
.flujos-chart .xlbl { font-size: 6.5px; fill: var(--p-muted-2); text-anchor: middle; }
.flujos-chart .axis-title { font-size: 7px; fill: var(--p-muted); font-weight: 500; letter-spacing: 0.02em; }
.flujos-chart .bar { transform-origin: center 55px; transform: scaleY(0); opacity: 0; }
.flujos-chart .bar.aporte { fill: #6b4dff; transform-origin: center bottom; }
.flujos-chart .bar.retiro { fill: #10b981; transform-origin: center top; }
.tour-card.active .flujos-chart .bar,
.tour-card.done   .flujos-chart .bar { animation: flujoBar 700ms cubic-bezier(0.16,0.84,0.32,1) forwards; }
/* stagger bars by data-i */
.tour-card.active .flujos-chart .bar[data-i="0"], .tour-card.done .flujos-chart .bar[data-i="0"]   { animation-delay: 60ms; }
.tour-card.active .flujos-chart .bar[data-i="1"], .tour-card.done .flujos-chart .bar[data-i="1"]   { animation-delay: 100ms; }
.tour-card.active .flujos-chart .bar[data-i="2"], .tour-card.done .flujos-chart .bar[data-i="2"]   { animation-delay: 140ms; }
.tour-card.active .flujos-chart .bar[data-i="3"], .tour-card.done .flujos-chart .bar[data-i="3"]   { animation-delay: 180ms; }
.tour-card.active .flujos-chart .bar[data-i="4"], .tour-card.done .flujos-chart .bar[data-i="4"]   { animation-delay: 220ms; }
.tour-card.active .flujos-chart .bar[data-i="5"], .tour-card.done .flujos-chart .bar[data-i="5"]   { animation-delay: 260ms; }
.tour-card.active .flujos-chart .bar[data-i="6"], .tour-card.done .flujos-chart .bar[data-i="6"]   { animation-delay: 300ms; }
.tour-card.active .flujos-chart .bar[data-i="7"], .tour-card.done .flujos-chart .bar[data-i="7"]   { animation-delay: 340ms; }
.tour-card.active .flujos-chart .bar[data-i="8"], .tour-card.done .flujos-chart .bar[data-i="8"]   { animation-delay: 380ms; }
.tour-card.active .flujos-chart .bar[data-i="9"], .tour-card.done .flujos-chart .bar[data-i="9"]   { animation-delay: 420ms; }
.tour-card.active .flujos-chart .bar[data-i="10"], .tour-card.done .flujos-chart .bar[data-i="10"] { animation-delay: 500ms; }
.tour-card.active .flujos-chart .bar[data-i="11"], .tour-card.done .flujos-chart .bar[data-i="11"] { animation-delay: 540ms; }
.tour-card.active .flujos-chart .bar[data-i="12"], .tour-card.done .flujos-chart .bar[data-i="12"] { animation-delay: 580ms; }
.tour-card.active .flujos-chart .bar[data-i="13"], .tour-card.done .flujos-chart .bar[data-i="13"] { animation-delay: 620ms; }
.tour-card.active .flujos-chart .bar[data-i="14"], .tour-card.done .flujos-chart .bar[data-i="14"] { animation-delay: 660ms; }
.tour-card.active .flujos-chart .bar[data-i="15"], .tour-card.done .flujos-chart .bar[data-i="15"] { animation-delay: 700ms; }
.tour-card.active .flujos-chart .bar[data-i="16"], .tour-card.done .flujos-chart .bar[data-i="16"] { animation-delay: 740ms; }
.tour-card.active .flujos-chart .bar[data-i="17"], .tour-card.done .flujos-chart .bar[data-i="17"] { animation-delay: 780ms; }
.tour-card.active .flujos-chart .bar[data-i="18"], .tour-card.done .flujos-chart .bar[data-i="18"] { animation-delay: 820ms; }
.tour-card.active .flujos-chart .bar[data-i="19"], .tour-card.done .flujos-chart .bar[data-i="19"] { animation-delay: 860ms; }
.tour-card.active .flujos-chart .bar[data-i="20"], .tour-card.done .flujos-chart .bar[data-i="20"] { animation-delay: 900ms; }
.tour-card.active .flujos-chart .bar[data-i="21"], .tour-card.done .flujos-chart .bar[data-i="21"] { animation-delay: 940ms; }
.tour-card.active .flujos-chart .bar[data-i="22"], .tour-card.done .flujos-chart .bar[data-i="22"] { animation-delay: 980ms; }
.tour-card.active .flujos-chart .bar[data-i="23"], .tour-card.done .flujos-chart .bar[data-i="23"] { animation-delay: 1020ms; }
.tour-card.active .flujos-chart .bar[data-i="24"], .tour-card.done .flujos-chart .bar[data-i="24"] { animation-delay: 1060ms; }
.tour-card.active .flujos-chart .bar[data-i="25"], .tour-card.done .flujos-chart .bar[data-i="25"] { animation-delay: 1100ms; }
.tour-card.active .flujos-chart .bar[data-i="26"], .tour-card.done .flujos-chart .bar[data-i="26"] { animation-delay: 1140ms; }
@keyframes flujoBar { to { transform: scaleY(1); opacity: 1; } }
.flujos-legend { display: flex; gap: 18px; font-size: 10.5px; color: var(--p-ink-2); align-items: center; justify-content: center; padding: 6px 0 0; }
.flujos-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flujos-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.flujos-legend .d-aporte { background: #6b4dff; }
.flujos-legend .d-retiro { background: #10b981; }

.report-preview { padding: 10px 12px; border-radius: 7px; background: #f7f8fb; border: 1px solid var(--p-border); flex: 1; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.report-preview .report-title { font-size: 10px; letter-spacing: 0.18em; color: var(--p-accent); text-transform: uppercase; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--p-border); }
.report-sections { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--p-ink-2); }
.report-sections li { display: flex; align-items: center; gap: 6px; }
.report-sections li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(76,51,224,0.15); border: 1px solid var(--p-accent); flex-shrink: 0; display: inline-block; }
.report-cta { padding: 8px 14px; border-radius: 999px; background: linear-gradient(180deg, #6b4dff, #4c33e0); color: white; border: none; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; align-self: stretch; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 6px 14px -4px rgba(76,51,224,0.4); }

.tour-closing { padding: clamp(80px, 10vh, 140px) var(--pad) clamp(40px, 6vh, 70px); max-width: 1250px; margin: 0 auto; text-align: center; }
.tour-closing h2 { margin: 0 0 24px; font-size: clamp(46px, 5.2vw, 82px) !important; line-height: 1.05 !important; letter-spacing: -0.02em; }
.tour-closing p { font-size: clamp(15px, 1.15vw, 18px); color: var(--ink-60); max-width: 620px; margin: 0 auto; }

/* 1366×768 compact — reduce paddings and gaps only */
@media (max-width: 1400px) {
  .tour-wide { gap: clamp(24px, 3vh, 40px); width: calc(100% - 60px); }
  .tour-stage { height: clamp(560px, 74vh, 680px); }
  .stepper { padding: 12px 14px 14px; gap: 8px; }
  .tour-body { gap: 12px; padding: 14px; }
  .step-name { font-size: 10px; }
  .step-num { width: 22px; height: 22px; font-size: 9px; }
}
/* Tablet / mobile — stack cards vertically */
@media (max-width: 900px) {
  .tour-wide { width: calc(100% - 40px); gap: 32px; }
  .tour-title { font-size: clamp(36px, 8vw, 56px) !important; }
  .tour-stage { height: auto; min-height: 620px; }
  .tour-body { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(140px, 1fr)); gap: 10px; }
  .tour-body[data-active="0"],
  .tour-body[data-active="1"],
  .tour-body[data-active="2"],
  .tour-body[data-active="3"] { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(140px, 1fr)); }
}
@media (max-width: 640px) {
  .tour-wide { width: calc(100% - 32px); }
  .tour-body { gap: 8px; padding: 12px; }
  .stepper { gap: 6px; padding: 12px 12px 14px; }
  .step-name { display: none; }
  .step-connector { min-width: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   3 PALANCAS
═══════════════════════════════════════════════════════════════ */
section#pillars {
  padding: 200px 0 200px;
  position: relative;
}
.pillars-head { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 100px; flex-wrap: wrap; }
.pillars-head h2 { max-width: 700px; }
.pillars-head p { max-width: 340px; font-size: 14.5px; color: var(--ink-60); }

.rail {
  position: relative;
  padding: 60px 0 40px;
}
.rail-line {
  position: absolute; left: 4%; right: 4%; top: calc(50% - 30px);
  height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.rail-line::before {
  content:''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--rail-progress, 0%);
  background: linear-gradient(90deg, var(--blue-400), var(--blue-200));
  box-shadow: 0 0 12px var(--blue-glow);
  transition: width 1.2s var(--ease-slow);
}
.rail-items {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  padding: 32px 32px 32px 0;
  position: relative;
  cursor: default;
  transition: transform var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.pillar .node {
  position: absolute;
  top: -60px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pillar .num {
  font-family: var(--font); font-weight: 300; font-size: 90px;
  letter-spacing: -0.04em; color: var(--ink-20);
  line-height: 1; margin-bottom: 8px;
  transition: color var(--dur) var(--ease);
}
.pillar h3 {
  font-size: 26px; color: var(--ink-100); font-weight: 500; margin-bottom: 12px; letter-spacing: -0.02em;
}
.pillar p { color: var(--ink-60); font-size: 14.5px; max-width: 320px; line-height: 1.5; }
.pillar .more {
  margin-top: auto; padding-top: 12px;
  font-size: 12px; letter-spacing: 0.14em;
  color: rgba(170, 184, 215, 0.5);
  text-transform: uppercase;
  border-top: 1px solid var(--line-1);
  filter: none;
  transition: color 400ms ease;
}
.pillar:hover .node,
.pillar.hot .node {
  border-color: var(--blue-200);
  box-shadow: 0 0 20px var(--blue-glow);
  transform: scale(1.15);
}
.pillar:hover .num,
.pillar.hot .num {
  color: var(--blue-200);
}
.pillar:hover .more,
.pillar.hot .more {
  color: rgba(180, 196, 226, 0.78);
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════════ */
section#how {
  padding: 200px 0 220px;
  position: relative;
}
.how-head { max-width: 720px; margin-bottom: 90px; }
.how-head h2 { margin-bottom: 24px; }
.how-head p { font-size: clamp(15px, 1.15vw, 18px); color: var(--ink-60); max-width: 520px; }

.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border: 1px solid var(--line-1); border-radius: 20px; overflow: hidden;
  background: var(--line-1);
}
.how-cell {
  padding: 42px 36px;
  background: linear-gradient(180deg, rgba(11,13,24,0.85), rgba(8,10,18,0.85));
  position: relative;
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: background var(--dur) var(--ease);
}
.how-cell:hover { background: linear-gradient(180deg, rgba(62,124,230,0.08), rgba(11,13,24,0.85)); }
.how-cell .num-row { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.how-cell .num {
  font-family: var(--font); font-weight: 400; font-size: 15px;
  color: var(--blue-200); letter-spacing: 0.24em;
}
.how-cell .thread {
  flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-blue), transparent);
}
.how-cell h3 {
  font-size: 26px; color: var(--ink-100); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px;
}
.how-cell p { color: var(--ink-60); font-size: 14px; }
.how-cell .icon {
  margin-top: auto;
  width: 60px; height: 60px;
  border: 1px solid var(--line-blue);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(62,124,230,0.08), rgba(15,43,122,0.02));
  display: flex; align-items: center; justify-content: center;
}
.how-cell .icon svg { width: 26px; height: 26px; stroke: var(--blue-100); stroke-width: 1.2; }

/* ═══════════════════════════════════════════════════════════════
   INTEGRACIÓN
═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   VALOR INSTITUCIONAL
═══════════════════════════════════════════════════════════════ */
section#value {
  padding: 200px 0 200px;
  position: relative;
}
.value-head {
  max-width: 780px; margin: 0 auto 60px; text-align: center;
}
.value-head .eyebrow { justify-content: center; }
.value-head h2 { margin: 0 auto; }
.value-orbit {
  max-width: 880px; margin: 0 auto;
  aspect-ratio: 25 / 18;
  position: relative;
}
.value-orbit .value-svg {
  width: 100%; height: 100%; display: block; overflow: visible;
}
.value-close {
  max-width: 900px; margin: 60px auto 0; text-align: center;
}
.value-close h3 {
  font-size: clamp(30px, 3.6vw, 48px); font-weight: 400; color: var(--ink-100);
  letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 20px;
}
.value-close p {
  font-size: clamp(15px, 1.15vw, 18px); color: var(--ink-60); line-height: 1.55;
  max-width: 620px; margin: 0 auto;
}
@media (max-width: 780px) {
  section#value { padding: 140px 0; }
  .value-orbit { aspect-ratio: 1 / 1; }
}

section#integration {
  padding: 200px 0 200px;
  position: relative;
}
.integ-head { max-width: 720px; margin-bottom: 100px; }
.integ-head h2 { margin-bottom: 22px; }
.integ-head p { font-size: clamp(15px, 1.15vw, 18px); color: var(--ink-60); max-width: 560px; }

.integ-diagram {
  position: relative;
  padding: clamp(60px, 8vh, 110px) 0 clamp(80px, 10vh, 140px);
  max-width: 1440px;
  margin: 0 auto;
}
.integ-diagram svg { width: 100%; height: auto; display: block; }

.integ-facets {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  margin-top: 60px;
  border: 1px solid var(--line-1); border-radius: 16px; overflow: hidden;
  background: var(--line-1);
}
.facet {
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(11,13,24,0.7), rgba(8,10,18,0.7));
  transition: background var(--dur) var(--ease);
}
.facet:hover { background: rgba(62,124,230,0.06); }
.facet .k { font-size: 10.5px; letter-spacing: 0.28em; color: var(--blue-200); text-transform: uppercase; margin-bottom: 10px; }
.facet .v { font-size: 14px; color: var(--ink-100); font-weight: 400; }
.facet .b { margin-top: 12px; font-size: 11.5px; color: var(--ink-60); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   CIERRE
═══════════════════════════════════════════════════════════════ */
section#cta {
  padding: clamp(180px, 20vh, 260px) 0 clamp(140px, 14vh, 200px);
  position: relative;
  overflow: hidden;
}
.cta-inner {
  text-align: center; max-width: 900px; margin: 0 auto;
}
.cta-statement { position: relative; }
.cta-statement::before {
  content: '';
  position: absolute;
  left: 50%; top: 55%;
  width: min(1100px, 80vw);
  height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 60% 55% at 50% 50%,
    rgba(76, 130, 240, 0.10) 0%,
    rgba(76, 130, 240, 0.055) 30%,
    rgba(76, 130, 240, 0.018) 55%,
    rgba(76, 130, 240, 0) 75%);
  pointer-events: none;
  z-index: -1;
}
.cta-title-1 {
  display: block;
  font-size: clamp(38px, 5vw, 74px);
  color: var(--ink-80); font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px;
  padding-bottom: 0.08em;
}
.cta-title-2 {
  display: block;
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
  position: relative;
  padding-bottom: 0.16em;
}
.cta-invite {
  margin-top: clamp(90px, 10vh, 140px);
}
.cta-lead {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-60);
  letter-spacing: -0.005em;
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 560px;
}
.cta-actions { display: flex; justify-content: center; gap: 14px; }
/* Custom stagger for the two lines of the closing statement */
.cta-title-2.reveal-el { transition-delay: 300ms; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer {
  padding: 60px var(--pad) 40px;
  border-top: 1px solid var(--line-1);
  position: relative; z-index: 5;
}
footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 0;
}
footer .brand { font-size: 12px; }
footer .foot-nav { display: flex; gap: 28px; font-size: 12px; color: var(--ink-40); letter-spacing: 0.06em; }
footer .foot-nav a:hover { color: var(--ink-80); }
footer .copy { font-size: 11px; color: var(--ink-40); letter-spacing: 0.06em; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL & MOTION
═══════════════════════════════════════════════════════════════ */
.reveal-el {
  opacity: 0; transform: translateY(24px) scale(0.995); filter: blur(4px);
  transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow), filter 1.1s var(--ease-slow);
}
.reveal-el.reveal { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-el.delay-1 { transition-delay: 100ms; }
.reveal-el.delay-2 { transition-delay: 200ms; }
.reveal-el.delay-3 { transition-delay: 300ms; }

/* ═══════════════════════════════════════════════════════════════
   ABOUT — Quiénes somos
═══════════════════════════════════════════════════════════════ */
section#about {
  padding: 200px 0 200px;
  position: relative;
}
.about-head { max-width: 900px; margin-bottom: 100px; }
.about-head h2 { margin-bottom: 28px; }
.about-head p {
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--ink-60); max-width: 720px; line-height: 1.55;
  font-weight: 300;
}

/* ─── Convergence visualization ─── */
.convergence {
  position: relative;
  height: clamp(340px, 44vw, 500px);
  margin: 60px 0 160px;
}
.convergence-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.convergence .disc {
  position: absolute;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  font-size: 11.5px; letter-spacing: 0.34em;
  color: var(--ink-100); font-weight: 400;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 1s var(--ease-slow), transform 1s var(--ease-slow), border-color 500ms var(--ease);
  white-space: nowrap;
}
.convergence.reveal .disc { opacity: 1; }
.convergence .disc.d1 { top: 10%; left: 14%; }
.convergence .disc.d2 { top: 10%; right: 14%; }
.convergence .disc.d3 { bottom: 6%; left: 50%; transform: translate(-50%, 48px); }
.convergence.reveal .disc.d3 { transform: translate(-50%, 48px); }
.convergence .disc .k {
  color: var(--blue-200); font-size: 9px; letter-spacing: 0.32em; margin-right: 10px;
  border-right: 1px solid var(--line-2); padding-right: 12px;
}
.convergence .disc:hover { border-color: var(--line-blue); }

/* Central core - NEXFINT node */
.convergence .core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(150px, 18vw, 200px); height: clamp(150px, 18vw, 200px);
  border-radius: 50%;
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.convergence .core::before {
  content:''; position: absolute; inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(62,124,230,0.35), transparent 60%);
  filter: blur(10px);
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s var(--ease-slow);
  animation: coreBreathe 4s ease-in-out infinite;
}
.convergence.reveal .core::before { opacity: 1; }
.convergence .core::after {
  content:''; position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(120,167,247,0.35);
  background: radial-gradient(circle at 30% 30%, rgba(120,167,247,0.15), transparent 70%),
              linear-gradient(180deg, rgba(11,13,24,0.8), rgba(5,6,11,0.8));
  backdrop-filter: blur(8px);
}
.convergence .core .core-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.convergence .core .core-inner .n-mark {
  width: 56px; height: 42px;
  background: url(/assets/isotipo.png) center/contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(120,167,247,0.25));
  margin-bottom: 4px;
}
.convergence .core .core-inner .name {
  font-size: 11px; letter-spacing: 0.4em; color: var(--ink-100); font-weight: 500;
  text-transform: uppercase;
}
.convergence .core .core-inner .sub {
  font-size: 8.5px; letter-spacing: 0.32em; color: var(--blue-200); text-transform: uppercase;
  opacity: 0.7;
}

@keyframes coreBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* SVG paths + dots */
.convergence-svg .conn-path {
  stroke: rgba(120,167,247,0.25);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 2.4s var(--ease-slow), stroke 800ms var(--ease-slow);
}
.convergence.reveal .conn-path { stroke-dashoffset: 0; }

.convergence-svg .dot {
  fill: #a9c8ff;
  filter: drop-shadow(0 0 6px rgba(120,167,247,0.8));
}

/* Team section */
.team-head {
  margin-top: 40px; margin-bottom: 60px;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 20px;
}
.team-head h3 {
  font-size: clamp(22px, 2.2vw, 34px); font-weight: 400; color: var(--ink-100);
  letter-spacing: -0.02em;
  max-width: 640px;
}
.team-head .team-tag {
  font-size: 10.5px; letter-spacing: 0.32em; color: var(--blue-200); text-transform: uppercase;
}
.team-head .team-tag .dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-400); box-shadow: 0 0 10px var(--blue-glow);
  margin-right: 10px; vertical-align: middle;
}

.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.member {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(16,19,30,0.6), rgba(8,10,18,0.35));
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.member::before {
  content:''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,167,247,0.35), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.member:hover {
  border-color: var(--line-blue);
  background: linear-gradient(180deg, rgba(16,19,30,0.85), rgba(8,10,18,0.6));
  transform: translateY(-4px);
}
.member:hover::before { opacity: 1; }

.member .avatar {
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid var(--line-blue);
  background-size: cover; background-position: center;
  background-color: rgba(16,19,30,0.9);
  margin-bottom: 22px;
  position: relative;
  box-shadow:
    0 0 0 3px var(--bg-0),
    0 0 0 4px rgba(120,167,247,0.22),
    0 0 30px rgba(62,124,230,0.20);
}
.member .avatar::after {
  content:''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(120,167,247,0.15), transparent 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.member .avatar-init {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 24px; color: var(--ink-100); font-weight: 300;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, rgba(62,124,230,0.22), rgba(15,43,122,0.12));
  border-radius: 50%;
}

.member .m-name {
  font-size: 20px; color: var(--ink-100); font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.member .m-role {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-200);
  margin-bottom: 18px; font-weight: 500;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-1);
}
.member .m-role .sep { color: var(--ink-40); margin: 0 8px; opacity: 0.7; }
.member .m-bio {
  font-size: 13.5px; color: var(--ink-60); line-height: 1.55;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .tour-grid { grid-template-columns: 300px 1fr; }
  .rail-items { grid-template-columns: 1fr; gap: 40px; }
  .rail-line { display: none; }
  .pillar { padding-left: 0; padding-top: 30px; border-top: 1px solid var(--line-1); }
  .pillar .node { top: -8px; }
  .how-grid { grid-template-columns: 1fr; }
  .integ-facets { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-wrap: wrap; gap: 20px; }
  .flow-step { min-width: 40%; }
  .flow-connector { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .convergence .disc { font-size: 10.5px; letter-spacing: 0.28em; padding: 8px 16px; }
  .convergence .disc .k { font-size: 8.5px; }
}
@media (max-width: 780px) {
  .tour-grid { grid-template-columns: 1fr; padding: 90px 20px 40px; gap: 24px; }
  .tour-left { padding-top: 0; }
  .tour-caption { margin-bottom: 20px; }
  .tour-steps { display: none; }
  .strategy-chips { flex-direction: column; align-items: stretch; max-width: 100%; width: 100%; }
  .strat-chip { justify-content: center; }
  .hero-preview { display: none; }
  .integ-facets { grid-template-columns: 1fr; }
  section#hero { padding: 130px 0 80px; }
  section#pillars, section#how, section#integration, section#about, section#cta {
    padding-top: 130px; padding-bottom: 130px;
  }
  .tour-closing { padding-top: 100px; }
  .team-grid { grid-template-columns: 1fr; }
  .convergence { height: clamp(360px, 90vw, 460px); }
  .convergence .disc.d1 { top: 4%; left: 4%; }
  .convergence .disc.d2 { top: 4%; right: 4%; }
  .team-head { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.1s !important; animation-duration: 0.1s !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT MODAL
═══════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,4,8,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; pointer-events: none;
  transition: opacity 500ms var(--ease);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.on { opacity: 1; pointer-events: auto; }

.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  padding: 44px 40px 36px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(16,19,30,0.95), rgba(8,10,18,0.95)),
    radial-gradient(600px 400px at 50% 0%, rgba(62,124,230,0.18), transparent 60%);
  background-blend-mode: normal;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(120,167,247,0.08) inset,
    0 -20px 60px -30px rgba(62,124,230,0.35) inset;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 600ms var(--ease-slow), opacity 400ms var(--ease);
  overflow: hidden;
}
.modal-backdrop.on .modal-card { transform: translateY(0) scale(1); opacity: 1; }
.modal-card::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,167,247,0.5), transparent);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-1);
  color: var(--ink-60);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast), background var(--dur-fast);
}
.modal-close:hover { color: var(--ink-100); border-color: var(--line-blue); background: rgba(62,124,230,0.08); }
.modal-close svg { width: 12px; height: 12px; }

.modal-eyebrow {
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--blue-200);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.modal-eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-400); box-shadow: 0 0 10px var(--blue-glow);
}

.modal-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--line-blue);
  background: url(/assets/tomas.jpg) center/cover no-repeat;
  margin-bottom: 24px;
  box-shadow:
    0 0 0 3px rgba(11,13,24,1),
    0 0 0 4px rgba(120,167,247,0.28),
    0 0 40px rgba(62,124,230,0.28);
  position: relative;
}
.modal-avatar::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(120,167,247,0.4), transparent 40%, rgba(62,124,230,0.25));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.modal-name {
  font-size: 26px; color: var(--ink-100); font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 6px;
}
.modal-role {
  font-size: 13px; color: var(--ink-60); font-weight: 400;
  margin-bottom: 30px; letter-spacing: 0.02em;
}
.modal-role b {
  color: var(--blue-200); font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 11px; display: inline-block; margin-right: 8px;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-blue); background: rgba(62,124,230,0.08);
}

.modal-field {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-1);
  background: rgba(255,255,255,0.015);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast);
}
.modal-field:hover { border-color: var(--line-blue); background: rgba(62,124,230,0.04); }
.modal-field .ico {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px; border: 1px solid var(--line-blue);
  background: rgba(62,124,230,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-100);
}
.modal-field .ico svg { width: 14px; height: 14px; }
.modal-field .txt { flex: 1; min-width: 0; }
.modal-field .lbl {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 3px;
}
.modal-field .val {
  font-size: 13.5px; color: var(--ink-100);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: 0;
}
.modal-field .copy-btn {
  padding: 6px 12px;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-60);
  border: 1px solid var(--line-1); border-radius: 999px;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.modal-field .copy-btn:hover { color: var(--blue-100); border-color: var(--line-blue); background: rgba(62,124,230,0.08); }
.modal-field .copy-btn.copied { color: var(--blue-100); border-color: var(--line-blue); background: rgba(62,124,230,0.12); }

.modal-actions {
  margin-top: 24px;
  display: flex; gap: 10px;
}
.modal-actions .btn { flex: 1; justify-content: center; padding: 13px 16px; font-size: 13px; }

@media (max-width: 480px) {
  .modal-card { padding: 36px 24px 28px; border-radius: 18px; }
  .modal-actions { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES — global fixes for 320px → 2560px
═══════════════════════════════════════════════════════════════ */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.wrap, section > .wrap { box-sizing: border-box; }

/* Use dvh where supported to avoid mobile browser chrome cutting hero */
@supports (min-height: 100dvh) {
  section#hero { min-height: 100dvh; }
}

/* ≤ 1200px — narrow desktop / large tablet */
@media (max-width: 1200px) {
  section#hero { padding: 140px 0 90px; }
}

/* ≤ 992px — tablet */
@media (max-width: 992px) {
  section#hero { padding: 130px 0 80px; min-height: auto; }
  .hero-inner .eyebrow { margin-bottom: 22px; }
  .hero-inner h1 { margin-bottom: 24px; }
  .hero-lead { margin-bottom: 34px; }
  .integ-facets { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .value-orbit { aspect-ratio: 1 / 1; }
}

/* ≤ 768px — mobile / small tablet */
@media (max-width: 768px) {
  :root { --pad: clamp(16px, 5vw, 32px); }
  section#hero { padding: 120px 0 70px; }
  section#pillars, section#how, section#integration,
  section#about, section#cta, section#value {
    padding-top: clamp(80px, 14vh, 130px);
    padding-bottom: clamp(80px, 14vh, 130px);
  }
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
  .member { padding: 22px; }
  .integ-facets { grid-template-columns: 1fr; }
  .integ-diagram { padding: 40px 0 60px; }
  .convergence { height: auto; min-height: 340px; margin: 40px 0 100px; }
  .convergence-svg { position: relative; height: 320px; }
  .team-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .value-orbit { aspect-ratio: 4 / 5; max-width: 100%; }
  footer .wrap { flex-direction: column; align-items: flex-start; text-align: left; }
  footer .foot-nav { flex-wrap: wrap; gap: 14px 20px; }
  .flow { flex-direction: column; gap: 16px; }
  .flow-step { min-width: 100%; }
  .strategy-chips { flex-direction: column; align-items: stretch; }
  .btn { padding: 14px 22px; min-height: 44px; }
  .cta-actions .btn { min-height: 48px; }
}

/* ≤ 480px — small phones */
@media (max-width: 480px) {
  :root { --pad: clamp(14px, 5vw, 22px); }
  .brand .brand-mark { width: 22px; height: 22px; }
  .brand { font-size: 12px; letter-spacing: 0.28em; gap: 8px; }
  section#hero { padding: 108px 0 60px; }
  .hero-inner h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-lead { font-size: 15px; line-height: 1.5; }
  .btn { padding: 13px 20px; font-size: 13px; }
  .cta-title-1 { font-size: clamp(30px, 9vw, 44px); }
  .cta-title-2 { font-size: clamp(38px, 12vw, 60px); }
  .cta-statement::before { width: 120vw; height: 380px; }
  .value-close h3 { font-size: clamp(24px, 7vw, 34px); }
  .convergence { min-height: 300px; margin: 30px 0 80px; }
  .convergence-svg { height: 300px; }
  .convergence .disc { font-size: 10px; letter-spacing: 0.24em; padding: 7px 14px; }
  .convergence .disc.d1 { top: 3%; left: 4%; }
  .convergence .disc.d2 { top: 3%; right: 4%; }
  .facet { padding: 20px 16px; }
  .member .avatar { width: 68px; height: 68px; }
  .member .m-name { font-size: 18px; }
  .member .m-bio { font-size: 13px; }
  .team-head h3 { font-size: 22px; }
  footer { padding: 40px var(--pad) 30px; }
  footer .copy { font-size: 10px; }
  .modal-backdrop { padding: 12px; }
  .modal-card { padding: 32px 20px 24px; }
  .integ-head { margin-bottom: 60px; }
  .value-head { margin-bottom: 40px; }
  .tour-closing { padding: 70px var(--pad) 40px; }
}

/* ≤ 360px — ultra small (iPhone SE, older Android) */
@media (max-width: 360px) {
  :root { --pad: 14px; }
  .hero-inner h1 { font-size: clamp(30px, 11vw, 42px); }
  h2 { font-size: clamp(26px, 8.5vw, 40px) !important; }
  .value-close h3 { font-size: clamp(22px, 7.5vw, 30px); }
  nav.top { padding: 16px var(--pad); }
  .brand { font-size: 11px; letter-spacing: 0.24em; }
  .menu-btn { width: 26px; height: 18px; }
  .integ-diagram { padding: 30px 0 40px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE v2 — refinamientos 320px → 2560px
   (desktop ≥ 1201px queda idéntico; todo lo de abajo está acotado
    por media queries o usa valores que en desktop resuelven igual)
═══════════════════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

/* Safe areas (iPhone con notch / Dynamic Island). En desktop env() = 0 */
.wrap {
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
nav.top {
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
footer {
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

/* Largo de palabra: nunca empujar el layout en pantallas angostas */
h1, h2, h3, p, .m-bio, .facet .b { overflow-wrap: break-word; }

/* SVG responsive: transformaciones en coordenadas del viewBox */
.integ-flow, .integ-hub, .integ-node-right, .vo-hub, .vo-node {
  transform-box: view-box;
}

/* ─── Navbar intermedio (961–1100): menos gap para que nada se toque ─── */
@media (min-width: 961px) and (max-width: 1100px) {
  nav.top ul { gap: 24px; font-size: 13px; }
}

/* ─── Navbar móvil (≤ 960) ─── */
@media (max-width: 960px) {
  /* Área táctil ≥ 44px sin cambiar el ícono */
  .menu-btn::before { content: ''; position: absolute; inset: -12px -10px; }
  nav.top.nav-open .nav-panel {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
    padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  }
  .nav-panel-links a { padding: 2px 0; }
}
/* Teléfono en horizontal: menú más compacto */
@media (max-width: 960px) and (max-height: 520px) {
  nav.top.nav-open .nav-panel { padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .nav-panel-links { gap: 14px; }
  .nav-panel-links a { font-size: 19px; }
  .nav-panel-cta { margin-top: 20px; padding: 12px 24px; }
}

/* ─── Hero ─── */
@media (max-width: 992px), (max-height: 560px) {
  .scroll-hint { display: none; }
}
@media (max-width: 992px) and (orientation: landscape) and (max-height: 560px) {
  section#hero { padding: 104px 0 56px; }
  .hero-inner h1 { font-size: clamp(34px, 6vw, 52px); }
}

/* ─── Product Tour ─── */
@media (max-width: 900px) {
  .tour-wide { width: calc(100% - 2 * max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
}
@media (max-width: 640px) {
  .tour-wide { width: calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
  .step-block { padding: 6px 2px; }
  .flujos-chart .xlbl, .flujos-chart .ylbl { font-size: 7.5px; }
}
@media (max-width: 480px) {
  .tour-title { font-size: clamp(30px, 9.4vw, 40px) !important; }
  .tour-stage { border-radius: 14px; }
  .tour-body { padding: 10px; }
  .tour-card { padding: 11px 12px; }
  .tour-card.active { padding: 14px 14px; }
}

/* ─── Tres momentos ─── */
@media (max-width: 768px) {
  .pillars-head { gap: 22px; margin-bottom: 64px; }
  .pillars-head p { max-width: 100%; }
  .pillar { padding-right: 0; }
  .pillar p { max-width: 100%; }
  .pillar .num { font-size: clamp(60px, 17vw, 90px); }
  .pillar h3 { font-size: clamp(22px, 6vw, 26px); }
}

/* ─── Valor institucional ─── */
@media (min-width: 769px) and (max-width: 992px) {
  .value-orbit { aspect-ratio: 25 / 18; }
}
.value-orbit.is-compact {
  aspect-ratio: 720 / 600;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.value-orbit.is-compact .value-svg { overflow: hidden; }
.value-orbit.is-compact .vo-hub { transform: translate(500px, 360px) scale(1.15) translate(-500px, -360px); }
.value-orbit.is-compact .vo-node text:not(:last-of-type) { letter-spacing: 0.16em !important; }
.value-orbit.is-compact .vo-n1  { transform: translate(500px, 120px) scale(1.45) translate(-500px, -120px); }
.value-orbit.is-compact .vo-n2  { transform: translate(708px, 480px) scale(1.45) translate(-708px, -480px); }
.value-orbit.is-compact .vo-n3  { transform: translate(292px, 480px) scale(1.45) translate(-292px, -480px); }
@media (max-width: 600px) {
  .value-orbit.is-compact {
    max-width: none;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
  }
  .value-head { margin-bottom: 28px; }
  .value-close { margin-top: 36px; }
}

/* ─── Integración ─── */
@media (max-width: 768px) {
  .integ-head { margin-bottom: 48px; }
}
.integ-diagram.is-vertical { padding: 16px 0 36px; }
.integ-diagram.is-vertical svg { max-width: 320px; margin: 0 auto; }
.integ-diagram.is-vertical .integ-flow-l { transform: matrix(0, 0.5, -1, 0, 308, 65); }
.integ-diagram.is-vertical .integ-flow-r { transform: matrix(0, 0.5, -1, 0, 308, 155); }
.integ-diagram.is-vertical .integ-hub    { transform: translate(150px, 410px); }
.integ-diagram.is-vertical .integ-node-right { transform: translate(-900px, 507px); }
.integ-diagram.is-vertical .integ-hub text + text { font-size: 9px !important; letter-spacing: 0.08em !important; }

@media (min-width: 561px) and (max-width: 992px) {
  .integ-facets { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .integ-facets .facet:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .integ-facets { grid-template-columns: 1fr; margin-top: 32px; }
}

/* ─── Nosotros: convergencia ─── */
@media (min-width: 641px) and (max-width: 768px) {
  .convergence { height: clamp(340px, 52vw, 420px); min-height: 0; margin: 40px 0 110px; }
  .convergence-svg { position: absolute; inset: 0; height: 100%; }
}
.convergence.is-compact {
  height: auto; min-height: 0;
  aspect-ratio: 400 / 560;
  width: 100%; max-width: 440px;
  margin: 32px auto 72px;
}
.convergence.is-compact .convergence-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.convergence.is-compact .convergence-svg > circle:not(.dot) { display: none; }
.convergence.is-compact .disc {
  top: auto; right: auto; bottom: auto;
  font-size: 9.5px; letter-spacing: 0.2em; padding: 7px 12px;
  transform: translate(-50%, -50%);
}
.convergence.is-compact .disc .k { font-size: 8px; margin-right: 8px; padding-right: 9px; }
.convergence.is-compact .disc.d1 { left: 32.5%; top: 4.3%; }
.convergence.is-compact .disc.d2 { left: 67.5%; top: 15%; }
.convergence.is-compact .disc.d3,
.convergence.is-compact.reveal .disc.d3 { left: 50%; top: 94.6%; bottom: auto; transform: translate(-50%, -50%); }
.convergence.is-compact .core { top: 51.8%; width: min(40%, 170px); height: auto; aspect-ratio: 1 / 1; }
.convergence.is-compact .core .core-inner .n-mark { width: 40px; height: 30px; }
.convergence.is-compact .core .core-inner .name { font-size: 10px; letter-spacing: 0.32em; }
.convergence.is-compact .core .core-inner .sub {
  font-size: 7px; letter-spacing: 0.18em; text-align: center; max-width: 88%; line-height: 1.35;
}

/* ─── Equipo ─── */
@media (min-width: 601px) and (max-width: 992px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── Cierre ─── */
@media (max-width: 768px) {
  .cta-invite { margin-top: clamp(56px, 9vh, 90px); }
}
@media (max-width: 360px) {
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Footer ─── */
@media (max-width: 480px) {
  footer { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  footer .foot-nav { gap: 12px 18px; }
  footer .foot-nav a { padding: 4px 0; }
}

/* ─── Modal: nunca cortado (pantallas bajas / horizontal) ─── */
.modal-backdrop {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
}
.modal-card { margin: auto; flex-shrink: 0; }
.modal-close::before { content: ''; position: absolute; inset: -6px; }
@media (max-width: 480px) {
  .modal-backdrop { padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .modal-field { padding: 12px 12px; gap: 10px; }
  .modal-field .copy-btn { padding: 8px 10px; min-height: 36px; }
  .modal-name { font-size: 22px; }
}
@media (max-width: 400px) {
  .modal-field .val { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
  .modal-field .copy-btn { letter-spacing: 0.1em; }
}
@media (max-height: 560px) {
  .modal-card { padding-top: 32px; padding-bottom: 24px; }
  .modal-eyebrow { margin-bottom: 16px; }
  .modal-avatar { width: 64px; height: 64px; margin-bottom: 14px; }
  .modal-role { margin-bottom: 18px; }
}

@media (max-width: 360px) {
  nav.top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
}

.original-style-1 { margin-top:22px !important; }

.original-style-2 { margin-top:22px !important; }

.original-style-3 { font-family:var(--font) !important;font-size:12.5px !important;letter-spacing:0.32em !important;fill:#e7edf7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-4 { font-family:var(--font) !important;font-size:12.5px !important;letter-spacing:0.32em !important;fill:#e7edf7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-5 { font-family:var(--font) !important;font-size:9px !important;letter-spacing:0.32em !important;fill:#7ba7f7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-6 { font-family:var(--font) !important;font-size:12.5px !important;letter-spacing:0.28em !important;fill:#e7edf7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-7 { font-family:var(--font) !important;font-size:11px !important;letter-spacing:0.02em !important;fill:#9098aa !important; }

.original-style-8 { font-family:var(--font) !important;font-size:9px !important;letter-spacing:0.32em !important;fill:#7ba7f7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-9 { font-family:var(--font) !important;font-size:12.5px !important;letter-spacing:0.28em !important;fill:#e7edf7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-10 { font-family:var(--font) !important;font-size:11px !important;letter-spacing:0.02em !important;fill:#9098aa !important; }

.original-style-11 { font-family:var(--font) !important;font-size:9px !important;letter-spacing:0.32em !important;fill:#7ba7f7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-12 { font-family:var(--font) !important;font-size:12.5px !important;letter-spacing:0.28em !important;fill:#e7edf7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-13 { font-family:var(--font) !important;font-size:11px !important;letter-spacing:0.02em !important;fill:#9098aa !important; }

.original-style-14 { margin-top:22px !important; }

.original-style-15 { font-family:var(--font) !important;font-size:13px !important;letter-spacing:0.28em !important;fill:#7ba7f7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-16 { font-family:var(--font) !important;font-size:13px !important;letter-spacing:0.28em !important;fill:#d3d7e0 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-17 { font-family:var(--font) !important;font-size:16px !important;letter-spacing:0.32em !important;fill:#e7edf7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-18 { font-family:var(--font) !important;font-size:7.5px !important;letter-spacing:0.12em !important;fill:#9098aa !important;text-transform:uppercase !important; }

.original-style-19 { font-family:var(--font) !important;font-size:13px !important;letter-spacing:0.28em !important;fill:#7ba7f7 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-20 { font-family:var(--font) !important;font-size:13px !important;letter-spacing:0.28em !important;fill:#d3d7e0 !important;text-transform:uppercase !important;font-weight:500 !important; }

.original-style-21 { margin-top:22px !important; }
