: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;
  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: #b9dcff;
  background: #0d2747;
  border: 1px solid #397bc2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  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: #c4e1ff;
  background: #15416f;
  transform: translateY(-2px);
}

.group-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 44px 0 64px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: #061326;
}

.group-hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.group-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.group-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(3, 14, 32, 0.95),
    rgba(3, 14, 32, 0.78) 38%,
    rgba(3, 14, 32, 0.1) 78%
  );
  pointer-events: none;
}

.group-hero > .container {
  position: relative;
  z-index: 1;
}

.group-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  background: linear-gradient(180deg, transparent, #0d1118);
  pointer-events: none;
}

.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: 560px;
  width: 52%;
}

.group-hero-copy .group-community-note {
  margin-top: 24px;
  color: #b5d7ff;
  font-size: 0.875rem;
}

.group-hero-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  text-wrap: balance;
  font-weight: 950;
}

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

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

.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-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);
}

.training-option .weekly-session-status {
  margin: 0 0 18px;
  color: #ff6b78 !important;
  font-size: 1rem;
  font-weight: 800;
}

.training-option .option-btn:disabled {
  background: #293342;
  color: #bac5d5;
  border: 1px solid rgba(186, 197, 213, 0.2);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.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("/Coaching/assets/optimized/images/Foto%20Grupal-1600.webp");
  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);
}

html[data-theme="dark"] .group-options-section,
html[data-theme="dark"] .fixed-class-section {
  background: var(--fw-dark-soft);
}

html[data-theme="dark"] .training-option,
html[data-theme="dark"] .ticket-panel {
  background: var(--fw-dark-surface);
  border-color: var(--fw-dark-card-border);
}

html[data-theme="dark"] .ticket-body div {
  background: var(--fw-dark-surface);
}

html[data-theme="dark"] .option-list span,
html[data-theme="dark"] .ticket-body strong {
  color: var(--fw-dark-text);
}

html[data-theme="dark"] .option-label {
  color: #a7d2ff;
  background: var(--fw-dark-surface-3);
}

html[data-theme="dark"] .ticket-option .option-list i {
  color: #83bfff;
}

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

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

  .group-hero {
    min-height: 460px;
    padding: 36px 0 64px;
  }

  .group-hero-copy {
    width: 62%;
  }

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

@media (max-width: 640px) {
  .group-hero {
    min-height: 640px;
    padding: 28px 0 260px;
    align-items: flex-start;
  }

  .group-hero-copy {
    width: 100%;
    max-width: none;
  }

  .group-hero-background img {
    object-position: center 75%;
  }

  .group-hero::before {
    background: linear-gradient(
      180deg,
      rgba(3, 14, 32, 0.97),
      rgba(3, 14, 32, 0.91) 42%,
      rgba(3, 14, 32, 0.15) 78%
    );
  }

  .group-hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .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 .hero-actions {
    flex-direction: row;
    gap: 10px;
  }

  .group-hero .hero-btn {
    flex: 1;
    width: auto;
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.9rem;
  }
}
