/* =========================================================
   Wave Gym Lab — Escuela de gimnasia artística
   ========================================================= */

:root {
  --pink: #fd2e93;
  --pink-dark: #e81c80;
  --pink-soft: #fdf3f8;
  --teal: #12b9e0;
  --teal-dark: #19a8cf;
  --navy: #1f3f7a;
  --navy-text: #2d4a80;
  --cyan-soft: #dff8fd;
  --white: #fff;

  --f-script: "Vujahday Script", cursive;
  --f-hand: "Caveat", cursive;
  --f-label: "Barlow", system-ui, sans-serif;
  --f-eyebrow: "Montserrat", system-ui, sans-serif;
  --f-body: "Nunito Sans", system-ui, sans-serif;

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 63, 122, .10), 0 2px 6px rgba(31, 63, 122, .06);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy-text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
strong, b { font-weight: 800; color: var(--navy); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  font-family: var(--f-eyebrow);
  font-weight: 600;
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

.script {
  font-family: var(--f-script);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.012em;
  -webkit-text-stroke: .022em currentColor;
  paint-order: stroke fill;
}
.script--pink { color: var(--pink); }

.section-head .script { font-size: clamp(40px, 4.6vw, 62px); margin-top: 2px; }

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: var(--h);
  padding: 0 26px 0 30px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(253, 46, 147, .35); outline-offset: 3px; }

.btn--pill { border-radius: 999px; }
.btn--square { border-radius: 12px; }
.btn--lg { --h: 52px; font-size: 18px; padding: 0 30px 0 34px; }

.btn--pink {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(253, 46, 147, .28);
}
.btn--pink:hover { background: var(--pink-dark); box-shadow: 0 12px 26px rgba(253, 46, 147, .36); }

.btn--outline {
  background: rgba(255, 255, 255, .7);
  border-color: var(--pink);
  color: var(--pink);
}
.btn--outline:hover { background: var(--pink); color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header__inner {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(16px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 4vw, 64px);
}

.header__logo {
  position: absolute;
  left: clamp(16px, 5.3vw, 80px);
  top: 6px;
  width: clamp(170px, 18.5vw, 270px);
  transition: width .35s, top .35s;
}
.header__logo img { width: 100%; height: auto; }

.nav__list {
  display: flex;
  gap: clamp(18px, 3.2vw, 46px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 10px 0;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: -8px; right: -8px; bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--pink); }
.nav__link.is-active { font-weight: 800; }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.header__cta { --h: 50px; margin-left: clamp(0px, 4vw, 70px); }

.burger { display: none; }

/* header al hacer scroll */
.header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(31, 63, 122, .08);
}
.header.is-scrolled .header__inner { height: 72px; }
.header.is-scrolled .header__logo { width: 92px; top: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(680px, 49.5vw, 860px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #cfeefb url("../img/hero.jpg") 70% 30% / cover no-repeat;
}
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .25) 35%, rgba(255, 255, 255, 0) 55%);
}

.hero__content {
  max-width: 1440px;
  padding-left: clamp(20px, 5.4vw, 82px);
  padding-top: clamp(220px, 16.4vw, 262px);
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(50px, 6.2vw, 92px);
  line-height: .9;
  letter-spacing: -.015em;
  -webkit-text-stroke: .016em currentColor;
}
.hero__title span { display: block; }
.hero__l1 { color: var(--pink); text-shadow: 0 2px 18px rgba(255, 255, 255, .6); }
.hero__l2, .hero__l3 { color: var(--teal); text-shadow: 0 2px 18px rgba(255, 255, 255, .7); }
.hero__l2 { padding-left: .62em; }
.hero__l3 { padding-left: 1.75em; }

.hero__text {
  margin-top: clamp(14px, 1.5vw, 22px);
  font-weight: 600;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.38;
  color: var(--navy);
  max-width: 34em;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .8);
}
.hero__content .btn { margin-top: clamp(16px, 1.4vw, 22px); }

.hero__words {
  position: absolute;
  right: clamp(16px, 2.2vw, 40px);
  top: 34%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--f-hand);
  font-weight: 500;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: .95;
  color: var(--white);
  transform: rotate(-19deg);
  transform-origin: right center;
  text-shadow: 0 2px 10px rgba(0, 40, 60, .35);
}
.hero__words span { display: inline-flex; align-items: center; gap: 4px; }
.hero__words span:nth-child(1) { margin-right: .7em; }
.hero__words span:nth-child(2) { margin-right: 1.2em; }
.hero__words span:nth-child(3) { margin-right: .55em; }
.hero__words svg { width: .55em; height: .55em; color: var(--pink); filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); }

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(120px, 15vw, 220px);
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   VALORES
   ========================================================= */
.values {
  position: relative;
  z-index: 2;
  padding: clamp(6px, 1vw, 14px) 0 clamp(36px, 4vw, 56px);
  background: var(--white);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
}
.value {
  position: relative;
  text-align: center;
  padding: 4px 16px;
}
.value + .value::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 8%;
  width: 1px;
  background: linear-gradient(transparent, #dbe3ef 20%, #dbe3ef 80%, transparent);
}
.value__icon {
  height: 50px;
  width: auto;
  margin: 0 auto 10px;
  color: var(--pink);
  overflow: visible;
}
.value__title {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: clamp(16px, 1.45vw, 20px);
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .01em;
}
.value__text {
  margin-top: 2px;
  font-size: clamp(14.5px, 1.25vw, 17.5px);
  line-height: 1.38;
  color: var(--navy-text);
}

/* =========================================================
   NUESTRA ESCUELA
   ========================================================= */
.school {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
  padding: 0 var(--gutter) clamp(30px, 3vw, 50px) 0;
  background:
    radial-gradient(60% 80% at 75% 45%, #fdeaf3 0%, rgba(253, 234, 243, 0) 70%),
    linear-gradient(180deg, #fff 0%, #fdf6fa 30%, #fdf6fa 80%, #fff 100%);
  overflow: hidden;
}

.school__media {
  position: relative;
  aspect-ratio: 340 / 262;
  margin-right: 4%;
}
.school__photo {
  position: absolute;
  inset: 0;
  clip-path: ellipse(93% 99% at 0% 54%);
}
.school__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 60%; }
.school__ring {
  position: absolute;
  inset: 0;
  /* recorta arriba y abajo a la altura de la foto; deja salir los trazos a la derecha */
  clip-path: inset(0 -80px 0 0);
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.school__body { position: relative; z-index: 2; max-width: 640px; padding-block: clamp(28px, 3vw, 50px); }
.school__body .script { font-size: clamp(38px, 3.9vw, 56px); margin: 6px 0 14px; white-space: nowrap; }
.school__body p:not(.eyebrow) {
  max-width: 610px;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.4;
  color: var(--navy-text);
}
.school__body p + p { margin-top: 14px; }
.school__body .btn { margin-top: 26px; }

.school__palm {
  position: absolute;
  right: -10px;
  top: 0;
  width: clamp(110px, 11vw, 165px);
  opacity: .95;
  pointer-events: none;
}
.school__wave {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 26vw, 400px);
  height: auto;
  pointer-events: none;
}

/* =========================================================
   PROGRAMAS
   ========================================================= */
.programs {
  position: relative;
  padding: clamp(10px, 1.5vw, 24px) 0 clamp(40px, 5vw, 70px);
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.programs .section-head { margin-bottom: clamp(16px, 2vw, 26px); }

.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 63, 122, .14); }

.card__media { position: relative; aspect-ratio: 238 / 118; overflow: hidden; }
.card__media::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36%;
  height: 3px;
  background: var(--pink);
  border-radius: 0 3px 3px 0;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.05); }

.card__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: -46px auto 0;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #fbb9d9;
  box-shadow: 0 6px 18px rgba(253, 46, 147, .15);
  color: var(--pink);
}
.card__icon svg { width: 70px; height: 52px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(253, 46, 147, .25)); }

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px);
}
.card__title {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--navy);
}
.card__age {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--pink);
}
.card__text {
  margin-top: 8px;
  font-size: clamp(14.5px, 1.25vw, 17.5px);
  line-height: 1.38;
  color: var(--navy-text);
}

.schedule {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  min-height: 96px;
  margin-top: 18px;
  padding: 12px clamp(14px, 1.8vw, 26px);
  border-radius: 14px;
  background: var(--cyan-soft);
  text-align: left;
}
.schedule__icon { width: clamp(34px, 3vw, 44px); height: clamp(34px, 3vw, 44px); flex: none; color: var(--pink); }
.schedule__list { margin: 0; display: grid; gap: 1px; }
.schedule__label {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.15;
}
.schedule__list dd {
  margin: 0;
  display: grid;
  grid-template-columns: 5.4em auto;
  align-items: baseline;
  font-family: var(--f-label);
  font-size: clamp(15px, 1.32vw, 19px);
  line-height: 1.22;
  white-space: nowrap;
}
.schedule__list dd span { font-weight: 600; color: var(--teal-dark); }
.schedule__list dd b { font-weight: 700; color: var(--navy); }
.schedule--single .schedule__list dd { grid-template-columns: auto auto; gap: .35em; }
.schedule__list dd b.is-teal { color: var(--teal-dark); }

/* =========================================================
   PROFESORAS
   ========================================================= */
.team {
  position: relative;
  padding: clamp(20px, 3vw, 40px) 0 clamp(50px, 5vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.team__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.team .section-head { margin-bottom: clamp(18px, 2vw, 26px); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
}
.coach {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}
.coach__photo {
  width: 100%;
  aspect-ratio: 170 / 165;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.coach__name { font-size: clamp(32px, 3vw, 44px); margin: 4px 0 12px; white-space: nowrap; }
.coach__text { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.42; }
.coach .btn { margin-top: 22px; }

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery { position: relative; padding: 0 0 6px; }
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.gallery__arrows { display: flex; gap: 14px; padding-bottom: 14px; }

.arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: var(--white);
  color: var(--pink);
  transition: background-color .2s, color .2s, transform .2s;
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: var(--pink); color: var(--white); transform: scale(1.06); }

.gallery__track {
  display: flex;
  gap: clamp(8px, .9vw, 14px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  outline: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 clamp(200px, 16.6vw, 260px);
  aspect-ratio: 140 / 92;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #e8f6fb;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  min-height: clamp(340px, 25vw, 400px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background: #1a7fc0 url("../img/cta-algarrobo.jpg") 60% 40% / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 65% at 50% 45%, rgba(6, 45, 95, .55), rgba(6, 45, 95, 0) 85%),
    linear-gradient(rgba(8, 60, 120, .28), rgba(8, 60, 120, .28));
}
.cta__wave { position: absolute; left: 0; width: 100%; pointer-events: none; }
.cta__wave--top { top: -1px; height: clamp(50px, 6vw, 90px); }
.cta__wave--bottom { bottom: -1px; height: clamp(80px, 9vw, 130px); }

.cta__content { position: relative; z-index: 2; padding: 50px var(--gutter) 100px; }
.cta__title {
  font-size: clamp(42px, 4.6vw, 66px);
  text-shadow: 0 3px 18px rgba(0, 40, 90, .35);
}
.cta__text {
  margin-top: 6px;
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 27px);
  text-shadow: 0 2px 12px rgba(0, 40, 90, .4);
}
.cta .btn { margin-top: 22px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: 0 0 clamp(36px, 4vw, 60px);
  background: var(--white);
  overflow: hidden;
}
.footer__inner {
  max-width: 1300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
}
.footer__logo { flex: none; width: clamp(150px, 14vw, 210px); margin-top: -10px; }
.footer__logo img { width: 100%; height: auto; }

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  gap: clamp(16px, 2.6vw, 40px);
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: clamp(15px, 1.25vw, 17.5px);
  font-weight: 600;
  color: var(--navy);
  transition: color .2s;
}
.contact__item:hover { color: var(--pink); }
.contact__item b { display: block; font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; color: var(--navy); }
.contact__item small { display: block; font-size: 14px; font-weight: 600; color: var(--navy-text); }
.contact__icon { width: 40px; height: 40px; flex: none; color: var(--pink); }

.footer__slogan {
  flex: none;
  font-family: var(--f-script);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  color: var(--pink);
  text-align: center;
  transform: rotate(-11deg);
  margin: 0 0 10px;
}
.footer__slogan svg { width: .6em; height: .6em; vertical-align: .3em; }

.footer__wave {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(240px, 32vw, 480px);
  height: auto;
  pointer-events: none;
  z-index: -0;
}
.footer__inner { position: relative; z-index: 1; }

/* =========================================================
   LIGHTBOX + MODAL
   ========================================================= */
.lightbox, .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 36, 74, .82);
  backdrop-filter: blur(4px);
  animation: fade .25s ease;
}
.lightbox[hidden], .modal[hidden] { display: none; }
.lightbox__img {
  max-width: min(1000px, 86vw);
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  object-fit: contain;
}
.lightbox__close, .modal__close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--pink);
  font-size: 30px;
  line-height: 1;
}
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
  width: min(820px, 100%);
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 60%, #fdeef6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.modal__close { top: 12px; right: 12px; background: var(--pink-soft); }
.modal__photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 32%; border-radius: 14px; }
.modal__body .script { font-size: 48px; margin: 4px 0 10px; }
.modal__text { font-size: 17px; margin-bottom: 22px; }

@keyframes fade { from { opacity: 0; } }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.programs__grid .reveal:nth-child(2), .values__grid .reveal:nth-child(2) { transition-delay: .1s; }
.programs__grid .reveal:nth-child(3), .values__grid .reveal:nth-child(3) { transition-delay: .2s; }
.values__grid .reveal:nth-child(4) { transition-delay: .3s; }
.team__grid .reveal:nth-child(2) { transition-delay: .12s; }

.hero__title span, .hero__text, .hero__content .btn, .hero__words {
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__l2 { animation-delay: .12s !important; }
.hero__l3 { animation-delay: .24s !important; }
.hero__text { animation-delay: .38s !important; }
.hero__content .btn { animation-delay: .5s !important; }
.hero__words { animation: rise-words 1.2s .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-words { from { opacity: 0; transform: rotate(-19deg) translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav__list { gap: 20px; }
  .nav__link { font-size: 14px; }
  .header__cta { margin-left: 0; }
  .schedule__list dd { grid-template-columns: 5.8em auto; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }

  .burger {
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 0;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(31, 63, 122, .12);
    z-index: 3;
  }
  .burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--pink); transition: transform .3s, opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    padding: 100px 32px 32px;
    background: var(--white);
    box-shadow: -20px 0 50px rgba(31, 63, 122, .15);
    transform: translateX(105%);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { font-size: 18px; padding: 10px 0; }
  .nav__link::after { left: 0; right: auto; width: 30px; }
  .nav__cta-mobile { display: inline-flex; align-self: flex-start; }
  .header__cta { display: none; }

  .header__logo { width: 150px; top: 6px; }
  .header.is-scrolled .header__inner { height: 68px; }
  .header.is-scrolled .header__logo { width: 80px; }

  .hero__content { padding-top: 200px; padding-bottom: 170px; }
  .hero__words { top: 30%; }
  .hero__bg { background-position: 88% 30%; }
  .hero__fade { background: linear-gradient(90deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 75%); }

  .values__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .value:nth-child(3)::before { display: none; }

  .school { grid-template-columns: 1fr; padding: 0 0 40px; gap: 10px; }
  .school__media { width: 92%; margin: 0; }
  .school__body { padding-inline: var(--gutter); max-width: none; }
  .school__body .script { white-space: normal; }
  .school__palm { top: auto; bottom: 10px; width: 96px; opacity: .6; }

  .programs__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

  .team__grid { grid-template-columns: 1fr; max-width: 680px; }

  .footer__inner { flex-wrap: wrap; justify-content: center; text-align: left; }
  .contact { flex-basis: 100%; order: 3; justify-content: center; flex-wrap: wrap; }
  .footer__slogan { margin: 10px 0 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 0; }
  .hero__bg { background-position: 74% 30%; }
  .hero__fade { background: linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, .72) 40%, rgba(255, 255, 255, .5) 62%, rgba(255, 255, 255, 0) 80%); }
  .hero__content { padding-top: 170px; }
  .hero__text br { display: none; }
  .hero__title { font-size: clamp(36px, 10.6vw, 50px); }
  .hero__words { top: auto; bottom: 120px; right: 14px; font-size: 25px; }
  .hero__content { padding-bottom: 210px; }
  .btn--lg { font-size: 16px; padding: 0 22px 0 26px; }

  .values__grid { grid-template-columns: 1fr 1fr; }
  .value { padding-inline: 8px; }
  .value__text br { display: none; }

  .school__media { width: 94%; }
  .coach__name { white-space: normal; }
  .school__wave { opacity: .6; }

  .card__text br { display: none; }
  .schedule { padding-inline: 16px; gap: 14px; }

  .coach { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .coach__photo { max-width: 340px; }
  .coach__body { display: flex; flex-direction: column; align-items: center; max-width: 420px; }

  .gallery__head { align-items: center; }
  .gallery__arrows { padding-bottom: 0; }
  .arrow { width: 40px; height: 40px; }
  .gallery__item { flex-basis: 62vw; }

  .cta__content { padding-bottom: 110px; }

  .contact { flex-direction: column; align-items: flex-start; gap: 16px; width: auto; flex-basis: auto; }
  .footer__inner { flex-direction: column; }

  .modal__dialog { grid-template-columns: 1fr; padding: 22px; max-height: 90vh; overflow: auto; }
  .modal__photo { max-width: 240px; }
}
