:root {
  --blue: #2f6dbd;
  --blue-strong: #1f55a2;
  --gold: #ffbb00;
  --red: #f21117;
  --green: #16b86a;
  --ink: #172033;
  --muted: #5c677c;
  --line: #dfe5ee;
  --surface: #ffffff;
  --soft: #f5f8fc;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.16);
  --radius: 8px;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--surface);
  text-rendering: geometricPrecision;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
iframe {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--blue-strong);
  border-radius: 6px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1210px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 184px;
  padding: 8px 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(16px);
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-strong);
  background: rgba(47, 109, 189, 0.1);
  outline: 0;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--blue-strong);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--blue-strong);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/hero-students-13.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 30, 61, 0.92), rgba(17, 51, 97, 0.7), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 82% 18%, rgba(255, 187, 0, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(47, 109, 189, 0.72), rgba(242, 17, 23, 0.16));
}

.hero-inner {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 38px;
  padding: 138px 0 66px;
}

.hero-copy {
  max-width: 760px;
  color: var(--surface);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
}

.hero h1,
.hero h2,
.section-heading h2,
.section-copy h2,
.program-card h3,
.site-footer h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 6rem;
  line-height: 0.9;
  font-weight: 900;
}

.hero h2 {
  max-width: 680px;
  margin-top: 18px;
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 820;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.btn-whatsapp {
  color: var(--surface);
  background: var(--green);
  box-shadow: 0 18px 38px rgba(22, 184, 106, 0.28);
}

.btn-primary {
  color: var(--surface);
  background: var(--blue);
  box-shadow: 0 18px 38px rgba(47, 109, 189, 0.24);
}

.hero-highlights {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-highlights span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--surface);
  text-align: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 104px 0;
}

.section-heading,
.section-copy {
  max-width: 760px;
}

.section-heading {
  margin-bottom: 44px;
}

.section-kicker {
  color: var(--blue);
}

.section-heading h2,
.section-copy h2 {
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1.12;
  font-weight: 860;
}

.section-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.about-section {
  background:
    linear-gradient(180deg, var(--surface), var(--soft)),
    linear-gradient(90deg, rgba(47, 109, 189, 0.08), transparent);
}

.about-grid,
.location-grid,
.contact-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
  min-height: 520px;
}

.about-media > img,
.about-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-media > img {
  position: absolute;
  inset: 0;
}

.about-inset {
  position: absolute;
  left: -46px;
  bottom: 34px;
  width: 48%;
  height: 238px;
  padding: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(23, 32, 51, 0.2);
}

.programs-section {
  background: var(--surface);
}

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

.program-card {
  position: relative;
  min-height: 396px;
  padding: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 109, 189, 0.34);
  box-shadow: 0 28px 68px rgba(23, 32, 51, 0.12);
}

.program-card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--blue);
  stroke-width: 1.8;
}

.program-card h3 {
  min-height: 62px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.22;
}

.program-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.35;
}

.program-card li {
  position: relative;
  padding-left: 22px;
}

.program-card li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 187, 0, 0.18);
}

.difference-section {
  color: var(--surface);
  background:
    linear-gradient(135deg, rgba(31, 85, 162, 0.96), rgba(47, 109, 189, 0.86)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1800&q=86") center/cover;
}

.difference-section .section-kicker,
.difference-section .section-heading h2 {
  color: var(--surface);
}

.difference-section .section-kicker::before {
  background: var(--gold);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.difference-item {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.difference-item svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--gold);
}

.difference-item span {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.gallery-section {
  background: var(--soft);
}

.gallery-masonry {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 178px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 11px 12px;
  color: var(--surface);
  text-align: left;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.66);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.testimonials-section {
  background: var(--surface);
}

.testimonial-carousel {
  position: relative;
  min-height: 332px;
  overflow: hidden;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(47, 109, 189, 0.08), rgba(255, 187, 0, 0.14)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-track {
  position: relative;
  min-height: 210px;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.testimonial.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial p {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.62;
  font-weight: 650;
}

.testimonial strong,
.testimonial span {
  display: block;
}

.testimonial strong {
  color: var(--blue-strong);
  font-size: 1rem;
}

.testimonial span {
  margin-top: 4px;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel-controls button,
.social-links a,
.lightbox-close,
.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  color: var(--blue-strong);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  background: rgba(47, 109, 189, 0.25);
  border-radius: 50%;
}

.carousel-dots button.is-active {
  width: 28px;
  background: var(--blue);
  border-radius: 999px;
}

.location-section {
  background:
    linear-gradient(180deg, var(--soft), var(--surface)),
    linear-gradient(90deg, rgba(255, 187, 0, 0.14), transparent);
}

address {
  display: grid;
  gap: 8px;
  margin: 26px 0 28px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

address strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.map-panel {
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-panel iframe,
.footer-map {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-section {
  background: var(--surface);
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 34px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(23, 32, 51, 0.11);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #ccd6e4;
  border-radius: 8px;
  outline: 0;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 109, 189, 0.13);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--blue-strong);
  font-weight: 800;
}

.site-footer {
  color: rgba(255, 255, 255, 0.88);
  background: #10192a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 36px;
  padding: 62px 0;
}

.footer-brand img {
  width: 178px;
  padding: 10px;
  background: var(--surface);
  border-radius: 8px;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--surface);
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.social-links a {
  width: 42px;
  height: 42px;
  margin: 0;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.footer-map {
  height: 130px;
  overflow: hidden;
  border-radius: 8px;
  filter: saturate(0.8);
}

.footer-bottom {
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(22, 184, 106, 0.35);
  animation: pulse 2.4s ease-in-out infinite;
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 72px 92px;
  background: rgba(10, 16, 28, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  width: min(1040px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox figcaption {
  margin-top: 16px;
  color: var(--surface);
  text-align: center;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
}

.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 64px;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 22px;
}

.lightbox-nav.next {
  right: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 40px rgba(22, 184, 106, 0.35);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 20px 56px rgba(22, 184, 106, 0.46);
  }
}

@media (max-width: 1180px) {
  .program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-card {
    min-height: 338px;
  }

  .difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 30px), 720px);
  }

  .brand {
    width: 150px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 15px;
    right: 15px;
    display: grid;
    gap: 4px;
    padding: 12px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-inner {
    padding-top: 116px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero h2,
  .section-heading h2,
  .section-copy h2 {
    font-size: 2.1rem;
  }

  .about-grid,
  .location-grid,
  .contact-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-media {
    min-height: 440px;
  }

  .about-inset {
    left: 20px;
    width: 54%;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), 480px);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 94svh;
  }

  .hero::before {
    background-position: 62% center;
  }

  .hero-inner {
    min-height: 94svh;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-highlights span {
    min-height: 58px;
  }

  .section-heading h2,
  .section-copy h2 {
    font-size: 1.82rem;
  }

  .about-media {
    min-height: 360px;
  }

  .about-inset {
    display: none;
  }

  .program-grid,
  .difference-grid,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: auto;
  }

  .program-card h3 {
    min-height: 0;
  }

  .gallery-masonry {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .testimonial-carousel,
  .contact-form {
    padding: 24px;
  }

  .testimonial p {
    font-size: 1.08rem;
  }

  .map-panel {
    height: 360px;
  }

  .lightbox {
    padding: 74px 14px 36px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lightbox-nav.prev {
    left: 18px;
  }

  .lightbox-nav.next {
    right: 18px;
  }
}

@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;
  }
}
