/* ==========================================================
   ESCUELA DE GIMNASIA — LA ESCUELA
   ========================================================== */


/* ==========================================================
   01. HERO
   ========================================================== */

.eg-page-escuela .school-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(
      112deg,
      #102d59 0%,
      #102d59 52%,
      #163564 100%
    );
  color: #fff;
}

.eg-page-escuela .school-hero::before {
  position: absolute;
  top: -260px;
  left: -230px;
  width: 520px;
  height: 520px;
  border: 52px solid rgba(49,197,233,.055);
  border-radius: 50%;
  content: "";
}

.eg-page-escuela .school-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(48px,6vw,90px);
  min-height: 610px;
  align-items: center;
}


/* Copy */

.eg-page-escuela .school-hero-copy {
  position: relative;
  z-index: 2;
  padding: 88px 0;
}

.eg-page-escuela .school-hero .eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
}

.eg-page-escuela .school-hero-copy h1 {
  max-width: 560px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(3.7rem,5.4vw,5.7rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.eg-page-escuela .school-hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.65;
}


/* Mantra */

.eg-page-escuela .school-mantra {
  position: relative;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: var(--cyan);
  font-size: clamp(3rem,4.7vw,5rem);
  font-weight: 900;
  line-height: .77;
  letter-spacing: -.085em;
}


/* Visual */

.eg-page-escuela .school-hero-media {
  position: relative;
  min-height: 610px;
  height: 100%;
  overflow: hidden;
  border-radius: 240px 0 0 0;
  background:
    linear-gradient(
      90deg,
      rgba(16,45,89,.28),
      rgba(16,45,89,.03) 48%
    ),
    url("/wp-content/plugins/escuela-gimnasia-core/assets/images/editorial-gymnast.png")
    center / cover;
}

.eg-page-escuela .school-hero-media::before {
  position: absolute;
  z-index: 2;
  top: 38px;
  right: -38px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.eg-page-escuela .school-hero-media::after {
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 76px;
  height: 8px;
  background: var(--cyan);
  content: "";
}


/* ==========================================================
   02. NUESTRA HISTORIA
   ========================================================== */

.eg-page-escuela .school-history-section {
  background: #fff;
}

.eg-page-escuela .school-history {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(55px,8vw,110px);
  align-items: start;
}

.eg-page-escuela .school-history-copy {
  max-width: 470px;
}

.eg-page-escuela .school-history-copy .eyebrow {
  margin-bottom: 16px;
}

.eg-page-escuela .school-history-copy h2 {
  max-width: 470px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2.9rem,4.7vw,4.8rem);
  line-height: .92;
}

.eg-page-escuela .school-history-copy .lead {
  max-width: 460px;
  margin: 0;
}


/* Trayectoria institucional */

.eg-page-escuela .institution-line {
  position: relative;
  border-top: 1px solid var(--line);
}

.eg-page-escuela .institution-line::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 1px;
  background:
    linear-gradient(
      180deg,
      rgba(231,55,125,.6),
      rgba(49,197,233,.35)
    );
  content: "";
}

.eg-page-escuela .institution-line article {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0,1fr);
  gap: 28px;
  align-items: center;
  min-height: 145px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.eg-page-escuela .institution-line .stamp {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100px;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.eg-page-escuela .institution-line .year-stamp {
  color: var(--pink);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -.045em;
}

.eg-page-escuela .institution-line img {
  width: auto;
  max-width: 88px;
  max-height: 54px;
  object-fit: contain;
}

.eg-page-escuela .institution-line h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.15;
}

.eg-page-escuela .institution-line p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}


/* ==========================================================
   03. NUESTRA FORMA DE ENSEÑAR
   ========================================================== */

.eg-page-escuela .school-method-section {
  position: relative;
  overflow: hidden;
  background: #f3fafd;
}

.eg-page-escuela .school-method {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: clamp(55px, 7vw, 100px);
  align-items: center;
}


/* ==========================================================
   FOTOGRAFÍA
   ========================================================== */

.eg-page-escuela .school-method-media {
  position: relative;
  min-height: 580px;
  border-radius: 0 190px 0 0;
  background:
    linear-gradient(
      180deg,
      rgba(16,45,89,.02) 35%,
      rgba(16,45,89,.23) 100%
    ),
    url("/wp-content/plugins/escuela-gimnasia-core/assets/images/editorial-gymnast.png")
    center / cover;
}


/* Elemento gráfico */

.eg-page-escuela .school-method-media::after {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}


/* ==========================================================
   CONTENIDO
   ========================================================== */

.eg-page-escuela .school-method-copy {
  max-width: 570px;
}

.eg-page-escuela .school-method-copy .eyebrow {
  margin-bottom: 17px;
}

.eg-page-escuela .school-method-copy h2 {
  max-width: 550px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.9rem, 4.6vw, 4.7rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.eg-page-escuela .school-method-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}


/* ==========================================================
   PRINCIPIOS
   ========================================================== */

.eg-page-escuela .method-points {
  display: grid;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  counter-reset: method;
}

.eg-page-escuela .method-points div {
  display: grid;
  grid-template-columns: 32px 132px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: method;
}


/* Numeración */

.eg-page-escuela .method-points div::before {
  content: "0" counter(method);
  padding-top: 3px;
  color: var(--pink);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
}


/* Nombre del principio */

.eg-page-escuela .method-points strong {
  color: var(--navy);
  font-size: .87rem;
  font-weight: 900;
  line-height: 1.45;
}


/* Descripción */

.eg-page-escuela .method-points span {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}


/* ==========================================================
   04. ALTO RENDIMIENTO
   ========================================================== */

.eg-page-escuela .school-competition {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 600px;
  padding: 110px 0;
  background: #102d59;
  color: #fff;
}


/* Elemento gráfico de fondo */

.eg-page-escuela .school-competition::before {
  position: absolute;
  z-index: 0;
  top: -210px;
  left: -250px;
  width: 520px;
  height: 520px;
  border: 52px solid rgba(49,197,233,.055);
  border-radius: 50%;
  content: "";
}


/* Fotografía competitiva */

.eg-page-escuela .school-competition::after {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 46%;
  background:
    linear-gradient(
      90deg,
      #102d59 0%,
      rgba(16,45,89,.75) 23%,
      rgba(16,45,89,.24) 67%,
      rgba(16,45,89,.08) 100%
    ),
    url("/wp-content/plugins/escuela-gimnasia-core/assets/images/editorial-gymnast.png")
    center 30% / cover;
  content: "";
}


/* Contenedor */

.eg-page-escuela .school-competition .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 380px;
}


/* Contenido */

.eg-page-escuela .school-competition-copy {
  position: relative;
  max-width: 585px;
}

.eg-page-escuela .school-competition .eyebrow {
  margin-bottom: 19px;
  color: var(--cyan);
}

.eg-page-escuela .school-competition h2 {
  max-width: 580px;
  margin-bottom: 25px;
  color: #fff;
  font-size: clamp(3rem, 4.8vw, 4.9rem);
  line-height: .91;
  letter-spacing: -.067em;
}

.eg-page-escuela .school-competition p:not(.eyebrow) {
  max-width: 490px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: .95rem;
  line-height: 1.7;
}


/* Conceptos competitivos */

.eg-page-escuela .competition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 38px 0 32px;
  padding-top: 21px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.eg-page-escuela .competition-tags span {
  border: 0;
  padding: 0;
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}


/* Enlace */

.eg-page-escuela .school-selection-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 850;
}

.eg-page-escuela .school-selection-link::after {
  color: var(--cyan);
}

.eg-page-escuela .school-selection-link:hover {
  color: var(--cyan);
}



/* ==========================================================
   05. NUESTRO EQUIPO
   ========================================================== */

.eg-page-escuela .school-team-section {
  position: relative;
  background: #fff;
}

.eg-page-escuela .school-team {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(45px, 7vw, 100px);
  align-items: center;
}


/* Contenido editorial */

.eg-page-escuela .school-team-copy {
  max-width: 470px;
}

.eg-page-escuela .school-team-copy .eyebrow {
  margin-bottom: 17px;
}

.eg-page-escuela .school-team-copy h2 {
  max-width: 480px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(2.9rem, 4.5vw, 4.6rem);
  line-height: .93;
  letter-spacing: -.065em;
}

.eg-page-escuela .school-team-copy .lead {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
}


/* Composición visual */

.eg-page-escuela .team-space {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  min-height: 390px;
  overflow: hidden;
  border-radius: 0 115px 0 0;
  background: #eef7fc;
}


/* Panel navy */

.eg-page-escuela .team-space-main {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(26px, 3vw, 43px);
  background:
    linear-gradient(
      145deg,
      #173b70 0%,
      var(--navy) 75%
    );
  color: #fff;
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.075em;
}


/* Círculo gráfico */

.eg-page-escuela .team-space-main::before {
  position: absolute;
  top: -115px;
  right: -125px;
  width: 310px;
  height: 310px;
  border: 43px solid rgba(49, 197, 233, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}


/* Acento rosa */

.eg-page-escuela .team-space-main::after {
  position: absolute;
  top: 34px;
  left: 34px;
  width: 48px;
  height: 8px;
  background: var(--pink);
  content: "";
}


/* Panel editorial secundario */

.eg-page-escuela .team-space-note {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 17px;
  padding: clamp(25px, 3vw, 40px);
  background: #eef7fc;
}

.eg-page-escuela .team-space-note .team-space-kicker {
  margin: 0;
  color: var(--pink);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eg-page-escuela .team-space-note p:not(.team-space-kicker) {
  margin: 0;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.65;
}




/* ==========================================================
   06. CTA FINAL
   ========================================================== */

.eg-page-escuela .school-final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 105px 0 110px;
  background:
    linear-gradient(
      135deg,
      #eef8fc 0%,
      #f7fbfe 55%,
      #eaf5fb 100%
    );
  color: var(--navy);
  text-align: center;
}


/* Elementos gráficos */

.eg-page-escuela .school-final-cta::before {
  position: absolute;
  z-index: -1;
  top: -240px;
  right: -230px;
  width: 510px;
  height: 510px;
  border: 55px solid rgba(49,197,233,.10);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.eg-page-escuela .school-final-cta::after {
  position: absolute;
  z-index: -1;
  bottom: -220px;
  left: -190px;
  width: 390px;
  height: 390px;
  border: 42px solid rgba(231,55,125,.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}


/* Contenido */

.eg-page-escuela .school-final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 840px;
}

.eg-page-escuela .school-final-cta h2 {
  max-width: 810px;
  margin: 0 auto 22px;
  color: var(--navy);
  font-size: clamp(3rem,5vw,5rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.eg-page-escuela .school-final-cta p {
  max-width: 570px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}


/* Acciones */

.eg-page-escuela .school-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.eg-page-escuela .school-final-cta-actions .button {
  min-height: 52px;
  padding: 0 28px;
  font-size: .84rem;
}


/* Botón principal */

.eg-page-escuela .school-final-cta-actions .button.white {
  border: 1px solid var(--pink);
  background: var(--pink);
  color: #fff;
}

.eg-page-escuela .school-final-cta-actions .button.white:hover {
  background: #cb2868;
  border-color: #cb2868;
  box-shadow: 0 12px 24px rgba(231,55,125,.20);
}


/* Botón secundario */

.eg-page-escuela .school-final-cta-actions .button.outline.white {
  border: 1px solid rgba(16,45,89,.24);
  background: transparent;
  color: var(--navy);
}

.eg-page-escuela .school-final-cta-actions .button.outline.white:hover {
  border-color: var(--navy);
  background: rgba(16,45,89,.045);
  box-shadow: none;
}


/* Accesibilidad */

.eg-page-escuela .school-final-cta-actions .button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}


/* ==========================================================
   07. RESPONSIVE
   ========================================================== */


/* ==========================================================
   TABLET — 900px
   ========================================================== */

@media (max-width: 900px) {

  /* 01. HERO */

  .eg-page-escuela .school-hero {
    padding-bottom: 0;
  }

  .eg-page-escuela .school-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
  }

  .eg-page-escuela .school-hero-copy {
    max-width: 680px;
    padding: 76px 0 0;
  }

  .eg-page-escuela .school-hero-copy h1 {
    max-width: 620px;
    font-size: clamp(3.4rem, 7vw, 4.8rem);
  }

  .eg-page-escuela .school-hero-media {
    min-height: 430px;
    border-radius: 190px 0 0 0;
  }


  /* 02. NUESTRA HISTORIA */

  .eg-page-escuela .school-history {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .eg-page-escuela .school-history-copy {
    max-width: 620px;
    margin-bottom: 34px;
  }


  /* 03. NUESTRA FORMA DE ENSEÑAR */

  .eg-page-escuela .school-method {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .eg-page-escuela .school-method-media {
    min-height: 460px;
    border-radius: 0 160px 0 0;
  }

  .eg-page-escuela .school-method-copy {
    max-width: 680px;
    margin-top: 0;
  }


  /* 04. ALTO RENDIMIENTO */

  .eg-page-escuela .school-competition {
    min-height: 0;
    padding: 90px 0;
  }

  .eg-page-escuela .school-competition::after {
    inset: 0;
    background:
      linear-gradient(
        90deg,
        rgba(16,45,89,.96),
        rgba(16,45,89,.74)
      ),
      url("/wp-content/plugins/escuela-gimnasia-core/assets/images/editorial-gymnast.png")
      center / cover;
  }

  .eg-page-escuela .school-competition .wrap {
    min-height: 0;
  }

  .eg-page-escuela .school-competition-copy {
    max-width: 620px;
  }


  /* 05. NUESTRO EQUIPO */

  .eg-page-escuela .school-team {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .eg-page-escuela .school-team-copy {
    max-width: 680px;
  }

  .eg-page-escuela .team-space {
    min-height: 350px;
    margin-top: 38px;
  }


  /* 06. CTA FINAL */

  .eg-page-escuela .school-final-cta {
    padding: 85px 0 90px;
  }

  .eg-page-escuela .school-final-cta h2 {
    max-width: 720px;
  }

}


/* ==========================================================
   MOBILE — 780px
   ========================================================== */

@media (max-width: 780px) {

  /* 01. HERO */

  .eg-page-escuela .school-hero-copy {
    padding: 62px 0 0;
  }

  .eg-page-escuela .school-hero-copy h1 {
    font-size: clamp(3.1rem, 12vw, 4.4rem);
  }

  .eg-page-escuela .school-mantra {
    margin-top: 32px;
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .eg-page-escuela .school-hero-media {
    width: calc(100% + 18px);
    min-height: 360px;
    margin-right: -18px;
    margin-left: 28px;
    border-radius: 145px 0 0 0;
  }

  .eg-page-escuela .school-hero-media::before {
    top: -22px;
    right: -18px;
    width: 76px;
    height: 76px;
  }

  .eg-page-escuela .school-hero-media::after {
    right: 18px;
    bottom: 18px;
    width: 60px;
  }


  /* 02. NUESTRA HISTORIA */

  .eg-page-escuela .institution-line::before {
    left: 39px;
  }

  .eg-page-escuela .institution-line article {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
    min-height: 125px;
    padding: 22px 0;
  }

  .eg-page-escuela .institution-line .stamp {
    width: 80px;
    min-height: 68px;
  }

  .eg-page-escuela .institution-line .year-stamp {
    font-size: 1.55rem;
  }

  .eg-page-escuela .institution-line img {
    max-width: 70px;
    max-height: 46px;
  }


  /* 03. NUESTRA FORMA DE ENSEÑAR */

  .eg-page-escuela .school-method {
    gap: 32px;
  }

  .eg-page-escuela .school-method-media {
    min-height: 350px;
    border-radius: 0 120px 0 0;
  }

  .eg-page-escuela .school-method-media::after {
    right: 20px;
    bottom: 20px;
    width: 62px;
    height: 62px;
  }

  .eg-page-escuela .school-method-copy h2 {
    font-size: clamp(2.7rem, 11vw, 4rem);
  }

  .eg-page-escuela .method-points {
    margin-top: 30px;
  }

  .eg-page-escuela .method-points div {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 19px 0;
  }

  .eg-page-escuela .method-points div::before {
    grid-row: 1 / 3;
  }

  .eg-page-escuela .method-points span {
    grid-column: 2;
  }


  /* 04. ALTO RENDIMIENTO */

  .eg-page-escuela .school-competition {
    padding: 78px 0;
  }

  .eg-page-escuela .school-competition::after {
    inset: 0;
    opacity: 1;
    background:
      linear-gradient(
        90deg,
        rgba(16,45,89,.92),
        rgba(16,45,89,.76)
      ),
      url("/wp-content/plugins/escuela-gimnasia-core/assets/images/editorial-gymnast.png")
      center / cover;
  }

  .eg-page-escuela .school-competition h2 {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .eg-page-escuela .competition-tags {
    gap: 16px;
    margin: 30px 0 28px;
  }


  /* 05. NUESTRO EQUIPO */

  .eg-page-escuela .school-team {
    gap: 0;
  }

  .eg-page-escuela .team-space {
    min-height: 320px;
    margin-top: 32px;
    border-radius: 0 90px 0 0;
  }

  .eg-page-escuela .team-space-main {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
  }

  .eg-page-escuela .team-space-note {
    padding: 25px;
  }


  /* 06. CTA FINAL */

  .eg-page-escuela .school-final-cta {
    padding: 75px 0 80px;
  }

  .eg-page-escuela .school-final-cta h2 {
    max-width: 580px;
    font-size: clamp(2.7rem, 10vw, 4rem);
  }

  .eg-page-escuela .school-final-cta p {
    max-width: 450px;
    font-size: .94rem;
  }

  .eg-page-escuela .school-final-cta-actions {
    justify-content: center;
    margin-top: 30px;
  }

}


/* ==========================================================
   MOBILE PEQUEÑO — 480px
   ========================================================== */

@media (max-width: 480px) {

  /* 05. NUESTRO EQUIPO */

  .eg-page-escuela .team-space {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 0 80px 0 0;
  }

  .eg-page-escuela .team-space-main {
    min-height: 230px;
    padding: 30px;
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .eg-page-escuela .team-space-note {
    min-height: 170px;
    padding: 28px 30px;
  }


  /* 06. CTA FINAL */

  .eg-page-escuela .school-final-cta {
    padding: 68px 0 74px;
  }

  .eg-page-escuela .school-final-cta h2 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  .eg-page-escuela .school-final-cta-actions {
    flex-direction: column;
    width: min(100%, 350px);
    gap: 12px;
  }

  .eg-page-escuela .school-final-cta-actions .button {
    width: 100%;
  }

}

