:root {
  --bg: #070707;
  --bg-soft: #111;
  --red: #db2b2b;
  --red-bright: #ff3636;
  --red-dark: #5b0909;
  --green: #22c55e;
  --green-hover: #16a34a;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "IBM Plex Sans", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), #070707 52%),
    radial-gradient(circle at 15% 10%, rgba(219, 43, 43, 0.25), transparent 32%),
    radial-gradient(circle at 85% 4%, rgba(255, 54, 54, 0.16), transparent 28%),
    #070707;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.12);
}

#scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--red-bright);
  transition: width 120ms linear;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section-panel {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
  overflow: hidden;
  border-top: 1px solid var(--faint);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: 0;
  border-top: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.92));
}

.hero-grid {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
}

.brand-mark {
  width: 200px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 6.25vw, 5.1rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(219, 43, 43, 0.42);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.65vw, 3.6rem);
  font-weight: 850;
  line-height: 1.04;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.lead {
  color: var(--text);
  font-size: clamp(1.08rem, 1.85vw, 1.32rem);
  font-weight: 700;
  line-height: 1.32;
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid rgba(219, 43, 43, 0.52);
  border-radius: 8px;
  background: rgba(219, 43, 43, 0.32);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.event-strip div {
  min-height: 72px;
  padding: 13px 16px;
  background: rgba(11, 11, 11, 0.76);
  backdrop-filter: blur(16px);
}

.event-strip strong {
  display: block;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.1;
}

.event-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hero-actions,
.final-inner .button {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  box-shadow: 0 18px 38px rgba(34, 197, 94, 0.22);
}

.button-primary:hover {
  background: var(--green-hover);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.button-full {
  width: 100%;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.text-stack {
  display: grid;
  gap: 18px;
}

.text-stack p,
.glass-panel p {
  margin-bottom: 0;
}

.red-band {
  background:
    linear-gradient(90deg, rgba(219, 43, 43, 0.94), rgba(74, 5, 5, 0.88)),
    #9f1111;
}

.red-band .eyebrow,
.red-band p {
  color: rgba(255, 255, 255, 0.88);
}

.glass-panel,
.criteria-card,
.learning-track article,
.signup-card {
  border: 1px solid rgba(219, 43, 43, 0.64);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.glass-panel {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.fine-print {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 6vw, 58px);
}

.split-grid > div:first-child h2,
.signup-grid > div:first-child h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.criteria-card {
  min-height: 280px;
  padding: 24px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.criteria-card:hover,
.learning-track article:hover {
  border-color: var(--red-bright);
  box-shadow: 0 0 32px rgba(219, 43, 43, 0.28);
  transform: translateY(-4px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: rgba(219, 43, 43, 0.22);
  color: var(--red-bright);
  font-weight: 900;
}

.criteria-card h3,
.learning-track h3,
.signup-card h3 {
  color: var(--text);
  margin-bottom: 12px;
}

.criteria-card p,
.learning-track p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.learning-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
}

.learning-track article {
  min-height: 300px;
  padding: 24px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.learning-track span {
  display: block;
  min-height: 42px;
  margin-bottom: 26px;
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dark-depth {
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.86)),
    url("../../referencias/APOLLO.png") center / cover fixed;
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list p {
  position: relative;
  margin-bottom: 0;
  padding: 18px 20px 18px 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.benefit-list p::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 18px rgba(255, 54, 54, 0.72);
}

.signup-section {
  background:
    linear-gradient(120deg, rgba(219, 43, 43, 0.18), transparent 48%),
    var(--bg-soft);
}

.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(34px, 7vw, 80px);
  align-items: center;
}

.signup-card {
  position: relative;
  padding: clamp(26px, 4vw, 40px);
}

.signal-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.9);
}

.final-cta {
  min-height: 74svh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.42)),
    url("../images/background-section-final.png") center / cover;
}

.final-inner {
  display: grid;
  justify-items: center;
  max-width: 850px;
}

.final-inner h2 {
  margin-bottom: 22px;
}

.final-inner p {
  max-width: 720px;
}

footer {
  padding: 38px 0;
  border-top: 1px solid var(--faint);
  background: #040404;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner img {
  width: 160px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .event-strip,
  .criteria-grid,
  .learning-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .signup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero-grid {
    align-items: end;
    padding: 88px 0 34px;
  }

  .hero-actions {
    order: 3;
    margin: 18px 0 0;
  }

  .hero-detail {
    order: 4;
    margin-top: 22px;
  }

  .event-strip {
    order: 5;
  }

  .hero-media img {
    object-position: 57% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42) 30%, rgba(0, 0, 0, 0.95) 72%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22));
  }

  .brand-mark {
    width: 200px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.78rem, 9vw, 2.7rem);
  }

  .lead {
    font-size: 1.17rem;
  }

  .event-strip,
  .criteria-grid,
  .learning-track {
    grid-template-columns: 1fr;
  }

  .event-strip div,
  .criteria-card,
  .learning-track article {
    min-height: auto;
  }

  .hero-actions,
  .final-inner .button {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-panel {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
