/* ===== Design tokens — colores extraídos del logo InnovaSTEM Chile ===== */
:root {
  --navy-950: #060f1f;
  --navy-900: #0a1a33;
  --navy-800: #0f2545;
  --navy-700: #16345f;
  --green-600: #2f9e58;
  --green-500: #3ab469;
  --green-400: #57cf84;
  --teal-500: #1ea6b8;
  --teal-400: #34c3d6;
  --ink: #10233f;
  --ink-soft: #4a5c78;
  --paper: #f6f9fc;
  --white: #ffffff;
  --border: #e3e9f2;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 10px rgba(10, 26, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 26, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 15, 31, 0.35);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 1em; }

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

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--green-500), var(--teal-500));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 158, 88, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47, 158, 88, 0.36); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(10,26,51,0.18);
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.3s ease;
}
.header.is-scrolled .brand__text { color: var(--navy-900); }
.brand__accent { color: var(--green-400); }
.header.is-scrolled .brand__accent { color: var(--green-500); }
.brand__text small {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
  transition: color 0.3s ease;
}
.header.is-scrolled .brand__text small { color: var(--ink-soft); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a { color: var(--white); opacity: 0.85; transition: opacity 0.2s ease, color 0.3s ease; }
.nav a:hover { opacity: 1; }
.header.is-scrolled .nav a { color: var(--navy-900); }
.nav__cta {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  opacity: 1 !important;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav__cta:hover { background: rgba(255,255,255,0.2); }
.header.is-scrolled .nav__cta {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.header.is-scrolled .nav__cta:hover { background: var(--navy-800); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}
.header.is-scrolled .hamburger span { background: var(--navy-900); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 170px 0 60px;
  background: radial-gradient(120% 120% at 15% 10%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  top: -250px; right: -200px;
  background: radial-gradient(circle, rgba(58, 180, 105, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__glow::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  bottom: -350px; left: -150px;
  background: radial-gradient(circle, rgba(30, 166, 184, 0.3), transparent 70%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-400);
  background: rgba(58, 180, 105, 0.12);
  border: 1px solid rgba(58, 180, 105, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow--dark {
  color: var(--green-600);
  background: rgba(47, 158, 88, 0.08);
  border-color: rgba(47, 158, 88, 0.25);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__lead {
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero__art { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.hero__logo-frame {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__logo-frame img { border-radius: 50%; }

.orbit-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.orbit-card--1 { top: 10px; left: -10px; animation: float 5s ease-in-out infinite; }
.orbit-card--2 { bottom: 40px; right: -20px; animation: float 5.5s ease-in-out infinite 0.4s; }
.orbit-card--3 { bottom: -10px; left: 30px; animation: float 6.2s ease-in-out infinite 0.8s; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green-400); }
.dot--teal { background: var(--teal-400); }
.dot--navy { background: #9fb4d6; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.stats {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-400), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.section--dark h2, .section--dark p { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.68); }
.section--light { background: var(--white); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.94rem; margin-bottom: 0; }

.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--navy { background: rgba(15, 37, 69, 0.08); color: var(--navy-800); }
.card__icon--green { background: rgba(47, 158, 88, 0.12); color: var(--green-600); }
.card__icon--teal { background: rgba(30, 166, 184, 0.12); color: var(--teal-500); }

.card--dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: rgba(255,255,255,0.62); }
.card__step {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--green-400);
  background: rgba(58, 180, 105, 0.14);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ===== Modules (Programa) ===== */
.modules { display: flex; flex-direction: column; gap: 16px; }
.module {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.module:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 158, 88, 0.35);
}
.module__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 37, 69, 0.2);
}
.module__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.module__body p { font-size: 0.92rem; margin-bottom: 12px; }
.module__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.module__tags span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal-500);
  background: rgba(30, 166, 184, 0.09);
  padding: 5px 12px;
  border-radius: 100px;
}
.module__hours {
  justify-self: end;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-600);
  background: rgba(47, 158, 88, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
}

.programa__footnote {
  margin-top: 32px;
  text-align: center;
  padding: 20px 28px;
  background: rgba(47, 158, 88, 0.06);
  border: 1px dashed rgba(47, 158, 88, 0.3);
  border-radius: var(--radius-md);
}
.programa__footnote p { margin: 0; color: var(--ink); font-size: 0.94rem; }

/* ===== Implementacion ===== */
.implementacion__copy { max-width: 680px; margin: 0 auto 48px; text-align: center; }

.tag-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.tag-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow-sm); }
.tag-card h4 {
  font-size: 1.05rem;
  color: var(--navy-900);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.tag-card h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--green-500), var(--teal-500));
}
.tag-card p { font-size: 0.9rem; margin: 0; }

/* ===== Beneficios ===== */
.benefit { text-align: center; padding: 10px; }
.benefit__icon { font-size: 2rem; margin-bottom: 14px; }
.benefit h4 { font-size: 1rem; color: var(--navy-900); }
.benefit p { font-size: 0.88rem; }

/* ===== Equipo ===== */
.person {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px;
}
.person__avatar {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--teal-500));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.person h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.person__role { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ===== Contacto ===== */
.contact { background: var(--paper); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__copy { max-width: 420px; }
.contact__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
.field input, .field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(30, 166, 184, 0.15);
  background: var(--white);
}
.form__note { text-align: center; font-size: 0.85rem; color: var(--green-600); min-height: 1.2em; margin: 0; }

/* ===== Footer ===== */
.footer { background: var(--navy-950); padding: 48px 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand--footer .brand__text { color: var(--white); }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.88rem; }
.footer__nav a { color: rgba(255,255,255,0.6); }
.footer__nav a:hover { color: var(--white); }
.footer__copy { width: 100%; text-align: center; color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { height: 320px; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .module { grid-template-columns: 50px 1fr; }
  .module__hours { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  .grid--3, .grid--4, .grid--5, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 130px; }
  .section { padding: 70px 0; }
  .nav[data-open="true"] {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .nav[data-open="true"] a { color: var(--navy-900); }
  .nav[data-open="true"] .nav__cta {
    background: var(--navy-900);
    border-color: var(--navy-900);
  }
}
