.mp-free-content {
  position: relative;
  padding: 1rem 0 6rem;
}

.mp-free-hero-cta.btn.main {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7em 1.6em;
  white-space: nowrap;
}

/* Free hero teachers positioning */
.escuela-page--gratis .mp-school-hero__teachers {
  width: min(380px, 100%);
  height: 450px;
  margin-left: -240px;
}

.escuela-page--gratis .mp-school-hero__teacher--1 {
  --offset: -220px;
  --scale: 0.72;
  --z: 1;
}

.escuela-page--gratis .mp-school-hero__teacher--2 {
  --offset: -140px;
  --scale: 0.8;
  --z: 2;
}

.escuela-page--gratis .mp-school-hero__teacher--3 {
  --offset: -40px;
  --scale: 0.92;
  --z: 3;
}

.escuela-page--gratis .mp-school-hero__teacher--4 {
  --offset: 0px;
  --scale: 1.1;
  --z: 4;
}

.mp-school-hero__layout::before {
  background-size: 60%;
}

.escuela-page--gratis .mp-school-hero__teacher--5 {
  --offset: 120px;
  --scale: 0.75;
  --z: 2;
}

@media (max-width: 991px) {
  .escuela-page--gratis .mp-school-hero__teachers {
    height: 320px;
    margin-left: 0;
  }

  .escuela-page--gratis .mp-school-hero__teacher--1 { --offset: -170px; }
  .escuela-page--gratis .mp-school-hero__teacher--2 { --offset: -95px; }
  .escuela-page--gratis .mp-school-hero__teacher--3 { --offset: -30px; }
  .escuela-page--gratis .mp-school-hero__teacher--4 { --offset: 60px; }
  .escuela-page--gratis .mp-school-hero__teacher--5 { --offset: 140px; }
}

@media (max-width: 575px) {
  .escuela-page--gratis .mp-school-hero__teachers {
    height: 260px;
  }

  .escuela-page--gratis .mp-school-hero__teacher--1 { --offset: -70px; }
  .escuela-page--gratis .mp-school-hero__teacher--2 { --offset: -35px; }
  .escuela-page--gratis .mp-school-hero__teacher--3 { --offset: 0px; }
  .escuela-page--gratis .mp-school-hero__teacher--4 { --offset: 35px; }
  .escuela-page--gratis .mp-school-hero__teacher--5 { --offset: 70px; }
}

.mp-free-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(254, 236, 2, 0.1), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(45, 185, 229, 0.12), transparent 50%);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.mp-free-content .container {
  position: relative;
  z-index: 1;
}

.mp-free-content__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  color: #fff;
}

.mp-free-content__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(254, 236, 2, 0.45);
  background: rgba(254, 236, 2, 0.12);
  color: var(--amarillo);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-free-content__header h2 {
  margin: 0.7rem 0 0.9rem;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 300;
}

.mp-free-content__header p {
  margin: 0;
  color: #cfd5e2;
  font-size: 1.3rem;
  line-height: 1.8;
}

.mp-free-content__grid {
  display: grid;
  gap: 2rem;
}

.mp-free-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media body";
  align-items: center;
  gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(8, 10, 14, 0.72);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mp-free-feature__media {
  grid-area: media;
}

.mp-free-feature__body {
  grid-area: body;
  color: #fff;
}

.mp-free-feature__body h3 {
  font-size: 1.9rem;
  font-weight: 600;
}

.mp-free-feature__body p {
  margin: 0 0 1.2rem;
  line-height: 1.7;
}

.mp-free-courses {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mp-free-feature__body .mp-free-courses__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
}

.mp-free-feature__body .mp-free-courses__subtitle {
  margin: 0 0 1rem;
  color: var(--amarillo);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
}

.mp-free-scroll-shell {
  position: relative;
  border-radius: 20px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mp-free-scroll-shell::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: 22.5%;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 18, 0) 0%,
    rgba(10, 12, 18, 0.95) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.mp-free-scroll {
  position: relative;
  z-index: 1;
  max-height: 520px;
  overflow: hidden;
  padding: 1rem 0.9rem;
  border-radius: inherit;
  background: transparent;
  scrollbar-width: none;
}

.mp-free-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mp-free-scroll__inner {
  display: grid;
  gap: 1.1rem;
}

.mp-free-course-group {
  display: grid;
  gap: 0.8rem;
}

.mp-free-course-list {
  display: grid;
  gap: 0.8rem;
}

.mp-free-course-group + .mp-free-course-group {
  margin-top: 0.6rem;
}

.mp-free-course-group__title {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 auto;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.95);
  color: var(--amarillo);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.mp-free-course {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(14, 16, 22, 0.9);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mp-free-course__coach {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--amarillo);
  font-weight: 600;
}

.mp-free-coach-name {
  line-height: 1.1;
}

.mp-free-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mp-free-avatar--spadejack {
  background-image: url("../img/miguel-perfil-1.webp");
}

.mp-free-avatar--kike {
  background-image: url("../img/kike-perfil-1.webp");
}

.mp-free-avatar--miguel {
  background-image: url("../img/mora-perfil.webp");
}

.mp-free-avatar--vixuki {
  background-image: url("../img/vixuki-perfil.webp");
}

.mp-free-avatar--klauss {
  background-image: url("../img/Klauss-perfil.webp");
}

.mp-free-course__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mp-free-course__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mp-free-tag {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.mp-free-tag--level {
  background: rgba(31, 92, 19, 0.9);
  color: #b9ff86;
}

.mp-free-tag--spins {
  background: rgba(124, 88, 22, 0.95);
  color: #ffd98a;
}

.mp-free-tag--cash {
  background: rgba(114, 26, 88, 0.95);
  color: #ffb1e1;
}

.mp-free-tag--torneos {
  background: rgba(21, 95, 105, 0.95);
  color: #9bf1ff;
}

.mp-free-tag--plo {
  background: rgba(120, 30, 30, 0.95);
  color: #ffb3a3;
}

.mp-free-course__title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}

.mp-free-course__date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.mp-free-placeholder {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 240px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mp-free-placeholder:not(.mp-free-placeholder--tall) {
  border-style: solid;
  background-image: url("../img/comienza-en-el-poker-en-10-minutos copia.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mp-free-placeholder:not(.mp-free-placeholder--tall) span {
  opacity: 0;
}

@media (max-width: 991px) {
  .mp-free-feature {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body";
  }

  .mp-free-scroll {
    max-height: 420px;
  }
}

@media (max-width: 575px) {
  .mp-free-content__header h2 {
    font-size: 2rem;
  }

  .mp-free-feature {
    padding: 1.4rem;
  }

  .mp-free-placeholder {
    min-height: 200px;
  }

  .mp-free-scroll {
    max-height: 360px;
  }

  .mp-free-course {
    grid-template-columns: 64px 1fr;
    padding: 0.75rem 0.8rem;
  }

  .mp-free-avatar {
    width: 46px;
    height: 46px;
    font-size: 0.72rem;
  }

  .mp-free-course__title {
    font-size: 0.82rem;
  }

}
