:root {
  --navy-0: #010713;
  --navy-1: #020b18;
  --navy-2: #06152a;
  --gold-1: #b9852b;
  --gold-2: #e6b94f;
  --gold-3: #ffe6a1;
  --text: #f6f0e5;
  --muted: #d6c7a4;
  --hero-h: 172px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--navy-0); }
body {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.academy-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--hero-h) minmax(0, 1fr);
  background: linear-gradient(180deg, #031024 0%, #010713 100%);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(230,185,79,.55);
  box-shadow: 0 12px 34px rgba(0,0,0,.42);
}

.hero-bg {
  position: absolute;
  inset: -34% -2%;
  z-index: -4;
  background-image: url("assets/fondo-principal-elitezen.png");
  background-size: cover;
  background-position: center 22%;
  filter: saturate(.94) brightness(.52);
  transform: scale(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(1,8,20,.20), rgba(1,8,20,.60) 58%, rgba(1,8,20,.78)),
    linear-gradient(180deg, rgba(2,8,18,.05), rgba(2,8,18,.78));
}

.hero-glow {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -2px;
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--gold-3), var(--gold-2), transparent);
  box-shadow: 0 0 18px rgba(230,185,79,.9);
  opacity: .82;
}

.hero-content {
  width: min(1500px, calc(100% - 42px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.course-icon {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,222,137,.72);
  box-shadow:
    0 0 0 4px rgba(218,164,61,.08),
    0 12px 30px rgba(0,0,0,.50),
    0 0 24px rgba(219,166,64,.17);
}

.hero-copy { min-width: 0; }
.eyebrow {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.5vw, 58px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .01em;
  color: #f2c65f;
  text-shadow: 0 2px 20px rgba(0,0,0,.58), 0 0 20px rgba(212,162,57,.12);
}

.hero-copy p {
  margin: 9px 0 0;
  color: #f4ead7;
  font-size: clamp(13px, 1.25vw, 18px);
  letter-spacing: .045em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.season-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(230,185,79,.7);
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(circle at 35% 25%, rgba(230,185,79,.18), rgba(2,11,24,.82) 62%);
  box-shadow: inset 0 0 22px rgba(221,170,65,.12), 0 0 22px rgba(0,0,0,.36);
}

.season-badge span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: .9;
  color: var(--gold-3);
}
.season-badge small {
  display: block;
  margin-top: 7px;
  color: var(--gold-2);
  font-size: 8px;
  letter-spacing: .17em;
}

.course-stage {
  position: relative;
  min-height: 0;
  padding: 0;
  background: #000;
}

.frame-wrap {
  position: absolute;
  inset: 0;
  background: #000;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at center, #06162c 0%, #010713 68%);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .04em;
  transition: opacity .35s ease, visibility .35s ease;
}
.loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.spinner {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid rgba(230,185,79,.20);
  border-top-color: var(--gold-2);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  :root { --hero-h: 126px; }
  .hero-content { width: calc(100% - 22px); gap: 14px; }
  .course-icon { width: 84px; height: 84px; border-radius: 13px; }
  .season-badge { display: none; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero-copy p { font-size: 11px; letter-spacing: .025em; }
  .eyebrow { font-size: 9px; }
}

@media (max-width: 460px) {
  :root { --hero-h: 108px; }
  .course-icon { width: 70px; height: 70px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .loading { transition: none; }
}
