/* ============ Tokens ============ */
:root {
  --purple: #8B6FD9;
  --purple-dark: #5B3E98;
  --lavender-light: #E8E1FA;
  --lavender-bg: #F6F3FE;
  --teal: #3FBFAD;
  --teal-dark: #258B7D;
  --ink: #2B2740;
  --gray: #69647A;
  --gray-light: #E0DBEC;
  --cream: #FBF9F6;
  --white: #FFFFFF;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(91, 62, 152, 0.12);
  --container: 1200px;
}

/* ============ Reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--ink); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--purple); color: var(--white); }
.btn--primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--purple-dark); border: 1.5px solid var(--purple); }
.btn--outline:hover { background: var(--lavender-light); }
.btn--sm { padding: 10px 22px; font-size: 14px; }
.btn--block { width: 100%; padding: 16px; }

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-size: 16px; }
.brand__text small { font-size: 11px; color: var(--gray); }
.brand--light .brand__text small { color: var(--lavender-light); }
.brand--light .brand__text strong { color: var(--white); }

.nav { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); transition: color .15s ease; }
.nav a:hover { color: var(--purple); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { background: var(--lavender-bg); overflow: hidden; }
.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 90px 24px;
}
.hero__copy { flex: 1; max-width: 560px; }
.badge {
  display: inline-block;
  background: var(--lavender-light);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 48px; line-height: 1.15; margin-bottom: 20px; }
.hero__sub { font-size: 17px; color: var(--gray); max-width: 480px; margin-bottom: 28px; line-height: 1.6; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__trust { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--gray); }

.hero__media { flex: 1; max-width: 480px; position: relative; }
.hero__image {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
}
.hero__blob { position: absolute; border-radius: 50%; z-index: 1; filter: blur(2px); }
.hero__blob--1 { width: 140px; height: 140px; background: var(--teal); opacity: .35; top: -30px; right: -30px; }
.hero__blob--2 { width: 100px; height: 100px; background: var(--purple); opacity: .25; bottom: -20px; left: -20px; }

.placeholder-img {
  background: var(--lavender-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 500;
}

/* ============ Section head ============ */
.section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; margin-bottom: 12px; }
.section-head p { color: var(--gray); font-size: 16px; }

/* ============ Cursos ============ */
.cursos { padding: 100px 0; background: var(--white); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--lavender-bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
}
.card__icon--purple { background: var(--purple); }
.card__icon--teal { background: var(--teal-dark); }
.card h3 { font-size: 19px; }
.card p { font-size: 14px; color: var(--gray); line-height: 1.6; flex: 1; }
.card__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-dark);
  background: var(--lavender-light);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.card__link { font-size: 14px; font-weight: 600; color: var(--purple-dark); }

/* ============ Metodologia ============ */
.metodologia { background: var(--purple-dark); padding: 72px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat__icon { font-size: 28px; display: block; margin-bottom: 10px; }
.stat h4 { color: var(--white); font-size: 18px; margin-bottom: 6px; }
.stat p { color: var(--lavender-light); font-size: 13px; line-height: 1.5; }

/* ============ Testimonios ============ */
.testimonios { background: var(--lavender-bg); padding: 100px 0; }
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-card__stars { color: var(--purple); font-size: 15px; letter-spacing: 2px; }
.testi-card p { font-size: 14.5px; color: var(--gray); line-height: 1.6; flex: 1; }
.testi-card__person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.testi-card__person strong { display: block; font-size: 14px; font-family: var(--font-head); }
.testi-card__person small { font-size: 12px; color: var(--purple-dark); }

/* ============ Instagram ============ */
.instagram { padding: 100px 0; background: var(--white); text-align: center; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.ig-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  font-size: 28px;
  transition: transform .2s ease, opacity .2s ease;
}
.ig-item:hover { transform: scale(1.04); opacity: .85; }
.ig-follow { display: inline-flex; }

/* ============ Contacto ============ */
.contacto { padding: 100px 0; background: var(--lavender-bg); }
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contacto__info h2 { font-size: 32px; margin: 8px 0 16px; }
.contacto__info p { color: var(--gray); margin-bottom: 28px; line-height: 1.6; }
.contacto__list { display: flex; flex-direction: column; gap: 14px; }
.contacto__list li { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.contacto__list a:hover { color: var(--purple-dark); }

.contacto__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  transition: border-color .15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.form-row.has-error input,
.form-row.has-error textarea { border-color: #E0685F; }
.form-error { font-size: 12px; color: #E0685F; min-height: 14px; }
.form-status { font-size: 14px; font-weight: 500; text-align: center; min-height: 20px; }
.form-status.success { color: var(--teal-dark); }
.form-status.error { color: #E0685F; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--gray-light); padding-top: 64px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { font-size: 14px; color: var(--gray-light); margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer__col h5 { color: var(--white); font-family: var(--font-head); font-size: 14px; margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: var(--gray-light); transition: color .15s ease; }
.footer__col a:hover { color: var(--teal); }
.footer__bottom { text-align: center; padding: 24px; font-size: 13px; color: var(--gray); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cards-grid--3 { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .contacto__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav, .nav__cta { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06);
  }
  .nav__toggle { display: flex; }

  .hero__inner { flex-direction: column; padding: 56px 24px; }
  .hero__copy { max-width: 100%; text-align: left; }
  .hero h1 { font-size: 34px; }
  .hero__media { max-width: 100%; }

  .cards-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; text-align: center; }
  .stat__icon { margin-left: auto; margin-right: auto; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .section-head h2 { font-size: 26px; }
  .contacto__form { padding: 28px; }
}
