:root {
  color-scheme: light;
  --blue: #102d64;
  --blue-2: #174889;
  --yellow: #f2c437;
  --ink: #101827;
  --muted: #657284;
  --line: #dce3ec;
  --paper: #ffffff;
  --soft: #f3f6fa;
  --dark: #081226;
  --font-title: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Rubik, Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

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

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

button,
input {
  font: inherit;
}

.utility-bar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  background: var(--yellow);
  color: #19202a;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.utility-message {
  margin: 0;
}

.utility-arrow {
  height: 42px;
  border: 0;
  background: transparent;
  color: #19202a;
  font-size: 1.4rem;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(10, 27, 58, 0.95);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  font: 900 1rem var(--font-title);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.08;
}

.brand strong {
  font: 900 0.96rem var(--font-title);
}

.brand small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav .nav-verify {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
}

.header-cta,
.btn-primary {
  background: var(--blue-2);
  color: #ffffff;
}

.btn-yellow {
  background: var(--yellow);
  color: #162035;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: #ffffff;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
}

.hero > img,
.routes > img,
.newsletter > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.routes-overlay,
.newsletter-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 18, 40, 0.88), rgba(6, 18, 40, 0.34)),
    linear-gradient(0deg, rgba(6, 18, 40, 0.44), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  padding: 0 clamp(18px, 4vw, 64px) 92px;
  color: #ffffff;
}

.pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(242, 196, 55, 0.16);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.routes h2,
.map-card h2,
.newsletter h2,
.footer h2 {
  margin: 14px 0 0;
  font-family: var(--font-title);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 830px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.88;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.video-button {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: 72px;
  z-index: 2;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.video-button span {
  font-size: 2rem;
}

.video-button small {
  font-weight: 900;
}

.stats-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1fr;
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 76px);
  background: var(--soft);
}

.notch {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.stat-photo {
  min-height: 420px;
  background: var(--yellow);
  overflow: hidden;
}

.stat-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: grayscale(0.08) contrast(1.08);
}

.stat-copy {
  max-width: 680px;
}

.stat-number {
  margin: 0 0 4px;
  color: var(--blue);
  font: 950 clamp(3.4rem, 8vw, 7rem) / 0.9 var(--font-title);
}

.stat-copy h2,
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 4.5vw, 4.6rem);
  line-height: 0.94;
}

.stat-copy p:not(.stat-number):not(.section-kicker),
.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(18px, 5vw, 76px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.program-card,
.story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(20, 38, 63, 0.08);
}

.program-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.program-card div,
.story-card div {
  padding: 22px;
}

.program-card span,
.story-card span {
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.program-card h3,
.story-card h3 {
  margin: 8px 0;
  font: 950 1.45rem / 1.08 var(--font-title);
}

.program-card p {
  color: var(--muted);
  line-height: 1.55;
}

.program-card a,
.story-card a {
  color: var(--blue-2);
  font-weight: 950;
}

.program-card.featured {
  border-color: rgba(242, 196, 55, 0.8);
  transform: translateY(-16px);
}

.routes,
.newsletter {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: grid;
  align-items: center;
  background: var(--dark);
}

.routes-inner {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 76px);
  color: #ffffff;
}

.routes h2 {
  width: min(700px, 100%);
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.88;
}

.route-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 18px;
  margin-top: 32px;
}

.route-panels article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.route-panels h3 {
  margin: 0;
  font: 950 1.4rem var(--font-title);
}

.route-panels ul {
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.9;
}

.route-panels li::before {
  content: "»";
  margin-right: 8px;
  color: var(--yellow);
  font-weight: 950;
}

.campus {
  background: #f8fafc;
}

.map-panel {
  position: relative;
  min-height: 540px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 28%, rgba(23, 72, 137, 0.24), transparent 22%),
    radial-gradient(circle at 42% 70%, rgba(242, 196, 55, 0.26), transparent 18%),
    linear-gradient(145deg, #e8eef6, #ffffff);
}

.map-card {
  position: absolute;
  left: clamp(22px, 6vw, 80px);
  bottom: 52px;
  width: min(430px, calc(100% - 44px));
  padding: 32px;
  background: var(--blue);
  color: #ffffff;
}

.map-card h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  margin-bottom: 22px;
}

.map-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 12px rgba(242, 196, 55, 0.2);
}

.dot-lima {
  left: 50%;
  top: 46%;
}

.dot-trujillo {
  left: 43%;
  top: 28%;
}

.dot-arequipa {
  left: 58%;
  top: 68%;
}

.map-label {
  position: absolute;
  color: var(--blue);
  font-weight: 950;
}

.label-lima {
  left: calc(50% + 28px);
  top: 45%;
}

.label-trujillo {
  left: calc(43% + 28px);
  top: 27%;
}

.label-arequipa {
  left: calc(58% + 28px);
  top: 67%;
}

.stories {
  background: #ffffff;
}

.compact {
  margin-bottom: 26px;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.story-card {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
}

.story-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.newsletter {
  min-height: 640px;
  place-items: center;
  padding: 56px 18px;
}

.newsletter-form {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(6, 18, 40, 0.74);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.newsletter h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 0.98;
  margin-bottom: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
}

input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(242, 196, 55, 0.18);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--yellow);
  font-weight: 850;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px clamp(18px, 5vw, 76px);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer .brand small {
  color: var(--muted);
}

.footer h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.scroll-top,
.wa-fab {
  position: fixed;
  z-index: 30;
  right: 18px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(14, 30, 50, 0.24);
}

.scroll-top {
  bottom: 88px;
  background: #ffffff;
  color: var(--blue);
  cursor: pointer;
}

.wa-fab {
  bottom: 22px;
  background: #23c35e;
  color: #ffffff;
}

.video-dialog {
  width: min(560px, calc(100% - 36px));
  border: 0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.video-dialog::backdrop {
  background: rgba(6, 18, 40, 0.64);
}

.video-dialog button {
  float: right;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .stats-band,
  .program-grid,
  .story-row,
  .footer {
    grid-template-columns: 1fr;
  }

  .program-card.featured {
    transform: none;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .route-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .utility-bar {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .video-button {
    position: relative;
    right: auto;
    bottom: auto;
    width: 92px;
    height: 92px;
    margin: 0 0 28px 18px;
  }

  .stat-photo,
  .stat-photo img {
    min-height: 280px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
