/* ============================================================
   VN23 — App / Prototipo 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,
.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.6rem, 7vw, 4.5rem);
  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;
  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; }

/* ─── PROTOTIPO — PHONE MOCKUP ───────────────────────────── */
.proto-section {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(20,33,61,0.04);
}

.proto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.4rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.proto-header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.proto-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;
}

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

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

.proto-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;
}

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

/* Stage: navy background with dot grid */
.proto-stage {
  position: relative;
  background: var(--navy);
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3rem 2rem;
}

/* Dot grid */
.proto-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Glow blobs */
.proto-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.proto-glow--1 {
  width: 420px; height: 420px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(184,160,255,0.30), transparent 70%);
}

.proto-glow--2 {
  width: 320px; height: 320px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(234,255,143,0.14), transparent 70%);
}

/* VN23 watermark */
.proto-watermark {
  position: absolute;
  bottom: -0.05em;
  right: -0.02em;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(8rem, 18vw, 14rem);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.08);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* figma prototype iframe — full stage */
.proto-iframe {
  position: relative;
  z-index: 10;
  width: min(500px, 90%);
  height: 620px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.25);
}

/* ─── PANTALLAS CLAVE ────────────────────────────────────── */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.screen-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;
}

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

.screen-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);
}

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

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

.screen-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;
  color: rgba(255,255,255,0.45);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .screens-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; }
  .screens-grid { grid-template-columns: 1fr; }
  .proto-stage { min-height: 520px; padding: 2rem 1rem; }
  .proto-iframe { height: 480px; }
  .proto-header { padding: 1.1rem 1.25rem; }
  .proto-title { font-size: 11px; }
}

/* ─── 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; }
  .card:nth-child(3) { animation-delay: .26s; }
}

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