.class-journey,
.class-reasons,
.class-community {
  padding: 92px 0;
}

.class-program { padding: 0 0 78px; background: var(--paper); }
.class-program-card { max-width:1180px; margin:0 auto; padding:44px 48px 40px; border-radius:28px; background:#f1eaff; color:#111a66; box-shadow:0 18px 40px rgba(17,23,95,.10); }
.class-program-card > div:first-child { text-align:center; }
.class-program-card .class-kicker { margin:0 0 12px; color:#762ec7; }
.class-program-card h2 { margin:0; color:#111a66; font-family:Georgia,"Times New Roman",serif; font-size:clamp(34px,4vw,54px); font-weight:400; line-height:1.05; letter-spacing:-.04em; }
.class-program-schedule { margin:26px auto 0; max-width:620px; color:#17216d; font-size:18px; line-height:1.55; }
.class-program-schedule strong { display:block; margin-bottom:4px; color:#762ec7; font-size:14px; letter-spacing:.1em; text-transform:uppercase; }
.class-program-price{display:block!important;margin:0!important}.class-program-price strong{display:inline!important;margin:0!important;color:#762ec7;font-size:0}.class-program-price strong::before{content:"Precio:";font-size:14px}.class-program-price span{color:#17216d;font-size:0;font-weight:400;white-space:normal;margin-left:4px}.class-program-price span::before{content:"Desde S/50";font-size:16px}
.class-program-card ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; margin:32px 0 0; padding:0; list-style:none; color:#17216d; font-size:16px; line-height:1.45; }
.class-program-card li { margin:0; padding:20px 18px; border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(17,26,102,.08); }
.class-program-card li strong { display:block; margin-bottom:8px; color:#762ec7; font-size:14px; }
.class-program-location{max-width:1080px;margin:0 auto;padding:42px 40px 48px;border-radius:28px;background:#111a66;color:#fff;text-align:left;overflow:hidden}.class-program-location .class-location-kicker{margin:0 0 12px;color:#caa8ff;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.class-program-location h2{margin:0 0 22px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,4.2vw,62px);font-weight:400;line-height:.98;letter-spacing:-.045em}.class-program-location address{font-style:normal;color:#f4f1ff;font-size:18px;line-height:1.4}.class-program-location .class-location-note{margin:18px 0 0;color:#d7c7f3;font-size:16px;font-weight:700}.class-location{padding:0 0 56px;background:var(--paper)}.class-location .class-program-location{margin:0 auto}
.class-program-price strong,.class-program-price span{display:block!important;font-size:0!important}.class-program-price strong::before,.class-program-price strong::after,.class-program-price span::before{content:none!important}.class-program-price strong::after{content:"Precio:"!important;display:block;color:#762ec7;font-size:14px!important}.class-program-price span::after{content:"Desde S/50"!important;display:block;color:#17216d;font-size:16px!important}
.class-program-card .btn { display:flex; width:max-content; margin:28px auto 0; min-height:48px; background:#111a66; color:#fff; }
.class-teachers{padding:88px 0;background:#fff}.class-teachers-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.72fr);gap:60px;align-items:center}.class-teachers-copy h2{max-width:650px;color:#11175f;font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,4.8vw,68px);font-weight:400;line-height:.97;letter-spacing:-.045em}.class-teachers-copy>p:not(.class-kicker){max-width:590px;margin:25px 0 0;color:#565b7c;font-size:19px;line-height:1.55}.class-teachers-copy .btn{margin-top:28px}.class-teachers-media{display:block;width:min(100%,420px)!important;max-width:420px!important;height:430px!important;margin:0 auto;overflow:hidden;border-radius:30px;background:#efe8ff;box-shadow:0 20px 46px rgba(17,23,95,.12)}.class-teachers-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 45%}
@media(max-width:900px){.class-teachers{padding:64px 0}.class-teachers-grid{grid-template-columns:1fr;gap:32px}.class-teachers-media{width:100%!important;max-width:none!important;height:430px!important}}
@media(max-width:760px){.class-program{padding:0 16px 58px}.class-program-card{padding:32px 20px;border-radius:22px}.class-program-card h2{font-size:36px}.class-program-schedule{font-size:16px}.class-program-card ul{grid-template-columns:1fr;gap:12px;margin-top:24px;font-size:15px}.class-program-card li{padding:18px}.class-program-card .btn{width:100%;justify-content:center;margin-top:24px}.class-location{padding:0 10px 44px}.class-program-location{padding:30px 22px 34px;border-radius:22px}.class-program-location h2{font-size:clamp(38px,10vw,52px);margin-bottom:20px}.class-program-location address{font-size:16px}.class-program-location .class-location-note{font-size:15px;margin-top:16px}.class-teachers{padding:48px 16px}.class-teachers-copy h2{font-size:clamp(34px,9vw,44px);line-height:1.02}.class-teachers-copy>p:not(.class-kicker){margin-top:16px;font-size:16px;line-height:1.5}.class-teachers-media{width:100%!important;max-width:none!important;height:390px!important;border-radius:24px}}

.class-journey {
  background: var(--paper);
}

.class-section-head {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: left;
}

.class-section-head h2,
.class-reasons h2,
.class-community h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.class-section-head p,
.class-community-copy > p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

.class-section-head p {
  max-width: 700px;
  margin-top: 16px;
}

.class-journey-list {
  display: grid;
  max-width: 860px;
  margin: 0 auto;
}

.class-journey-step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(17, 23, 95, .12);
}

.class-journey-step:first-child { border-top: 1px solid rgba(17, 23, 95, .12); }

.class-journey-media {
  width: 120px;
  height: 160px;
  overflow: hidden;
  border-radius: 18px;
}

.class-journey-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.class-journey-copy {
  position: relative;
  padding: 0;
}

.class-journey-copy::after {
  display: none;
}

.class-step-number,
.class-kicker {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.class-journey-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.class-journey-copy p:last-child {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.class-reasons-panel {
  padding: 62px;
  border: 1px solid rgba(17, 23, 95, .22);
  border-radius: 32px;
  background: #fff;
}

.class-reasons-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 50px;
  margin-top: 36px;
}

.class-reason {
  position: relative;
  padding: 22px 0 22px 30px;
  border-top: 1px solid rgba(17, 23, 95, .12);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.class-reason::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 18px;
}

.class-reason strong {
  color: var(--navy);
}

.class-community {
  background: var(--blush);
}

.class-community-grid {
  display: grid;
  grid-template-columns: minmax(280px, .56fr) minmax(0, 1.44fr);
  gap: 42px;
  align-items: center;
}

.class-community-copy > p {
  margin-top: 22px;
}

.class-community-copy .hero-actions {
  margin-top: 28px;
}

.class-community-collage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, 174px);
  gap: 12px;
}

.class-community-collage figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ddd;
}

.class-community-collage figure:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.class-community-collage figure:nth-child(3) {
  grid-column: 5;
  grid-row: 1 / 3;
}

.class-community-collage img,
.class-community-collage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.class-reviews {
  padding: 76px 0;
  background: #fff;
}

.class-reviews-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.class-reviews-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}

.class-reviews-head p:last-child {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.class-reviews-widget {
  min-height: 170px;
}

@media (max-width: 900px) {
  .class-community-grid {
    grid-template-columns: 1fr;
  }

  .class-reasons-panel {
    padding: 46px;
  }

  .class-community-extra {
    display: none;
  }
}

@media (max-width: 680px) {
  .class-journey,
  .class-reasons,
  .class-community,
  .class-reviews {
    padding: 68px 0;
  }

  .class-section-head {
    margin-bottom: 24px;
  }

  .class-journey-step {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
  }

  .class-journey-media {
    width: 84px;
    height: 112px;
    border-radius: 15px;
  }

  .class-journey-copy {
    padding: 0;
  }

  .class-step-number {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .class-journey-copy h3 {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.015em;
  }

  .class-journey-copy p:last-child {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: #6f6d79;
    font-size: 14px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .class-reasons-panel {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .class-reasons-list {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .class-community-grid {
    gap: 34px;
  }

  .class-community-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 235px 145px;
    gap: 9px;
  }

  .class-community-collage figure {
    border-radius: 18px;
  }

  .class-community-collage figure:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .class-community-collage figure:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .class-reviews-head {
    margin-bottom: 20px;
  }

  .class-reviews-widget {
    min-height: 150px;
  }
}

/* Service-page finish: local photography, social proof and responsive narrative order */
.service-proof {
  max-width: 560px;
  margin-top: 22px;
}

.service-authority {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
}

.service-authority-check {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.service-authority-stars {
  color: #7b2ad0;
  letter-spacing: .08em;
}

.service-hero-review {
  min-height: 42px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  opacity: 1;
  transition: opacity .22s ease;
}

.service-hero-review.is-changing { opacity: 0; }

.service-page .hero-photo,
.service-page .intro-photo { position: relative; }

/* Give the hero a definite height so its 100%-height image fills the card.
   A min-height alone left unused background below landscape photos. */
.service-page .hero-photo {
  height: 590px;
  min-height: 0;
}

.service-page .hero-photo img,
.service-page .intro-photo img { object-position: center; }
.service-salsa .hero-photo img { object-position: center 42%; }
.service-bachata .hero-photo img { object-position: center 38%; }
.service-combo .hero-photo img { object-position: center 44%; }
.service-page .intro-photo img { object-position: center 34%; }

/* Community collage: seven photographic pieces on desktop, three on mobile. */
.class-community-collage {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, 118px);
  gap: 12px;
  padding: 10px 2px;
}

.class-community-collage::before,
.class-community-collage::after {
  content: "";
  position: absolute;
  left: -34px;
  right: -24px;
  height: 1px;
  background: rgba(123, 42, 208, .2);
  z-index: -1;
}
.class-community-collage::before { top: 32%; }
.class-community-collage::after { top: 70%; }

.class-community-collage figure {
  position: relative;
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(17, 23, 95, .14);
  transform-origin: center;
}
.class-community-collage figure:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; transform: rotate(-1.4deg); }
.class-community-collage figure:nth-child(2) { grid-column: 3 / 5; grid-row: 1; transform: rotate(.8deg); }
.class-community-collage figure:nth-child(3) { grid-column: 5 / 7; grid-row: 1 / 4; transform: rotate(1deg); }
.class-community-collage figure:nth-child(4) { grid-column: 3; grid-row: 2; transform: rotate(-1deg); }
.class-community-collage figure:nth-child(5) { grid-column: 4; grid-row: 2; transform: rotate(1.2deg); }
.class-community-collage figure:nth-child(6) { grid-column: 1 / 3; grid-row: 3; transform: rotate(.7deg); }
.class-community-collage figure:nth-child(7) { grid-column: 3 / 5; grid-row: 3; transform: rotate(-.8deg); }
.class-community-collage figure:nth-child(1) img { object-position: center 52%; }
.class-community-collage figure:nth-child(2) img { object-position: center 62%; }
.class-community-collage figure:nth-child(3) video { object-position: center 38%; }
.class-community-collage figure:nth-child(4) img,
.class-community-collage figure:nth-child(5) img { object-position: center 28%; }
.class-community-collage figure:nth-child(6) img { object-position: center 66%; }
.class-community-collage figure:nth-child(7) img { object-position: center 42%; }

@media (max-width: 980px) {
  .service-page .intro-copy { order: 1; }
  .service-page .intro-photo { order: 2; }
  .service-page .hero-photo { height: 460px; min-height: 0; }
  .service-page .intro-photo { min-height: 440px; }
}

@media (max-width: 900px) {
  .class-community-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 0;
  }
  .class-community-collage::before,
  .class-community-collage::after { display: none; }
  .class-community-collage figure { transform: none !important; border-width: 3px; }
  .class-community-collage figure:nth-child(1) { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 16 / 9; }
  .class-community-collage figure:nth-child(2) { grid-column: 1; grid-row: 2; aspect-ratio: 3 / 4; background: #ebe6f1; }
  .class-community-collage figure:nth-child(3) { grid-column: 2; grid-row: 2; aspect-ratio: 3 / 4; background: #ebe6f1; }
  .class-community-collage figure:nth-child(2) img,
  .class-community-collage figure:nth-child(3) video {
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 520px) {
  .service-page .hero { padding-top: 36px; }
  .service-page .hero-grid { gap: 30px; }
  .service-page .hero-photo { height: 350px; min-height: 0; }
  .service-page .intro { padding: 70px 0; }
  .service-page .intro-grid { gap: 34px; }
  .service-page .intro-photo { min-height: 360px; }
  .service-authority { font-size: 12px; }
  .service-hero-review { min-height: 48px; font-size: 13px; }
  .class-community-collage { grid-template-rows: auto auto; }
}

/* Face-safe framing for the desktop community collage. */
@media (min-width: 901px) {
  .class-community-collage figure:nth-child(2) img { object-position: center 14%; }
  .class-community-collage figure:nth-child(6) img { object-position: center 24%; }
  .class-community-collage figure:nth-child(7) img { object-position: center 18%; }
}

/* Taller portrait frames keep the achievement and the whole group visible. */
@media (min-width: 901px) {
  .class-community-collage {
    grid-template-rows: repeat(4, clamp(130px, 10vw, 165px));
  }
  .class-community-collage figure:nth-child(2) { grid-row: 1 / 3; }
  .class-community-collage figure:nth-child(3) { grid-row: 1 / 5; }
  .class-community-collage figure:nth-child(4),
  .class-community-collage figure:nth-child(5) { grid-row: 3; }
  .class-community-collage figure:nth-child(6) { grid-row: 3 / 5; }
  .class-community-collage figure:nth-child(7) { grid-row: 4; }
  .class-community-collage figure:nth-child(2),
  .class-community-collage figure:nth-child(6) { background: #eee9ed; }
  .class-community-collage figure:nth-child(1) img,
  .class-community-collage figure:nth-child(2) img,
  .class-community-collage figure:nth-child(6) img,
  .class-community-collage figure:nth-child(7) img {
    object-fit: contain;
    object-position: center;
  }
}

/* Each photograph defines its own frame: no letterboxing or forced crop. */
.class-community-collage.natural-collage {
  grid-template-columns: 1fr .85fr 1.15fr;
  grid-template-rows: none;
  align-items: center;
}
.natural-collage .photo-column { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.natural-collage .photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.class-community-collage.natural-collage figure {
  grid-area: auto; aspect-ratio: auto; height: auto; min-height: 0;
  background: transparent; transform: rotate(-.7deg);
}
.class-community-collage.natural-collage [data-photo="2"],
.class-community-collage.natural-collage [data-photo="6"] { transform: rotate(.7deg); }
.class-community-collage.natural-collage figure img,
.class-community-collage.natural-collage figure video {
  width: 100%; height: auto; min-height: 0; aspect-ratio: auto;
  object-fit: cover; display: block;
}
@media (max-width: 900px) {
  .class-community-collage.natural-collage { grid-template-columns: 1fr 1fr; align-items: start; }
  .natural-collage .photo-column { display: contents; }
  .natural-collage .photo-pair { display: none; }
  .class-community-collage.natural-collage [data-photo="1"] { grid-column: 1 / -1; }
  .class-community-collage.natural-collage [data-photo="2"] { grid-column: 1; }
  .class-community-collage.natural-collage [data-photo="3"] { grid-column: 2; }
}

/* Mobile service photos retain their actual ratio instead of zooming to a tall box. */
@media (max-width: 980px) {
  .service-page .hero-photo,
  .service-page .intro-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    align-self: start;
  }
  .service-page .hero-photo img,
  .service-page .intro-photo img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }
}
.service-page .schedule{display:none!important}
.service-page section.schedule{display:none!important}
.service-page .class-reasons{display:block!important;padding:96px 0;background:#fbf4f5}
.service-page .class-reasons-panel{max-width:1080px;margin:0 auto;padding:64px 72px;border:1px solid rgba(17,23,95,.14);border-radius:34px;background:#fff;box-shadow:0 20px 50px rgba(17,23,95,.07)}
.service-page .class-reasons-panel .class-kicker{margin:0 0 14px;color:var(--purple);font-size:13px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.service-page .class-reasons-panel h2{max-width:720px;margin:0 0 42px;color:var(--navy);font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,5vw,68px);font-weight:400;letter-spacing:-.045em;line-height:.98}
.service-page .class-reasons-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 48px;border-top:1px solid rgba(17,23,95,.14)}
.service-page .class-reason{position:relative;padding:26px 0 28px 34px;border-bottom:1px solid rgba(17,23,95,.14);color:var(--ink);font-size:17px;line-height:1.55}.service-page .class-reason::before{content:"";position:absolute;top:34px;left:0;width:10px;height:10px;border-radius:50%;background:var(--purple);box-shadow:0 0 0 6px #efe8ff}.service-page .class-reason strong{color:var(--navy);font-weight:850}
@media(max-width:700px){.service-page .class-reasons{padding:58px 0}.service-page .class-reasons-panel{padding:34px 22px;border-radius:24px}.service-page .class-reasons-panel h2{margin-bottom:28px;font-size:42px}.service-page .class-reasons-list{grid-template-columns:1fr}.service-page .class-reason{padding:20px 0 22px 28px;font-size:15px}.service-page .class-reason::before{top:28px;width:8px;height:8px;box-shadow:0 0 0 5px #efe8ff}}
.service-page .class-reasons-list{counter-reset:reason;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border-top:0}.service-page .class-reason{counter-increment:reason;min-height:158px;padding:52px 26px 24px;border:1px solid rgba(17,23,95,.12);border-radius:22px;background:linear-gradient(145deg,#fff,#fbf8ff);box-shadow:0 12px 26px rgba(17,23,95,.06);font-size:16px;line-height:1.55;transition:transform .2s ease,box-shadow .2s ease}.service-page .class-reason:hover{transform:translateY(-3px);box-shadow:0 18px 32px rgba(17,23,95,.11)}.service-page .class-reason::before{content:counter(reason,decimal-leading-zero);top:20px;left:22px;width:34px;height:34px;display:grid;place-items:center;border:1px solid #29d7b4;border-radius:50%;background:#effcf8;color:var(--purple);font-size:12px;font-weight:850;box-shadow:none}.service-page .class-reason strong{display:block;margin-bottom:7px;font-size:18px;line-height:1.2}
@media(max-width:700px){.service-page .class-reasons-list{grid-template-columns:1fr;gap:12px}.service-page .class-reason{min-height:0;padding:50px 20px 22px;font-size:15px}.service-page .class-reason::before{top:18px;left:18px;width:32px;height:32px}.service-page .class-reason strong{font-size:17px}}
.service-page .class-reason{border:0!important}
.service-page .class-reason{min-height:200px!important;padding:78px 30px 28px!important}
.service-page .class-reason::before{top:22px!important;left:26px!important;width:42px!important;height:42px!important;font-size:14px!important}
.service-page .class-reason strong{margin-bottom:12px!important;font-size:20px!important;line-height:1.25!important}
@media(max-width:700px){.service-page .class-reason{min-height:0!important;padding:68px 20px 24px!important}.service-page .class-reason::before{top:18px!important;left:18px!important;width:38px!important;height:38px!important}.service-page .class-reason strong{font-size:18px!important}}
