:root {
  --home-ink: #0b1721;
  --home-green: #123d35;
  --home-green-light: #1b594c;
  --home-gold: #e7a821;
  --home-paper: #fbfaf6;
  --home-white: #fff;
  --home-muted: #59636a;
}

body {
  margin: 0;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: "DM Sans", sans-serif;
}

.home-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  height: 82px;
  padding: 0 6%;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 17, 25, 0.82);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.home-brand { display: inline-flex; align-items: center; }
.home-brand img, .home-footer-brand img { border: 1px solid rgba(231, 168, 33, .62); border-radius: 3px; }
.home-brand img { display: block; width: 174px; height: auto; filter: none; }
.home-nav { display: flex; align-items: center; gap: 27px; }
.home-nav a { color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.home-nav a::after { display: none; }
.home-nav a:hover { color: var(--home-gold); }
.home-nav .home-login { margin-left: 8px; }
.home-nav .home-nav-cta {
  padding: 11px 17px;
  border-radius: 3px;
  background: var(--home-gold);
  color: var(--home-ink);
}
.home-nav .home-nav-cta:hover { background: #f4bd4b; color: var(--home-ink); }
.home-menu-toggle { display: none; }

.home-hero {
  position: relative;
  display: flex;
  min-height: max(640px, 100svh);
  align-items: center;
  overflow: hidden;
  padding: 110px 9% 86px;
  color: #fff;
  background: #09273c url("imagenes/fonfo.png") center 43% / cover no-repeat;
}
.home-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 17, 24, 0.91) 0%, rgba(5, 17, 24, 0.76) 48%, rgba(5, 17, 24, 0.14) 100%);
  content: "";
}
.home-hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-width: 720px;
  padding: 0;
  text-align: left;
  animation: home-rise-in 700ms ease-out both;
}
.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: var(--home-gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.home-eyebrow > span { width: 24px; height: 2px; background: var(--home-gold); }
.home-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.08;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  filter: none;
  animation: none;
}
.home-hero-copy { max-width: 575px; margin: 22px 0 0; color: #e4e9e9; font-size: 1.15rem; line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.home-button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.home-button:hover { transform: translateY(-2px); }
.home-button-gold { background: var(--home-gold); color: var(--home-ink); }
.home-button-gold:hover { background: #f4bd4b; }
.home-button-outline { border-color: rgba(255, 255, 255, 0.72); color: #fff; }
.home-button-outline:hover { border-color: var(--home-gold); color: var(--home-gold); }
.home-hero-note { margin: 25px 0 0; color: #d7dfdf; font-size: 0.85rem; }
.hero-about-link {
  position: absolute;
  right: 6%;
  bottom: 31px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.84rem;
  text-decoration: none;
}
.hero-about-link span:first-child { color: var(--home-gold); font-weight: 800; }

.home-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path-link {
  position: relative;
  display: flex;
  min-height: 205px;
  flex-direction: column;
  justify-content: center;
  padding: 31px 12%;
  background: var(--home-gold);
  color: var(--home-ink);
  text-decoration: none;
  transition: filter 160ms ease;
}
.path-link:hover { filter: brightness(1.06); }
.path-link-green { background: var(--home-green); color: #fff; }
.path-link-light { background: #e9e7dc; }
.path-number { margin-bottom: 12px; font-size: 0.72rem; font-weight: 800; }
.path-title { max-width: 280px; font-family: Manrope, sans-serif; font-size: 1.55rem; font-weight: 800; }
.path-description { max-width: 300px; margin-top: 8px; font-size: 0.91rem; line-height: 1.5; }
.path-arrow { position: absolute; top: 30px; right: 9%; font-size: 1.35rem; }

.home-how { padding: 100px 9% 105px; }
.home-section-heading { max-width: 740px; margin: 0 auto; text-align: center; }
.home-eyebrow-dark { justify-content: center; color: var(--home-green); }
.home-eyebrow-dark > span { background: var(--home-green); }
.home-section-heading h2, .about-copy h2, .home-teacher-cta h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
}
.home-section-heading h2 em, .about-copy h2 em { color: var(--home-green-light); font-style: normal; }
.home-section-heading > p:last-child { max-width: 640px; margin: 17px auto 0; color: var(--home-muted); font-size: 1rem; line-height: 1.7; }
.home-steps { display: grid; max-width: 1120px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin: 62px auto 0; }
.home-step { padding-top: 18px; border-top: 2px solid #c9c8bc; }
.step-index { color: #bd8010; font-size: 0.78rem; font-weight: 800; }
.home-step h3 { margin: 14px 0 8px; font-family: Manrope, sans-serif; font-size: 1.25rem; }
.home-step p { margin: 0; color: var(--home-muted); line-height: 1.65; }
.home-text-link { display: table; margin: 38px auto 0; color: var(--home-green); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.home-about { display: grid; min-height: 470px; grid-template-columns: 1fr 1fr; background: var(--home-green); color: #fff; }
.about-photo { min-height: 390px; background: url("imagenes/niño-risueño.png") center / cover no-repeat; }
.about-copy { display: flex; max-width: 700px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 72px 11%; }
.about-copy .home-eyebrow { color: #f4bd4b; }
.about-copy h2 { max-width: 560px; font-size: 2.35rem; }
.about-copy h2 em { color: #f4bd4b; }
.about-copy > p:not(.home-eyebrow) { max-width: 545px; margin: 19px 0 25px; color: #e1e8e5; line-height: 1.7; }
.home-button-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.home-button-light:hover { border-color: var(--home-gold); color: var(--home-gold); }

.home-teacher-cta { display: flex; min-height: 265px; align-items: center; justify-content: space-between; gap: 35px; padding: 55px 9%; background: #f1c45e; }
.home-teacher-cta .home-eyebrow { margin-bottom: 11px; }
.home-teacher-cta h2 { font-size: 2.25rem; }
.home-teacher-cta p:last-child { max-width: 580px; margin: 11px 0 0; color: #3b3423; line-height: 1.6; }
.home-button-dark { flex-shrink: 0; background: var(--home-ink); color: #fff; }
.home-button-dark:hover { background: var(--home-green); }

.home-footer { position: static; display: flex; min-height: 185px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 6%; background: var(--home-ink); color: #cbd1d2; }
.home-footer-brand img { display: block; width: 155px; height: auto; filter: none; }
.home-footer p { margin: 0; font-size: 0.85rem; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.home-footer nav a { color: #fff; font-size: 0.83rem; text-decoration: none; }
.home-footer nav a:hover { color: var(--home-gold); }
.home-footer > span { font-size: 0.78rem; }

@keyframes home-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .home-header { height: 74px; padding: 0 5%; }
  .home-brand img { width: 150px; }
  .home-menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
  }
  .home-menu-toggle span { width: 18px; height: 2px; background: #fff; }
  .home-nav { position: absolute; top: 74px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 9px 5% 18px; background: var(--home-ink); }
  .home-nav.is-open { display: flex; flex-direction: column; }
  .home-nav a { padding: 12px 0; }
  .home-nav .home-login { margin-left: 0; }
  .home-nav .home-nav-cta { align-self: flex-start; margin-top: 5px; padding: 11px 17px; }
  .home-hero { min-height: 680px; padding-right: 7%; padding-left: 7%; }
  .home-hero h1 { font-size: 3.1rem; }
  .home-paths { grid-template-columns: 1fr; }
  .path-link { min-height: 165px; padding: 27px 8%; }
  .home-about { grid-template-columns: 0.9fr 1.1fr; }
  .about-copy { padding: 55px 9%; }
  .home-footer { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .home-hero { min-height: 680px; align-items: flex-end; padding: 120px 23px 95px; background-position: 58% center; }
  .home-hero::before { background: linear-gradient(0deg, rgba(5,17,24,.94) 0%, rgba(5,17,24,.8) 48%, rgba(5,17,24,.3) 100%); }
  .home-eyebrow { font-size: 0.68rem; }
  .home-hero h1 { font-size: 2.45rem; }
  .home-hero-copy { font-size: 1rem; }
  .home-actions { flex-direction: column; align-items: stretch; }
  .home-button { width: 100%; }
  .home-hero-note { max-width: 330px; font-size: 0.78rem; }
  .hero-about-link { right: 23px; bottom: 22px; left: 23px; justify-content: flex-start; }
  .path-link { min-height: 150px; padding-right: 58px; padding-left: 25px; }
  .path-title { font-size: 1.4rem; }
  .path-arrow { right: 24px; }
  .home-how { padding: 69px 24px 73px; }
  .home-section-heading h2, .about-copy h2 { font-size: 2rem; }
  .home-steps { grid-template-columns: 1fr; gap: 26px; margin-top: 39px; }
  .home-about { grid-template-columns: 1fr; }
  .about-photo { min-height: 270px; }
  .about-copy { padding: 47px 25px 55px; }
  .about-copy h2 { font-size: 1.9rem; }
  .home-teacher-cta { min-height: 0; flex-direction: column; align-items: stretch; gap: 23px; padding: 45px 25px; }
  .home-teacher-cta h2 { font-size: 1.9rem; }
  .home-footer { flex-direction: column; align-items: flex-start; padding: 35px 25px; }
  .home-footer nav { gap: 13px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}