/* Aura Fitness · iteración 3: disciplinas diagonales, coaching compacto y widget */

.classes-section {
  padding: 104px 22px 84px;
  background:
    radial-gradient(circle at 12% 0%, rgba(214,255,63,.13), transparent 27%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.classes-section::before {
  content: none;
}

.classes-wrap {
  max-width: 1380px;
  margin: 0 auto;
}

.classes-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.classes-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.classes-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(214,255,63,.12);
}

.classes-editorial h2 {
  max-width: none;
  font-size: clamp(58px, 8vw, 112px);
  line-height: .82;
}

.classes-stats {
  display: flex;
  align-items: center;
  min-width: 360px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.classes-stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  flex: 1;
  padding: 0 22px;
}

.classes-stats > div + div {
  border-left: 1px solid rgba(255,255,255,.16);
}

.classes-stats strong {
  color: var(--brand);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.07em;
}

.classes-stats span {
  max-width: 72px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.classes-stripe {
  display: flex;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 34px;
  background: #0d0d0d;
  box-shadow: 0 35px 100px rgba(0,0,0,.45);
}

.class-slice {
  --slice-accent: 214, 255, 63;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 480px;
  margin-left: -18px;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transition: flex-grow .45s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.class-slice:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.class-slice:last-child {
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.class-slice:hover {
  flex-grow: 1.48;
  z-index: 3;
}

.class-slice-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(.72) contrast(1.08);
  transform: scale(1.03);
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.class-slice:hover .class-slice-photo {
  filter: saturate(.95) contrast(1.05);
  transform: scale(1.09);
}

.class-slice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 22%, rgba(0,0,0,.9) 100%),
    linear-gradient(135deg, rgba(var(--slice-accent),.28), transparent 55%);
}

.class-slice::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.28);
  transform: rotate(2deg);
  transform-origin: center;
}

.class-slice-copy {
  position: absolute;
  left: clamp(24px, 2.2vw, 36px);
  right: 18px;
  bottom: 28px;
  color: #fff;
}

.class-slice-copy > span {
  display: block;
  margin-bottom: 13px;
  color: rgb(var(--slice-accent));
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .1em;
}

.class-slice-copy h3 {
  margin: 0;
  font-size: clamp(25px, 2.45vw, 42px);
  line-height: .86;
  letter-spacing: -.065em;
}

.class-slice-copy p {
  margin: 13px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.class-slice-functional { --slice-accent: 167, 255, 125; }
.class-slice-cross { --slice-accent: 214, 255, 63; }
.class-slice-abs { --slice-accent: 255, 91, 91; }
.class-slice-baile { --slice-accent: 84, 204, 255; }
.class-slice-pilates { --slice-accent: 255, 171, 96; }
.class-slice-yoga { --slice-accent: 239, 142, 255; }

.class-slice-functional .class-slice-photo { background-image: url("img/funcional.webp"); background-position: 42% center; }
.class-slice-cross .class-slice-photo { background-image: url("img/cross-training.webp"); background-position: 54% center; }
.class-slice-abs .class-slice-photo { background-image: url("img/hiit.webp"); background-position: 58% center; }
.class-slice-baile .class-slice-photo { background-image: url("img/baile.webp"); background-position: 44% center; }
.class-slice-pilates .class-slice-photo { background-image: url("img/pilates.webp"); background-position: 47% center; }
.class-slice-yoga .class-slice-photo { background-image: url("img/yoga.webp"); background-position: 53% center; }

.classes-cta {
  display: block;
  margin-top: 18px;
  padding: 0 4px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.classes-cta strong {
  font-size: 17px;
}

.classes-cta span {
  margin-top: 4px;
}

.widget-nudge {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 9998;
  width: 78px;
  height: 78px;
  color: var(--brand);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 9px 15px rgba(0,0,0,.55));
  transform: translateY(10px) scale(.9);
  transition: opacity .3s ease, transform .3s ease;
}

.widget-nudge.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.widget-nudge svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: widgetArrow 1.45s ease-in-out infinite;
}

.widget-nudge path {
  stroke-dasharray: 118;
  stroke-dashoffset: 118;
  animation: widgetTrace 2.4s cubic-bezier(.55,0,.2,1) infinite;
}

.widget-nudge circle {
  transform-origin: center;
  animation: widgetPulse 1.8s ease-out infinite;
}

.whatsapp-float {
  right: auto !important;
  left: 24px !important;
}

.coaching-section {
  padding: 62px 22px 74px;
  background:
    radial-gradient(circle at 92% 0%, rgba(214,255,63,.32), transparent 23%),
    #f4f4ef;
}

.coaching-section::after {
  content: none;
}

.coaching-kicker {
  margin-bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: #111;
}

.coaching-kicker span {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(214,255,63,.12);
}

.coaching-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(470px, .96fr);
  gap: 16px;
  align-items: stretch;
}

.coaching-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.coaching-summary .coaching-kicker {
  align-self: flex-start;
}

.coaching-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(210px, .92fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 34px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 60px rgba(0,0,0,.08);
  backdrop-filter: blur(18px);
}

.coaching-compact-intro,
.coaching-compact-title,
.coaching-compact > .coaching-formats {
  min-width: 0;
  padding: 30px;
}

.coaching-compact-title {
  border-left: 1px solid rgba(0,0,0,.09);
}

.coaching-compact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coaching-compact-intro h2 {
  margin: 0;
  font-size: clamp(52px, 4.85vw, 74px);
  line-height: .78;
  letter-spacing: -.085em;
}

.coaching-compact-intro h2 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.6px #0a0a0a;
}

.coaching-compact-intro p {
  margin: 25px 0 0;
  color: rgba(0,0,0,.5);
  font-size: 14px;
  line-height: 1.5;
}

.coaching-compact-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(214,255,63,.13), rgba(255,255,255,.08) 58%);
}

.coaching-compact-title::after {
  content: "AURA";
  position: absolute;
  right: -12px;
  bottom: -18px;
  color: rgba(0,0,0,.025);
  font-size: 96px;
  line-height: .8;
  font-weight: 950;
  letter-spacing: -.09em;
}

.coaching-compact-title h3 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
  font-size: clamp(36px, 2.85vw, 46px);
  line-height: .82;
  letter-spacing: -.075em;
}

.coaching-compact-ratio {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 19px;
  color: var(--brand);
  font-size: clamp(86px, 7vw, 112px);
  line-height: .62;
  font-weight: 950;
  letter-spacing: -.085em;
}

.coaching-compact > .coaching-formats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 16px;
  border-top: 1px solid rgba(0,0,0,.09);
}

.coaching-compact .coaching-formats article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 86px;
  padding: 14px 11px;
  border-radius: 18px;
  background: rgba(247,247,242,.78);
}

.coaching-compact .coaching-formats article > span {
  position: static;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--brand);
  background: #101010;
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.055em;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.coaching-compact .coaching-formats h3 {
  margin: 0 0 5px;
  font-size: clamp(24px, 1.7vw, 27px);
  line-height: 1;
  letter-spacing: -.045em;
}

.coaching-compact .coaching-formats article:last-child h3 {
  font-size: clamp(23px, 1.62vw, 26px);
}

.coaching-compact .coaching-formats strong {
  position: static;
  display: block;
  color: rgba(0,0,0,.5);
  font-size: 9.5px;
  line-height: 1.15;
  letter-spacing: .065em;
}

.coaching-booking {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  margin: 50px 0 0;
  padding: 20px;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 30px;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(16px);
}

.coaching-booking-widget {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
}

.coaching-booking-widget vg-guest-booking {
  display: block;
  width: 100%;
}

.services-section {
  max-width: none;
  margin: 0;
  padding: 60px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.services-wrap {
  max-width: var(--max);
  margin: 0 auto;
}

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

.service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.service-card-copy {
  padding: 32px 32px 24px;
}

.service-card-copy .service-card-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.service-card-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: .95;
  letter-spacing: -.055em;
}

.service-card-copy > p:not(.service-card-kicker) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.service-card-copy a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.service-card-photo {
  flex: 1;
  min-height: 320px;
  margin: 0;
  background-position: center;
  background-size: cover;
}

.service-card-photo-supplements {
  background-image: url("img/suplementos-iogenix.webp");
}

.service-card-photo-nutrition {
  background-image: url("img/asesoramiento-nutricional.webp");
}

.app-section {
  max-width: none;
  margin: 0;
  padding: 60px 22px;
  background: #050505;
}

.app-section .app-block {
  max-width: var(--max);
  margin: 0 auto;
}

@keyframes widgetArrow {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(5px, 6px) rotate(2deg); }
}

@keyframes widgetTrace {
  0% { stroke-dashoffset: 118; opacity: .25; }
  42%, 78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes widgetPulse {
  0%, 45% { transform: scale(.76); opacity: .35; }
  75% { transform: scale(1.18); opacity: .8; }
  100% { transform: scale(1.36); opacity: 0; }
}

@media (max-width: 1120px) {
  .classes-editorial {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .classes-stats {
    width: min(100%, 430px);
  }

  .class-slice-copy {
    left: 26px;
  }

  .class-slice-copy h3 {
    font-size: clamp(24px, 3vw, 34px);
  }

  .coaching-layout {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  }

  .coaching-compact-intro,
  .coaching-compact-title {
    padding: 26px;
  }

  .coaching-compact-intro h2 {
    font-size: clamp(46px, 5vw, 62px);
  }
}

@media (max-width: 940px) {
  .coaching-layout {
    grid-template-columns: 1fr;
  }

  .coaching-compact {
    min-height: 0;
  }

  .coaching-booking {
    margin-top: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .classes-section,
  .coaching-section {
    padding-top: 78px;
    padding-bottom: 70px;
  }

  .classes-stripe {
    min-height: 350px;
    overflow: hidden;
    border-radius: 28px;
  }

  .class-slice,
  .class-slice:first-child,
  .class-slice:last-child {
    flex: 1 1 0;
    min-width: 0;
    min-height: 350px;
    margin-left: -7px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  }

  .class-slice:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  }

  .class-slice:hover {
    flex-grow: 1;
  }

  .class-slice-copy {
    left: clamp(10px, 2vw, 18px);
    right: 6px;
    bottom: 18px;
  }

  .class-slice-copy > span {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .class-slice-copy h3 {
    font-size: clamp(13px, 2.8vw, 23px);
    line-height: .9;
    overflow-wrap: anywhere;
  }

  .class-slice-copy p {
    margin-top: 8px;
    font-size: 8px;
  }

  .coaching-compact-intro,
  .coaching-compact-title {
    padding: 30px;
  }

  .coaching-booking { gap: 0; }
}

@media (max-width: 620px) {
  .classes-section,
  .coaching-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .classes-editorial h2 {
    font-size: clamp(52px, 16vw, 78px);
  }

  .classes-stats {
    min-width: 0;
  }

  .classes-stats > div {
    padding: 0 14px;
  }

  .classes-stats > div:first-child {
    padding-left: 2px;
  }

  .classes-stats strong {
    font-size: 31px;
  }

  .classes-stripe {
    min-height: clamp(245px, 74vw, 310px);
    margin-right: 0;
    border-right: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
  }

  .class-slice,
  .class-slice:first-child,
  .class-slice:last-child {
    flex: 1 1 0;
    min-width: 0;
    min-height: clamp(245px, 74vw, 310px);
    margin-left: -4px;
    clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  }

  .class-slice:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
  }

  .class-slice:last-child {
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  }

  .class-slice-copy {
    left: clamp(6px, 1.8vw, 9px);
    right: 2px;
    bottom: 12px;
  }

  .class-slice-copy > span {
    margin-bottom: 6px;
    font-size: 7px;
  }

  .class-slice-copy h3 {
    font-size: clamp(9px, 2.75vw, 13px);
    line-height: .9;
    letter-spacing: -.045em;
  }

  .class-slice-copy p {
    display: none;
  }

  .classes-cta {
    align-items: flex-start;
    gap: 16px;
    padding-top: 1px;
  }

  .widget-nudge {
    right: 8px;
    bottom: 72px;
    width: 58px;
    height: 58px;
  }

  .whatsapp-float {
    left: 14px !important;
  }

  .coaching-kicker {
    max-width: 100%;
    font-size: 10px;
  }

  .coaching-compact {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .coaching-compact-intro,
  .coaching-compact-title,
  .coaching-compact > .coaching-formats {
    padding: 26px 24px;
  }

  .coaching-compact-intro h2 {
    font-size: clamp(49px, 15vw, 68px);
  }

  .coaching-compact-intro p {
    margin-top: 22px;
  }

  .coaching-compact-title {
    min-height: 160px;
    border-top: 1px solid rgba(0,0,0,.09);
    border-left: 0;
  }

  .coaching-compact-title h3 {
    font-size: clamp(40px, 12.5vw, 54px);
  }

  .coaching-compact-ratio {
    margin-bottom: 22px;
    font-size: clamp(76px, 23vw, 106px);
  }

  .coaching-compact > .coaching-formats {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-top: 1px solid rgba(0,0,0,.09);
  }

  .coaching-compact .coaching-formats article {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 78px;
  }

  .coaching-compact .coaching-formats article > span {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .coaching-compact .coaching-formats h3 {
    font-size: 25px;
  }

  .coaching-booking {
    padding: 18px;
    border-radius: 25px;
  }

  .coaching-booking-widget {
    border-radius: 18px;
  }

  .services-section,
  .app-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-card-copy {
    padding: 26px 24px 22px;
  }

  .service-card-photo {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .widget-nudge svg,
  .widget-nudge path,
  .widget-nudge circle {
    animation: none !important;
  }

  .widget-nudge path {
    stroke-dashoffset: 0;
  }
}
