:root {
  --navy: #010d35;
  --blue: #0075ff;
  --blue-2: #0b4ead;
  --orange: #fe951c;
  --ink: #06143d;
  --muted: #687795;
  --line: rgba(7, 28, 78, 0.12);
  --shadow: 0 24px 70px rgba(1, 13, 53, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f8fc;
  padding-top: 90px;
  overflow-x: hidden;
}

.back-to-coaching-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(7, 28, 78, 0.12);
  box-shadow: 0 14px 34px rgba(1, 13, 53, 0.14);
  text-decoration: none;
  font-weight: 850;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.back-to-coaching-btn:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-2px);
}

.group-hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 76px 0 104px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 117, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #010d35 0%, #06296a 54%, #0075ff 130%);
}

.group-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 112px;
  z-index: -1;
  background: #f5f8fc;
  clip-path: polygon(0 64%, 36% 34%, 100% 60%, 100% 100%, 0 100%);
}

.group-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--blue);
  background: #e7f1ff;
}

.group-hero .section-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.group-hero-copy {
  max-width: 650px;
}

.group-hero-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(2.7rem, 5.6vw, 5.3rem);
  line-height: 0.96;
  font-weight: 950;
}

.group-hero-copy p {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-btn-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 18px 38px rgba(254, 149, 28, 0.32);
}

.hero-btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.hero-btn:hover {
  color: #fff;
  transform: translateY(-3px);
}

.hero-btn-primary:hover {
  background: #ff8400;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.group-hero-photo {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.group-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(1, 13, 53, 0.78) 100%);
}

.group-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}

.hero-photo-badge {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: rgba(1, 13, 53, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-photo-badge span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-photo-badge strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 950;
}

.group-options-section,
.fixed-class-section {
  padding: 100px 0;
}

.group-options-section {
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 117, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f5f8fc 0%, #edf4fb 100%);
}

.fixed-class-section {
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-heading h2,
.fixed-class-copy h2 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 950;
}

.section-heading p,
.fixed-class-copy p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

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

.training-option {
  position: relative;
  min-height: 100%;
  padding: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.training-option::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.option-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-size: 1.45rem;
}

.ticket-option .option-icon {
  background: var(--blue);
}

.option-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #e7f1ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.training-option h3 {
  margin: 16px 0 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
  font-weight: 950;
}

.training-option p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.option-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.option-list span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #243451;
  font-weight: 750;
}

.option-list i {
  color: var(--orange);
}

.ticket-option .option-list i {
  color: var(--blue);
}

.option-btn,
.ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 30px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.option-btn:hover,
.ticket-btn:hover {
  transform: translateY(-3px);
  background: #ff8400;
}

.option-btn-blue,
.ticket-btn {
  background: var(--blue);
}

.option-btn-blue:hover,
.ticket-btn:hover {
  background: var(--blue-2);
}

.fixed-class-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: center;
  padding: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 13, 53, 0.96), rgba(6, 41, 106, 0.95)),
    url("Imagenes/Foto Grupal.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 80px rgba(1, 13, 53, 0.18);
}

.fixed-class-copy .section-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fixed-class-copy h2 {
  color: #fff;
}

.fixed-class-copy p {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.76);
}

.ticket-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.ticket-top {
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ffb45c);
}

.ticket-top span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-top strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.ticket-body {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.ticket-body div {
  padding: 20px 24px;
  background: #fff;
}

.ticket-body small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-body strong {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 950;
}

.ticket-btn {
  width: calc(100% - 48px);
  margin: 24px;
}

#auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 13, 53, 0.68);
}

#auth-overlay.show {
  display: flex;
}

.auth-box {
  width: min(100%, 390px);
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-box-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 1.35rem;
}

.auth-box h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 900;
}

.auth-box p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 850;
}

.auth-btn-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.auth-btn-secondary {
  color: var(--ink);
  background: #fff;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

@media (max-width: 991px) {
  body {
    padding-top: 84px;
  }

  .back-to-coaching-btn {
    left: 16px;
    bottom: 16px;
  }

  .group-hero {
    min-height: auto;
    padding: 58px 0 92px;
  }

  .group-hero-photo,
  .group-hero-photo img {
    min-height: 430px;
  }

  .option-grid,
  .fixed-class-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .group-hero-copy h1 {
    font-size: 2.75rem;
  }

  .group-hero-copy p,
  .section-heading p,
  .fixed-class-copy p {
    font-size: 1rem;
  }

  .hero-actions,
  .auth-actions {
    flex-direction: column;
  }

  .hero-btn,
  .option-btn {
    width: 100%;
  }

  .training-option,
  .fixed-class-shell {
    padding: 28px;
  }

  .group-hero-photo,
  .group-hero-photo img {
    min-height: 360px;
  }
}
