/* ============================================================
   VN23 — Mapa de navegación (User Flow Figma)
   Sistema visual "Chispa" · DGPC Cátedra Ocampo
   ============================================================ */

:root {
  --navy:        #1A4A92;
  --navy-dark:   #0F2F5E;
  --lime:        #EAFF8F;
  --lime-dark:   #9FB84A;
  --lavender:    #B8A0FF;
  --pink:        #EFB4EA;
  --sky:         #C8DCF5;
  --cream:       #FFF8E1;

  --bg:          #FAFAFA;
  --surface:     #FFFFFF;
  --text:        #14213D;
  --text-soft:   #5A6478;
  --text-muted:  #97A0B3;
  --border:      rgba(20,33,61,0.10);
  --border-strong: rgba(20,33,61,0.18);

  --font: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 980px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-brand {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.brand-mark {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-main {
  list-style: none;
  display: flex;
  gap: .35rem;
}

.nav-main a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  padding: .5rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: all .18s;
}

.nav-main a:hover {
  color: var(--navy);
  background: var(--sky);
  border-color: var(--sky);
}

.nav-main a.active {
  color: var(--navy);
  background: var(--sky);
  border-color: var(--sky);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,160,255,0.35), transparent 70%);
  top: -220px;
  right: -120px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,255,143,0.18), transparent 70%);
  bottom: -180px;
  left: -100px;
  pointer-events: none;
}

.hero-eyebrow {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}

.hero-title {
  position: relative;
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: .85rem;
}

.hero-title span {
  color: var(--lime);
}

.hero-sub {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── MAIN ───────────────────────────────────────────────── */
.main-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,33,61,0.04);
}

.card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  flex-shrink: 0;
}

.card-icon svg { width: 17px; height: 17px; }

.card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  flex: 1;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--lime);
  padding: .5rem 1rem;
  border-radius: 100px;
  transition: all .18s;
  flex-shrink: 0;
}

.card-action:hover {
  background: var(--lime-dark);
  color: #FFFFFF;
}

.card-body {
  padding: 2rem;
}

.card-body--flush {
  padding: 0;
}

/* ─── FIGMA EMBED ────────────────────────────────────────── */
.figma-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--cream);
}

.figma-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── STAGES GRID ────────────────────────────────────────── */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stage-item {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .2s;
}

.stage-item:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(20,33,61,0.07);
}

.stage-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 13px;
  color: var(--navy-dark);
}

.stage-dot--lavender { background: var(--lavender); color: #FFFFFF; }
.stage-dot--sky      { background: var(--sky); }
.stage-dot--pink      { background: var(--pink); }
.stage-dot--lime      { background: var(--lime); }

.stage-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.stage-item p {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.main-footer {
  background: var(--navy-dark);
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.footer-inst {
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: .6rem;
  letter-spacing: .02em;
}

.footer-legal {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-main { gap: .15rem; }
  .nav-main a { padding: .4rem .7rem; font-size: 12px; }
  .brand-label { display: none; }
  .card-header { padding: 1.1rem 1.25rem; }
  .card-body { padding: 1.25rem; }
  .stages-grid { grid-template-columns: 1fr; }
  .figma-embed-wrap { aspect-ratio: 4 / 5; }
}

/* ─── FADE IN ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .card {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .5s ease forwards;
  }
  .card:nth-child(1) { animation-delay: .06s; }
  .card:nth-child(2) { animation-delay: .16s; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
