/* ============================================================
   4U SOLUTIONS — De Personas Para Personas
   Sistema de diseño según design.md v1.0.0
   Filosofía: Humanización Digital (Corazón + Engranaje)
   ============================================================ */

:root {
  /* Paleta corporativa (design.md §2) */
  --purple: #5B2C6F;
  --purple-deep: #45215A;
  --purple-soft: #F3EAF7;
  --cyan: #00B4D8;
  --cyan-text: #0B7C96;
  --cyan-soft: #E4F7FC;
  --magenta: #EC407A;
  --magenta-deep: #C22E66;
  --magenta-soft: #FDE9F1;

  /* Neutros (design.md §2) */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;

  /* Forma y elevación (design.md §4) */
  --radius: 16px;
  --radius-btn: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(91, 44, 111, 0.12);
  --shadow-cta: 0 10px 15px -3px rgba(91, 44, 111, 0.3);
  --gradient-brand: linear-gradient(135deg, var(--purple) 0%, var(--magenta) 100%);

  /* Tipografía (design.md §3) */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Sistema de capas (z-index) — escala única del proyecto */
  --z-header: 30;
  --z-modal: 60;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-quick: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-press: 110ms;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.375rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }
p { margin: 0 0 1rem; color: var(--muted); max-width: 65ch; }
a { color: var(--purple); text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: height 0.3s ease, padding 0.3s ease, background 0.3s ease;
}
.site-header--shrink .nav-bar { height: 56px; }
.site-header--shrink .brand-mark { width: 32px; height: 32px; font-size: 0.8rem; border-radius: 8px; }
.site-header--shrink .brand-name strong { font-size: 0.85rem; }
.site-header--shrink .brand-name span { font-size: 0.65rem; }
.site-header--shrink .nav-links > a, .site-header--shrink .nav-drop > button { padding: 6px 10px; font-size: 0.85rem; }
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(248, 250, 252, 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
.nav-bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gradient-brand); color: #fff;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 0.95rem; font-weight: 800; color: var(--ink); }
.brand-name span { font-size: 0.72rem; font-weight: 500; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink);
  border-radius: 8px;
}
.nav-links > a:hover, .nav-drop > button:hover { background: var(--purple-soft); color: var(--purple); }
.nav-links > a[aria-current="page"] { color: var(--purple); font-weight: 700; }

.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity .22s cubic-bezier(0.32, 0.72, 0, 1), transform .22s cubic-bezier(0.32, 0.72, 0, 1), visibility .22s;
}
.nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.nav-menu a:hover { background: var(--purple-soft); color: var(--purple); }
.nav-menu .etapa-num {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--cyan-text); font-size: 0.72rem; font-weight: 700;
}
.nav-menu a.current { background: var(--purple-soft); color: var(--purple); font-weight: 700; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  font-size: 1.25rem; color: var(--ink); cursor: pointer;
}

.nav-cta { margin-left: 16px; flex-shrink: 0; }

/* ---------- Botones (design.md §4) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 110ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:active { transform: translateY(1px) scale(0.97); transition-duration: 110ms; }
.btn-primary { background: #5B2C6F; color: #fff; }
.btn-primary:hover { background: #45215A; box-shadow: 0 10px 15px -3px rgba(91, 44, 111, 0.3); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 2px solid #00B4D8; color: #0B7C96; }
.btn-secondary:hover { background: #E4F7FC; }
.btn-magenta { background: #EC407A; color: #fff; }
.btn-magenta:hover { background: #C22E66; box-shadow: 0 10px 15px -3px rgba(236, 64, 122, 0.3); transform: translateY(-1px); }
.btn-light { background: #fff; color: #5B2C6F; }
.btn-light:hover { background: #F3EAF7; box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.25); transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Etiqueta / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: #FDE9F1; color: #C22E66;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Hero (index) ---------- */
.hero { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .hl-purple { color: #5B2C6F; }
.hero h1 .hl-magenta { color: #EC407A; }
.hero-sub { font-size: 1.12rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-figure { position: relative; }
.hero-figure::before {
  content: ""; position: absolute; inset: -8% -10%;
  background:
    radial-gradient(45% 45% at 25% 25%, rgba(0, 180, 216, 0.14), transparent 70%),
    radial-gradient(50% 50% at 75% 70%, rgba(236, 64, 122, 0.12), transparent 70%);
  border-radius: 32px;
  z-index: -1;
}
.hero-figure img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12); }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12); padding: 12px 16px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
}
.hero-badge .ph { font-size: 1.3rem; }
.hero-badge-1 { left: -18px; top: 22px; } .hero-badge-1 .ph { color: #00B4D8; }
.hero-badge-2 { right: -10px; bottom: 26px; } .hero-badge-2 .ph { color: #EC407A; }
.hero-badge small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- Manifiesto / Quiénes somos ---------- */
.manifesto {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
}
.manifesto-text { position: relative; z-index: 1; min-width: 0; }
.manifesto-text::after {
  content: "“"; position: absolute; right: -6px; top: -46px;
  font-size: 9rem; font-weight: 800; line-height: 1;
  color: #F3EAF7; pointer-events: none; z-index: -1;
}
.manifesto blockquote { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600; line-height: 1.45; color: var(--ink); max-width: 30ch; }
.manifesto blockquote em { font-style: normal; color: #5B2C6F; }
.manifesto blockquote .em-m { color: #EC407A; }
.team-photo { margin: 0; position: relative; z-index: 1; min-width: 0; }
.team-photo img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 20px; box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.18);
}
@media (max-width: 860px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto blockquote { max-width: none; }
  .team-photo img { aspect-ratio: 16 / 11; }
}

/* Tarjetas (design.md §4) */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12); border-color: rgba(91, 44, 111, 0.25); }

.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar .pillar-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.pillar-icon.purple { background: #F3EAF7; color: #5B2C6F; }
.pillar-icon.cyan { background: #E4F7FC; color: #0B7C96; }
.pillar-icon.magenta { background: #FDE9F1; color: #EC407A; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { font-size: 0.92rem; margin: 0; }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.team-card { text-align: center; padding: 26px 16px; }
.avatar {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 28px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em;
  box-shadow: inset 0 -2px 8px rgba(0,0,0,.12);
}
.avatar-a { background: linear-gradient(135deg, #5B2C6F, #8E44AD); }
.avatar-b { background: linear-gradient(135deg, #00B4D8, #0090AF); }
.avatar-c { background: linear-gradient(135deg, #EC407A, #C2185B); }
.avatar-d { background: linear-gradient(135deg, #7B3FA0, #EC407A); }
.avatar-e { background: linear-gradient(135deg, #0090AF, #5B2C6F); }
.team-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.team-card p { font-size: 0.82rem; margin: 0; font-weight: 500; color: var(--muted); }

/* ---------- Test diagnóstico ---------- */
.test-section { background: linear-gradient(180deg, #F3EAF7 0%, #F8FAFC 100%); }
.test-shell {
  max-width: 760px; margin-inline: auto;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12); padding: clamp(24px, 4vw, 44px);
}
.test-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.test-progress .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.test-progress .bar > span { display: block; height: 100%; width: 0; background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%); border-radius: 999px; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.test-progress .step { font-size: 0.8rem; font-weight: 700; color: var(--muted); min-width: max-content; }
.test-question { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.test-hint { margin-bottom: 24px; }
.test-options { display: grid; gap: 12px; }
.test-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border: 2px solid var(--border); border-radius: 12px;
  background: var(--surface); font: inherit; font-size: 0.98rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 110ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.test-option:hover { border-color: #5B2C6F; background: #F3EAF7; transform: translateY(-1px); }
.test-option:active { transform: translateY(1px) scale(0.98); }
.test-option .opt-key {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: #E4F7FC; color: #0B7C96; font-size: 0.8rem; font-weight: 800;
}
.test-back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  background: none; border: 0; padding: 4px; font: inherit; font-size: 0.88rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.test-back:hover { color: #5B2C6F; }

/* Tarjeta de resultado */
.test-result { display: none; }
.test-result.show { display: block; animation: stepIn 0.5s cubic-bezier(0.32, 0.72, 0, 1) both; }

.result-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12); overflow: hidden;
}
.result-band {
  position: relative; display: flex; align-items: flex-start; gap: 18px;
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%); color: #fff; padding: 28px 32px;
}
.result-band::before,
.result-band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,0.1);
}
.result-band::before { width: 220px; height: 220px; top: -80px; right: -60px; }
.result-band::after { width: 140px; height: 140px; bottom: -40px; left: -30px; }

.result-icon-wrap {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: 22px;
  background: rgba(255,255,255,0.95); box-shadow: 0 12px 24px -8px rgba(0,0,0,0.18);
  display: grid; place-items: center;
}
.result-icon-wrap img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(91,44,111,0.2)); }

.result-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.22); backdrop-filter: blur(6px);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.result-title { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin: 0; line-height: 1.2; }

.result-body { padding: 26px 32px 32px; }
.result-desc { font-size: 1.02rem; color: #64748B; line-height: 1.7; margin-bottom: 20px; }

.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.result-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: #E4F7FC; color: #0B7C96;
}
.result-tag.etapa { background: #F3EAF7; color: #5B2C6F; }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.test-restart { margin-top: 18px; }

.is-hidden { display: none !important; }

/* Entrada animada de cada paso del test */
.test-step-anim { animation: stepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Barra de etapas (iconos) ---------- */
.etapas-bar-wrap {
  position: sticky; top: 72px; z-index: 29;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 10px 0 8px; border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
@supports not (backdrop-filter: blur(1px)) {
  .etapas-bar-wrap { background: rgba(248, 250, 252, 0.97); }
}
.etapas-nav {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(14px, 4vw, 44px); overflow-x: auto; padding: 4px 8px;
  scrollbar-width: thin;
}
.etapas-nav a {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none;
  opacity: 0.45; filter: saturate(0.55);
  transition: opacity 0.25s cubic-bezier(0.32, 0.72, 0, 1), filter 0.25s cubic-bezier(0.32, 0.72, 0, 1), transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.etapas-nav a:hover { opacity: 0.9; filter: saturate(1); transform: translateY(-3px); }
.etapas-nav a:active { transform: scale(0.94); transition-duration: 110ms; }
.etapas-nav a img {
  width: 58px; height: 58px; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(91, 44, 111, 0.14));
}
.etapas-nav a .etapa-name {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.etapas-nav a.active { opacity: 1; filter: none; }
.etapas-nav a.active .etapa-name { color: #5B2C6F; }
.etapas-nav a.active::after {
  content: ""; width: 20px; height: 4px; margin-top: 1px; border-radius: 999px;
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%);
}
.etapas-nav a:not(.active)::after { content: ""; width: 20px; height: 4px; margin-top: 1px; }
@media (max-width: 640px) {
  .etapas-nav { justify-content: flex-start; }
  .etapas-nav a img { width: 46px; height: 46px; }
}

/* ---------- Página de etapa (etapa-idea, etc) ---------- */
.etapa-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.etapa-hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.etapa-icon {
  width: 92px; height: 92px; flex-shrink: 0; border-radius: 26px;
  display: grid; place-items: center; font-size: 2.6rem; color: #fff;
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%); box-shadow: 0 10px 15px -3px rgba(91, 44, 111, 0.3);
}
.etapa-icon-img {
  width: 104px; height: 104px; flex-shrink: 0; object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(91, 44, 111, 0.22));
}
.etapa-hero h1 { margin-bottom: 8px; }
.etapa-hero p { font-size: 1.08rem; margin: 0; }
.etapa-invest {
  margin-left: auto; text-align: right;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 24px; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
}
.etapa-invest small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748B; }
.etapa-invest strong { font-size: 1.4rem; font-weight: 800; color: #5B2C6F; }

.etapa-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.etapa-col { display: flex; flex-direction: column; }
.etapa-col-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.etapa-col-head .col-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0;
}
.etapa-col-head h3 { margin: 0; }
.col-dolor .col-icon { background: #FDE9F1; color: #EC407A; }
.col-solucion .col-icon { background: #E4F7FC; color: #0B7C96; }
.col-aporte .col-icon { background: #F3EAF7; color: #5B2C6F; }
.etapa-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.etapa-col li {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.etapa-col li .ph { flex-shrink: 0; margin-top: 2px; font-size: 1.05rem; }
.col-dolor li .ph { color: #EC407A; }
.col-solucion li .ph { color: #0B7C96; }
.col-aporte li .ph { color: #5B2C6F; }

.invest-band {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%); color: #fff; border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 10px 15px -3px rgba(91, 44, 111, 0.3);
}
.invest-band h2, .invest-band p { color: #fff; margin: 0; }
.invest-band p { opacity: 0.85; font-size: 0.95rem; }
.invest-amount { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.invest-band .btn { flex-shrink: 0; }

/* ---------- CTA final ---------- */
.cta-band {
  background: #5B2C6F; border-radius: 28px; overflow: hidden; position: relative;
  padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 15% 20%, rgba(0, 180, 216, 0.25), transparent 70%),
    radial-gradient(45% 60% at 85% 80%, rgba(236, 64, 122, 0.3), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-inline: auto; margin-bottom: 28px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 480px; background: #FFFFFF; border-radius: 24px;
  padding: 32px; box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35);
  transform: translateY(16px) scale(0.98); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100dvh - 40px); overflow-y: auto;
}
.modal-backdrop.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: #F8FAFC; color: #64748B;
  font-size: 1.1rem; cursor: pointer;
}
.modal-close:hover { background: #F3EAF7; color: #5B2C6F; }
.modal h2 { font-size: 1.5rem; margin-bottom: 6px; }
.modal form { display: grid; gap: 14px; margin-top: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: #F8FAFC;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: #5B2C6F; box-shadow: 0 0 0 3px #F3EAF7; }
.modal-alt { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.modal-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #0B7C96; }
.modal-alt a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #45215A; color: rgba(255,255,255,0.85); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.site-footer .brand-name strong, .site-footer .brand-name span { color: #fff; }
.site-footer .brand-name span { opacity: 0.7; }
.site-footer h4 { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.55); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Reveal al hacer scroll (legacy) ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in.d1 { transition-delay: .08s; } .reveal.in.d2 { transition-delay: .16s; }
.reveal.in.d3 { transition-delay: .24s; } .reveal.in.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.mobile-open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 20px 20px; box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12);
  }
  .nav-links.mobile-open > a, .nav-links.mobile-open .nav-drop > button { width: 100%; justify-content: flex-start; padding: 12px 14px; }
  .nav-links.mobile-open .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 0 4px 12px; display: none;
  }
  .nav-links.mobile-open .nav-drop.open .nav-menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 560px; }
  .etapa-columns { grid-template-columns: 1fr; }
  .invest-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .etapa-invest { margin-left: 0; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-badge-1 { left: 0; top: 10px; }
  .hero-badge-2 { right: 0; bottom: 12px; }
  .result-actions .btn, .hero-actions .btn { flex: 1 1 100%; }
  .nav-cta { display: none; }
  .etapa-hero-grid { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   STAGE PAGES — APPLE-STYLE SINGLE SCROLL NARRATIVE
   ============================================================ */

/* 
   NARRATIVA (estilo Apple "The muscle for your hustle"):
   1. Hero full-screen centrado (ícono + título + descripción + inversión)
   2. Al hacer scroll → Hero se colapsa (icono/sub/inversión fade out, título encoge)
   4. Sticky bar compacta aparece (título + progress ring)
   5. 3 columnas fluyen naturalmente en el scroll (sin scroll por columna)
   6. Tarjetas se revelan al entrar en viewport (IntersectionObserver)
   6. Al final → Bottom cards (Inversión + CTA)
*/

/* ============================================================
   STAGE STORY CONTAINER — Single scroll narrative
   ============================================================ */
.stage-story {
  background: #F8FAFC;
  position: relative;
  overflow-x: hidden;
}

/* Progress bar at top (below header) */
.stage-progress-bar {
  position: fixed; top: 72px; left: 0; right: 0; height: 3px; z-index: 20;
  background: #E2E8F0;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  transition: transform 0.1s linear;
}
@supports (animation-timeline: view()) {
  .stage-progress-bar {
    animation: progressFill linear forwards;
    animation-timeline: view();
    animation-range: 0 100%;
  }
  @keyframes progressFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .stage-progress-bar { display: none; }
}

/* ============================================================
   ESCENA 1: HERO FULL-SCREEN (Pantalla inicial)
   ============================================================ */
.stage-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px) clamp(24px, 4vw, 48px);
  background: #F8FAFC;
  overflow: hidden;
}
.stage-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 10% 10%, rgba(91, 44, 111, 0.06), transparent 60%),
    radial-gradient(40% 50% at 90% 90%, rgba(236, 64, 122, 0.05), transparent 60%);
  pointer-events: none;
}

.stage-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
  position: relative;
  will-change: transform, opacity;
}

.stage-hero-icon {
  width: clamp(140px, 20vw, 220px);
  height: clamp(140px, 20vw, 220px);
  margin: 0 auto clamp(24px, 4vw, 40px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%);
  box-shadow: 
    0 20px 40px -12px rgba(91, 44, 111, 0.35),
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 0 80px -20px rgba(236, 64, 122, 0.2);
  position: relative;
  will-change: transform, opacity;
}
.stage-hero-icon img {
  width: 65%; height: 65%; object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(91, 44, 111, 0.3));
}

.stage-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin: 0 0 clamp(12px, 2vw, 20px);
  will-change: transform, opacity;
}
.stage-hero-title .num { color: #5B2C6F; font-weight: 800; }
.stage-hero-title .name { color: #0F172A; }

.stage-hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  color: #64748B;
  max-width: 60ch;
  margin: 0 auto clamp(24px, 4vw, 40px);
  will-change: transform, opacity;
}

.stage-hero-investment {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: clamp(24px, 4vw, 40px);
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  will-change: transform, opacity;
}
.stage-hero-investment .label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase.
  color: #64748B;
}
.stage-hero-investment .amount {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em; color: #5B2C6F.
}

.scroll-indicator {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px.
  margin-top: clamp(32px, 5vw, 56px);
  color: #64748B; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase.
  opacity: 0.6;
  animation: scrollPulse 2.5s ease-in-out infinite;
  will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; opacity: 0.4; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}
.scroll-indicator svg { width: 24px; height: 24px; stroke: currentColor; }

/* Estados de colapso controlados por JS */
.stage-hero .stage-hero-icon,
.stage-hero .stage-hero-sub,
.stage-hero .stage-hero-investment,
.stage-hero .scroll-indicator {
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, opacity;
}
.stage-hero[data-stage="collapsed"] .stage-hero-icon,
.stage-hero[data-stage="collapsed"] .stage-hero-sub,
.stage-hero[data-stage="collapsed"] .stage-hero-investment,
.stage-hero[data-stage="collapsed"] .scroll-indicator {
  opacity: 0;
  transform: translateY(-30px) scale(0.9);
  pointer-events: none;
}
.stage-hero[data-stage="collapsed"] .stage-hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
}

/* ============================================================
   STICKY COMPACT BAR — Aparece cuando el hero colapsa
   ============================================================ */
.stage-sticky-bar {
  position: sticky;
  top: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.12);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, opacity;
}
.stage-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@supports not (backdrop-filter: blur(1px)) {
  .stage-sticky-bar { background: #FFFFFF; }
}
@media (prefers-reduced-transparency: reduce) {
  .stage-sticky-bar { background: #FFFFFF !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

.stage-sticky-bar .title-compact {
  display: flex; align-items: center; gap: 12px.
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; color: #0F172A.
}
.stage-sticky-bar .title-compact .num {
  display: inline-flex; align-items: center; justify-content: center.
  width: 32px; height: 32px; border-radius: 10px.
  background: #F3EAF7; color: #5B2C6F.
  font-size: 0.8rem; font-weight: 800.
}
.stage-sticky-bar .progress-ring {
  width: 44px; height: 44px; flex-shrink: 0.
  transform: rotate(-90deg);
}
.stage-sticky-bar .progress-ring circle {
  fill: none; stroke: #E2E8F0; stroke-width: 3.
}
.stage-sticky-bar .progress-ring .progress {
  stroke: #5B2C6F; stroke-linecap: round.
  stroke-dasharray: 113; stroke-dashoffset: 113.
  transition: stroke-dashoffset 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
@supports not (backdrop-filter: blur(1px)) {
  .stage-sticky-bar { background: #FFFFFF; }
}
@media (prefers-reduced-transparency: reduce) {
  .stage-sticky-bar { background: #FFFFFF !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* ============================================================
   THREE-COLUMN FLOW (fluyen naturalmente en el scroll)
   ============================================================ */
.stage-grid-section {
  position: relative;
  z-index: 10;
  padding-top: 0; /* NO padding-top 100dvh - el hero ya ocupa 100dvh */
}

.stage-grid-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px) 0;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  /* NO sticky, NO height fix - fluye en el documento */
}

/* Column dividers (líneas verticales sutiles) */
.stage-grid-wrapper::before,
.stage-grid-wrapper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px; background: #E2E8F0.
  pointer-events: none; z-index: 1.
}
.stage-grid-wrapper::before { left: 33.333%; }
.stage-grid-wrapper::after { right: 33.333%; }

.stage-col {
  position: relative;
  /* NO sticky, NO height fix, NO overflow - fluye en el documento */
  display: flex;
  flex-direction: column;
  padding: 0 clamp(16px, 3vw, 32px);
}

.stage-col::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0.
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--col-bg, transparent) 100%);
}
.stage-col--dolores { --col-bg: rgba(236, 64, 122, 0.03); }
.stage-col--soluciones { --col-bg: rgba(0, 180, 216, 0.03); }
.stage-col--aporte { --col-bg: rgba(91, 44, 111, 0.03); }

/* Column header - parte del flujo, NO sticky */
.stage-col-header {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #E2E8F0;
}
.stage-col-label {
  display: inline-flex; align-items: center; gap: 8px.
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase.
  color: #64748B; margin-bottom: 10px.
}
.stage-col-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.015em; color: #0F172A.
  margin: 0;
}

.stage-col-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   STAGE CARDS — Reveal on scroll
   ============================================================ */
.stage-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 16px;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
}

.stage-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12);
}

.stage-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
}

.stage-col--dolores .stage-card-icon { background: #FDE9F1; color: #EC407A; }
.stage-col--soluciones .stage-card-icon { background: #E4F7FC; color: #0B7C96; }
.stage-col--aporte .stage-card-icon { background: #F3EAF7; color: #5B2C6F; }

.stage-card-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
}
.stage-card-text {
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748B;
  margin: 0;
}

/* ============================================================
   APORTE COMPARISON SLIDER (Antes/Después)
   ============================================================ */
.aporte-comparison {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.comparison-slider {
  position: relative; width: 100%; height: 220px; overflow: hidden.
}
.comparison-before,
.comparison-after {
  position: absolute; inset: 0; width: 100%; height: 100%.
  background-size: contain; background-position: center; background-repeat: no-repeat.
  background-color: #FFFFFF;
  transition: clip-path 0.1s linear;
}
.comparison-before {
  filter: grayscale(1) blur(2px) brightness(0.95);
  clip-path: inset(0 50% 0 0);
}
.comparison-after { clip-path: inset(0 0 0 50%). }
.comparison-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10.
  width: 44px; height: 44px; border-radius: 50%.
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%); color: #fff.
  display: grid; place-items: center; cursor: ew-resize.
  box-shadow: 0 4px 16px -4px rgba(91, 44, 111, 0.5);
  touch-action: none;
}
.comparison-handle .ph { font-size: 1.1rem; }
.comparison-labels {
  display: flex; justify-content: space-between; padding: 1rem 1.5rem.
  font-size: 0.8rem; font-weight: 600; color: #64748B.
}
.comparison-labels .label-before { opacity: 0.7; }
.comparison-labels .label-after { color: #5B2C6F; font-weight: 700; }

/* ============================================================
   ESCENA 3: BOTTOM CARDS (Inversión + CTA)
   ============================================================ */
.stage-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 80px);
}

.bottom-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.bottom-card--investment {
  text-align: left;
}
.bottom-card--cta {
  text-align: right;
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%);
  border: none;
  color: #fff;
}

.bottom-card-label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase.
  color: #64748B; margin-bottom: 8px; display: block.
}
.bottom-card--cta .bottom-card-label { color: rgba(255,255,255,0.7); }

.bottom-card-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1.
  color: #5B2C6F; margin-bottom: 12px.
}
.bottom-card--cta .bottom-card-value { color: #fff; }

.bottom-card-text {
  font-size: 0.95rem; line-height: 1.6; color: #64748B; margin: 0 0 20px; max-width: 30ch.
}
.bottom-card--cta .bottom-card-text { color: rgba(255,255,255,0.85); }

.btn-bottom {
  align-self: flex-end;
  background: transparent; border: 2px solid #5B2C6F; color: #5B2C6F.
  padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 1rem.
  transition: background 0.25s cubic-bezier(0.32, 0.72, 0, 1), color 0.25s cubic-bezier(0.32, 0.72, 0, 1), transform 110ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-bottom:hover { background: #F3EAF7; transform: translateY(-1px); }
.btn-bottom:active { transform: translateY(1px) scale(0.98); transition-duration: 110ms; }
.bottom-card--cta .btn-bottom { border-color: #fff; color: #fff; }
.bottom-card--cta .btn-bottom:hover { background: rgba(255,255,255,0.15); }

/* ============================================================
   PROGRESS BAR (top)
   ============================================================ */
.stage-progress-bar {
  position: fixed; top: 72px; left: 0; right: 0; height: 3px; z-index: 20.
  background: #E2E8F0;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  transition: transform 0.1s linear;
}
@supports (animation-timeline: view()) {
  .stage-progress-bar {
    animation: progressFill linear forwards;
    animation-timeline: view();
    animation-range: 0 100%;
  }
  @keyframes progressFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .stage-progress-bar { display: none; }
}

/* ============================================================
   STICKY COMPACT BAR — Aparece cuando el hero colapsa
   ============================================================ */
.stage-sticky-bar {
  position: sticky;
  top: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.12);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, opacity;
}
.stage-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@supports not (backdrop-filter: blur(1px)) {
  .stage-sticky-bar { background: #FFFFFF; }
}
@media (prefers-reduced-transparency: reduce) {
  .stage-sticky-bar { background: #FFFFFF !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

.stage-sticky-bar .title-compact {
  display: flex; align-items: center; gap: 12px.
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; color: #0F172A.
}
.stage-sticky-bar .title-compact .num {
  display: inline-flex; align-items: center; justify-content: center.
  width: 32px; height: 32px; border-radius: 10px.
  background: #F3EAF7; color: #5B2C6F.
  font-size: 0.8rem; font-weight: 800.
}
.stage-sticky-bar .progress-ring {
  width: 44px; height: 44px; flex-shrink: 0.
  transform: rotate(-90deg);
}
.stage-sticky-bar .progress-ring circle {
  fill: none; stroke: #E2E8F0; stroke-width: 3.
}
.stage-sticky-bar .progress-ring .progress {
  stroke: #5B2C6F; stroke-linecap: round.
  stroke-dasharray: 113; stroke-dashoffset: 113.
  transition: stroke-dashoffset 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
@supports not (backdrop-filter: blur(1px)) {
  .stage-sticky-bar { background: #FFFFFF; }
}
@media (prefers-reduced-transparency: reduce) {
  .stage-sticky-bar { background: #FFFFFF !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stage-grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }
  .stage-bottom { grid-template-columns: 1fr; }
  .stage-progress-bar { display: none; }
}

@media (max-width: 640px) {
  .stage-hero { padding: clamp(32px, 8vw, 60px) 20px; }
  .stage-hero-icon { width: 120px; height: 120px; }
  .stage-col { padding: 0 16px; }
  .stage-card { padding: 20px; }
  .bottom-card { padding: 24px 20px; }
  .btn-bottom { width: 100%; text-align: center; }
  .stage-sticky-bar { padding: 10px 16px; }
  .stage-sticky-bar .title-compact .name { display: none; }
}

/* ============================================================
   COLUMN HEADERS — Con marco y margen izquierdo
   ============================================================ */
.stage-col-header {
  position: relative;
  padding: 20px 24px;
  margin-bottom: 24px;
  margin-left: -24px;
  padding-left: 40px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  border-left: 4px solid var(--col-accent, #5B2C6F);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
}
.stage-col--dolores .stage-col-header { --col-accent: #EC407A; }
.stage-col--soluciones .stage-col-header { --col-accent: #00B4D8; }
.stage-col--aporte .stage-col-header { --col-accent: #5B2C6F; }

.stage-col-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748B; margin-bottom: 10px;
}
.stage-col-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.015em; color: #0F172A;
  margin: 0;
}

/* ============================================================
   STAGE CARDS — Con marco y icono alineado al título
   ============================================================ */
.stage-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 16px;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
}
.stage-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(91, 44, 111, 0.12);
}
.stage-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
}
.stage-col--dolores .stage-card-icon { background: #FDE9F1; color: #EC407A; }
.stage-col--soluciones .stage-card-icon { background: #E4F7FC; color: #0B7C96; }
.stage-col--aporte .stage-card-icon { background: #F3EAF7; color: #5B2C6F; }

.stage-card-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
}
.stage-card-text {
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748B;
  margin: 0;
}

/* ============================================================
   STAGE INVESTMENT BANNER (bajo servicios) — estilo pill como stage-hero-investment
   ============================================================ */
.stage-investment-banner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 40px);
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  will-change: transform, opacity;
}
.stage-investment-banner-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
}
.stage-investment-banner-amount {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #5B2C6F;
}
.stage-investment-banner-text {
  display: none;
}

/* Bottom card CTA only (no investment card) */
.bottom-card--cta {
  text-align: right;
  background: linear-gradient(135deg, #5B2C6F 0%, #EC407A 100%);
  border: none;
  color: #fff;
}

/* Reduce motion fallbacks */
@media (prefers-reduced-motion: reduce) {
  .stage-hero-icon, .stage-hero-title, .stage-hero-sub, .stage-hero-investment,
  .scroll-indicator, .stage-sticky-bar, .stage-card, .stage-bottom {
    transition: none !important;
    animation: none !important;
  }
  .scroll-indicator { animation: none; }
  .stage-card { opacity: 1 !important; transform: none !important; }
  .stage-bottom { opacity: 1 !important; transform: none !important; }
}
