:root {
  color-scheme: light;
  --purple: #8719b0;
  --deep: #4e1f6e;
  --magenta: #8c3a7e;
  --orange: #ff6801;
  --apricot: #f9a05a;
  --peach: #ffd4a8;
  --paper: #faf8fc;
  --ink: #1a1a2e;
  --muted: #4f4f5e;
  --line: #e8e2ee;
  --gradient: linear-gradient(114deg, var(--deep), var(--purple) 54%, var(--magenta));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 "DM Sans", sans-serif;
}
h1, h2, h3 { margin: 0; font-family: Montserrat, sans-serif; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.wrap { width: min(1050px, calc(100% - 48px)); margin-inline: auto; }

.bar, .bar nav, .footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.bar { justify-content: space-between; padding-block: 24px; }
.wordmark { display: inline-block; }
.wordmark img { display: block; width: clamp(120px, 29vw, 205px); height: auto; }
.bar nav { font-weight: 700; }
.bar nav > a:first-child { text-decoration: none; color: var(--deep); }
.bar nav > a:first-child:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--deep); }
.btn-programas { background: #fff; color: var(--orange); }
.btn-programas:hover { background: #fff0dc; }
.btn-consulta { background: var(--orange); color: #fff; }
.btn-consulta:hover { background: #b74600; }
.btn-whatsapp { background: #25d366; color: var(--ink); }
.btn-whatsapp:hover { background: #20bd5b; }

.hero-grid, .contact-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border-radius: clamp(20px, 3vw, 30px);
  background: var(--gradient);
  color: #fff;
}
.hero-copy { position: relative; z-index: 1; }
.kicker, .tile-label {
  font-family: Montserrat, sans-serif;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.kicker { color: var(--peach); }
h1 {
  max-width: 47rem;
  margin-block: 11px 14px;
  font-size: clamp(2.15rem, 5.7vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -.048em;
}
h1 span, .contact h2 span { color: var(--apricot); }
.hero-copy > p:not([class]) { max-width: 38rem; font-size: 1.12rem; color: #fff0dc; }
.semester {
  display: table;
  max-width: 100%;
  margin-block: 18px 12px;
  padding: 5px 13px;
  border: 1px solid #ffffff91;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 700;
}
.hero .btn, .contact .btn { border: 1px solid #ffffff9c; }
.hero .btn:focus-visible, .contact .btn:focus-visible { outline-color: var(--peach); }
.staff {
  position: absolute;
  z-index: 0;
  inset: 35px 0 auto auto;
  width: 39%;
  height: 68px;
  opacity: .26;
  background: repeating-linear-gradient(to bottom, var(--peach) 0 3px, transparent 3px 16px);
  pointer-events: none;
}

.programs { padding-block: 31px 36px; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); font-weight: 900; letter-spacing: -.04em; }
.programs h2 span { color: var(--purple); }
.age-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 14px 12px; }
.age-nav a, .age {
  border: 1px solid #dbcce5;
  border-radius: 100px;
  color: var(--deep);
  font-size: .94rem;
  font-weight: 800;
}
.age-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 15px;
  background: #fff;
  text-decoration: none;
}
.age-nav a:hover, .age-nav a[aria-current] { background: var(--magenta); color: #fff; }
.age-help { margin-bottom: 20px; color: var(--muted); }
.cards { display: grid; gap: 21px; }
.card {
  display: grid;
  gap: 13px;
  padding: clamp(18px, 3vw, 28px);
  scroll-margin-top: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 23px;
  background: #fff;
}
.card:target { outline: 2px solid var(--purple); outline-offset: 3px; }
.card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.age { padding: 4px 10px; background: var(--peach); border-color: transparent; }
.card h3 { color: var(--deep); font-size: clamp(1.4rem, 3vw, 1.93rem); font-weight: 800; letter-spacing: -.035em; }
.card > p:not(.price) { color: var(--muted); }
.card > .btn { justify-self: start; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 10px;
  margin: 1px 0 0;
  padding: 0;
  list-style: none;
}
.features li, .terms p {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.features li { font-weight: 650; }
.tile-label { display: block; margin-bottom: 4px; color: var(--purple); }
#crescendo .features li:nth-child(3) { background: var(--gradient); color: #fff; border-color: transparent; }
#crescendo .features li:nth-child(3) .tile-label { color: var(--peach); }

.price {
  padding: 15px 17px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
}
.price:has(> p) { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price strong { display: block; margin-bottom: 2px; color: var(--peach); font: 800 1.2rem/1.25 Montserrat, sans-serif; }
.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
}
.terms p { background: #fff; padding: 17px; }
.terms strong { color: var(--orange); font: 900 1.55rem/1 Montserrat, sans-serif; }

.contact { padding-bottom: 22px; }
.contact p { margin-block: 9px 16px; }
.footer { padding-block: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); }
.footer a { color: var(--deep); text-underline-offset: 3px; }

@media (max-width: 580px) {
  .wrap { width: calc(100% - 28px); }
  .bar { gap: 8px; padding-block: 16px; }
  .bar nav > a:first-child { display: none; }
  .bar .btn { padding-inline: 10px; font-size: .875rem; }
  .staff { opacity: .13; }
  .hero-copy > p:not([class]) { font-size: 1rem; }
  .price:has(> p), .terms { grid-template-columns: 1fr; }
  .price > p + p { padding-top: 10px; border-top: 1px solid #ffffff59; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
