@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #111217;
  --navy: #071744;
  --blue: #2397e6;
  --mint: #25e5bd;
  --paper: #ffffff;
  --mist: #dedede;
  --muted: #5f6269;
  --radius: 10px;
  --container: 930px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Sora", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: 662px;
  z-index: 1;
  overflow: visible;
  color: #fff;
  background: #141414 url("assets/img/hero-bg.webp") center/cover no-repeat;
}

.hero__inner {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  min-height: 662px;
  margin: 0 auto;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 500px;
  padding-top: 57px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
}

.brand img { width: 214px; }

.brand span {
  margin: 7px 3px 0 0;
  padding: 0;
  background: transparent;
  color: var(--mint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 77px 0 18px;
  color: #fff;
  font-size: clamp(44px, 4.3vw, 55px);
  line-height: 1.14;
  letter-spacing: -2.2px;
}

.hero h1 em { color: var(--mint); font-style: normal; }

.hero__copy > p {
  width: 500px;
  margin: 0 0 31px;
  font-size: 16px;
  line-height: 1.65;
}

.hero__line { display: block; text-wrap: balance; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(35, 151, 230, .18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #137fc9;
  box-shadow: 0 12px 32px rgba(35, 151, 230, .3);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible { outline: 3px solid #ffcf40; outline-offset: 4px; }

.button--primary {
  min-width: 332px;
  min-height: 66px;
  padding-inline: 38px;
  font-size: 16px;
}

.hero__horse-motion {
  position: absolute;
  z-index: 1;
  right: -5px;
  bottom: -50px;
  width: 440px;
  animation: hero-horse-float 5s var(--ease-in-out) infinite alternate;
}

.hero__horse {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .38));
}

.intro {
  min-height: 245px;
  display: grid;
  place-items: center;
  padding: 52px 24px;
  text-align: center;
}

.intro p {
  max-width: 650px;
  margin: 0;
  color: #242424;
  font-size: 25px;
  line-height: 1.42;
}

.catalog { background: var(--mist); padding: 47px 0 92px; }
.catalog__inner { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.level + .level { margin-top: 67px; }
.level__header { position: relative; }

.level__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.level__title-row { display: flex; align-items: center; gap: 12px; }

.level h2 {
  margin: 0;
  color: #242424;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.7px;
}

.level__title-row img { width: 82px; height: auto; }

.level__header > p {
  margin: 15px 0 31px;
  font-size: 12px;
  line-height: 1.55;
}

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 47px; align-items: stretch; }

.course-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.course-card__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: cover;
}

.course-card__body { display: flex; flex: 1; flex-direction: column; padding: 13px 4px 1px; }

.tag {
  align-self: flex-start;
  margin: -3px 0 11px;
  padding: 7px 14px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tag--mint { background: var(--mint); color: #061819; }
.tag--navy { background: var(--navy); }
.tag--blue { background: #0858ff; }

.course-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.2px;
  text-wrap: balance;
}

.course-card p {
  margin: 0 0 19px;
  color: #41464f;
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.button--card {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  font-size: 15px;
}

.section-shell { width: min(960px, calc(100% - 48px)); margin: 0 auto; }
.audience { position: relative; padding: 78px 0 82px; background: #fff; }
.audience .section-shell { position: relative; }
.audience__pig { position: absolute; z-index: 2; top: -82px; left: -10px; width: 180px; height: auto; }

.audience h2,
.testimonials h2 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; margin-top: 64px; }

.audience-card {
  min-height: 267px;
  padding: 38px 26px 30px;
  border-radius: 9px;
  background: #15171f;
  color: #fff;
  text-align: center;
}

.check {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  font-size: 15px;
  font-weight: 900;
}

.audience-card h3 { margin: 22px 0 20px; font-size: 19px; line-height: 1.35; text-wrap: balance; }
.audience-card__rule { display: block; width: 70px; height: 1px; margin: 0 auto 23px; background: #4a4c53; }
.audience-card p { max-width: 250px; margin: 0 auto; color: #f0f1f3; font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.testimonials { overflow: hidden; height: 642px; padding: 0; background: #d8d8d8; }
.testimonials .section-shell { position: relative; width: 960px; height: 642px; }
.testimonials h2 { position: absolute; top: 45px; left: 220px; width: 520px; margin: 0; font-family: "Montserrat", Arial, sans-serif; }
.title-rule { position: absolute; top: 101px; left: 431.75px; width: 96.5px; height: 2px; margin: 0; background: var(--mint); }

/* The original page arranges these messages as a deliberate collage, not a card grid. */
.testimonial-wall { position: absolute; inset: 0; }
.testimonial-wall img { position: absolute; width: auto; height: auto; }
.testimonial-wall img:nth-child(1) { width: 293px; left: -62.7px; top: 141.6px; }
.testimonial-wall img:nth-child(2) { width: 258px; left: 257px; top: 152.6px; }
.testimonial-wall img:nth-child(3) { width: 245px; left: 534.1px; top: 126px; }
.testimonial-wall img:nth-child(4) { width: 227px; left: 797.8px; top: 186.5px; }
.testimonial-wall img:nth-child(5) { width: 249px; left: -10px; top: 420.5px; }
.testimonial-wall img:nth-child(6) { width: 227px; left: 251.3px; top: 301.5px; }
.testimonial-wall img:nth-child(7) { width: 230px; left: 541.6px; top: 242.5px; }
.testimonial-wall img:nth-child(8) { width: 223px; left: 786.3px; top: 339px; }
.testimonial-wall img:nth-child(9) { width: 229px; left: 517.8px; top: 374.5px; }

.guarantee {
  min-height: 350px;
  display: grid;
  place-items: center;
  padding: 52px 24px;
  background: #071320 url("assets/img/guarantee-bg.jpg") center/cover no-repeat;
}

.guarantee__card {
  width: min(1120px, 100%);
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: center;
  gap: 56px;
  padding: 46px 72px;
  border: 1px solid rgba(5, 28, 34, .16);
  border-radius: 14px;
  background: var(--mint);
}

.guarantee__card > div:first-child { max-width: 690px; }
.guarantee h2 { margin: 0 0 15px; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.55px; text-wrap: balance; }
.guarantee p { margin: 0; color: #10252a; font-size: 15.5px; line-height: 1.62; text-wrap: pretty; }
.seal { position: relative; display: grid; justify-items: center; color: #111; }
.seal__shield { width: 150px; height: 150px; object-fit: contain; }

.footer { padding: 55px 0; background: #fff; }
.footer__inner { width: min(830px, calc(100% - 48px)); display: flex; align-items: center; justify-content: space-between; margin: 0 auto; }
.footer__brand img { width: 214px; filter: brightness(0); }
.footer__brand p { margin: 9px 0 0; font-size: 11px; }
.social { display: flex; align-items: center; gap: 12px; }
.social a { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #000; transition: transform .2s ease, background .2s ease; }
.social a:hover { transform: translateY(-2px); background: #111; }
.social img { width: 48px; height: 48px; object-fit: contain; }
.social img.social__instagram { width: 23px; height: 23px; }
.social img.social__youtube { width: 23px; height: 23px; }

.whatsapp {
  position: fixed;
  z-index: 20;
  right: 28px;
  bottom: 24px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
  transition: transform 160ms ease;
}

.whatsapp img { width: 100%; height: 100%; object-fit: contain; }

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  width: min(430px, calc(100% - 44px));
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  text-align: center;
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 17px; font-size: 14px; line-height: 1.5; }
.cookie-banner button { padding: 12px 20px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; font: 700 14px/1 "Sora", sans-serif; cursor: pointer; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero { min-height: 0; background-image: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.15)), url("assets/img/hero-bg.webp"); background-position: 61% center; }
  .hero__inner { width: min(calc(100% - 40px), 460px); min-height: 0; }
  .hero__copy { width: 100%; padding-top: 44px; text-align: center; }
  .brand { align-items: flex-end; }
  .brand img { width: 214px; }
  .brand span { font-size: 8px; padding: 0; }
  .hero h1 { margin: 65px 0 24px; font-size: 46px; line-height: 1.03; letter-spacing: -2px; }
  .hero h1 em { display: block; }
  .hero__copy > p { width: 100%; max-width: 385px; margin: 0 auto 34px; font-size: 15px; line-height: 1.55; }
  .hero__line { display: inline; }
  .hero__line + .hero__line::before { content: " "; }
  .button--primary { min-width: min(330px, 100%); min-height: 64px; font-size: 15px; }
  .hero__horse-motion { position: relative; display: block; right: auto; bottom: auto; width: 280px; margin: 42px auto 0; animation-name: hero-horse-float; }

  .intro { min-height: 210px; padding: 46px 30px; }
  .intro p { max-width: 390px; font-size: 19px; line-height: 1.38; }
  .catalog { padding: 40px 0 46px; }
  .catalog__inner { width: min(calc(100% - 40px), 420px); }
  .level + .level { margin-top: 51px; }
  .level__eyebrow { padding: 6px 14px; font-size: 12px; }
  .level__title-row { align-items: flex-start; justify-content: space-between; gap: 4px; }
  .level h2 { font-size: 24px; }
  .level__title-row img { width: 78px; margin-top: -3px; }
  .level__header > p { margin: 12px 0 28px; font-size: 11px; line-height: 1.48; }
  .course-grid { grid-template-columns: 1fr; gap: 39px; width: min(282px, 100%); margin: 0 auto; }
  .course-card { padding: 16px; border-radius: 11px; }
  .course-card__body { padding-top: 15px; }
  .course-card h3 { font-size: 17px; }
  .course-card p { font-size: 14px; }
  .section-shell { width: min(100% - 48px, 420px); }
  .audience { padding: 57px 0 67px; }
  .audience__pig { position: static; width: 170px; margin: -50px auto 24px; }
  .audience h2, .testimonials h2 { font-size: 27px; line-height: 1.25; }
  .audience__grid { grid-template-columns: 1fr; gap: 36px; width: min(330px, 100%); margin: 50px auto 0; }
  .audience-card { min-height: 300px; padding: 45px 27px 35px; }
  .audience-card h3 { margin-top: 28px; font-size: 19px; }
  .audience-card p { font-size: 15px; }

  .testimonials { height: auto; padding: 58px 0 72px; }
  .testimonials .section-shell { width: min(100% - 48px, 420px); height: auto; }
  .testimonials h2 { position: static; width: auto; }
  .title-rule { position: static; margin: 19px auto 36px; }
  .testimonial-wall { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
  .testimonial-wall img,
  .testimonial-wall img:nth-child(n) { position: static; width: 100%; grid-column: span 1; margin-top: 0; }
  .testimonial-wall img:nth-child(1),
  .testimonial-wall img:nth-child(6),
  .testimonial-wall img:nth-child(9) { grid-column: 1 / -1; width: 72%; margin-inline: auto; }

  .guarantee { min-height: 0; padding: 56px 24px; }
  .guarantee__card { width: min(100%, 380px); min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 38px 28px; text-align: center; }
  .guarantee h2 { font-size: 25px; }
  .guarantee p { font-size: 14px; }
  .seal { grid-row: 1; }
  .seal__shield { width: 128px; height: 128px; }

  .footer { padding: 45px 0 48px; }
  .footer__inner { flex-direction: column; gap: 26px; text-align: center; }
  .footer__brand img { width: 190px; margin: 0 auto; }
  .social a, .social img { width: 42px; height: 42px; }
  .whatsapp { right: 14px; bottom: 14px; width: 58px; height: 58px; }
  .cookie-banner { right: 10px; bottom: 10px; width: calc(100% - 20px); padding: 25px 22px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 40px; }
  .hero__copy > p { font-size: 14px; }
  .catalog__inner { width: min(calc(100% - 28px), 420px); }
  .level h2 { font-size: 23px; }
  .level__title-row img { width: 66px; }
}

/* Requested refinements: Manrope, subtle motion and a rounder hero CTA. */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

body,
.button,
.cookie-banner button,
h1,
h2,
h3,
.level__eyebrow,
.tag,
.testimonials h2 {
  font-family: "Manrope", Arial, sans-serif;
}

.hero .button--primary {
  border-radius: 999px;
}

[data-reveal] {
  transform: translateY(18px);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
}

.course-card[data-reveal]:nth-child(2),
.audience-card[data-reveal]:nth-child(2) {
  transition-delay: 70ms;
}

.course-card[data-reveal]:nth-child(3),
.audience-card[data-reveal]:nth-child(3) {
  transition-delay: 140ms;
}

.hero__horse {
  animation: hero-horse-enter 900ms var(--ease-out) both;
}

@keyframes hero-horse-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-horse-float {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

@keyframes hero-horse-float-mobile {
  from { transform: translate(50%, 0); }
  to { transform: translate(50%, -6px); }
}

@media (hover: hover) and (pointer: fine) {
  .hero .button--primary {
    transition:
      transform 160ms ease,
      box-shadow 160ms ease,
      background-color 160ms ease;
  }

  .hero .button--primary:hover {
    transform: translateY(-2px);
  }

  .whatsapp:hover {
    transform: scale(1.06);
  }

  .course-card {
    transition:
      transform 240ms var(--ease-out),
      box-shadow 240ms ease;
  }

  .course-card:hover {
    transform: translateY(-4px);
  }
}

/* Aligns card copy by reserving the optional tag row and three title lines. */
@media (min-width: 761px) {
  .course-card h3 {
    min-height: 4.11em;
  }

  .level[aria-labelledby="nivel-1"] .course-card:nth-child(2) h3,
  .level[aria-labelledby="nivel-3"] .course-card:nth-child(-n + 2) h3 {
    margin-top: 37px;
  }
}

/* Larger level introductions and a restrained editorial reveal. */
.level__header > p {
  font-size: 15.5px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .level__header[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .level__header[data-reveal] .level__eyebrow,
  .level__header[data-reveal] .level__title-row,
  .level__header[data-reveal] > p {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 620ms var(--ease-out),
      transform 620ms var(--ease-out);
  }

  .level__header[data-reveal] .level__title-row {
    transition-delay: 70ms;
  }

  .level__header[data-reveal] > p {
    transition-delay: 140ms;
  }

  .level__header[data-reveal].is-visible .level__eyebrow,
  .level__header[data-reveal].is-visible .level__title-row,
  .level__header[data-reveal].is-visible > p {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .level__header > p {
    font-size: 14px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__horse {
    animation: none;
  }

  .hero__horse-motion {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease;
  }
}

/* Continuous student feedback rail, inspired by the supplied reference. */
.testimonials {
  height: auto;
  min-height: 420px;
  padding: 44px 0 46px;
}

.testimonials .section-shell {
  width: 100%;
  height: auto;
}

.testimonials h2 {
  position: static;
  width: auto;
  margin-bottom: 26px;
}

.testimonial-marquee {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 18px;
  outline-offset: -4px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.testimonial-marquee:focus-visible {
  outline: 3px solid var(--blue);
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonial-scroll 60s linear infinite;
  will-change: transform;
}

.testimonial-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
}

.testimonial-group img {
  position: static;
  flex: none;
  width: auto;
  height: auto;
  max-height: 245px;
  border-radius: 0;
  box-shadow: none;
  image-rendering: auto;
}

.testimonial-marquee:focus .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonial-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (hover: hover) and (pointer: fine) {
  .testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
  }
}

@media (max-width: 760px) {
  .testimonials {
    min-height: 350px;
    padding: 40px 0 44px;
  }

  .testimonials .section-shell {
    width: 100%;
  }

  .testimonials h2 {
    margin-bottom: 24px;
  }

  .testimonial-group {
    gap: 16px;
    padding-right: 16px;
  }

  .testimonial-group img {
    height: auto;
    max-height: 185px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .testimonial-track {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .testimonial-group[aria-hidden="true"] {
    display: none;
  }

  .hero__horse {
    animation: none;
  }

  .hero__horse-motion {
    animation: none;
  }
}
