:root {
  --bg: #070b1f;
  --bg-2: #0d1535;
  --bg-3: #111a42;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f8ff;
  --muted: #b9c0e4;
  --soft: #7f8bc7;
  --primary: #ffb000;
  --primary-2: #ff7a1a;
  --cyan: #8eeaff;
  --green: #25d366;
  --danger: #ff647c;
  --border: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.24);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max: 1180px;
  --header-h: 78px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 11, 31, 0.92), rgba(13, 21, 53, 0.96) 48%, rgba(7, 11, 31, 1)),
    var(--bg);
  font-family: var(--font);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(142, 234, 255, 0.38);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 31, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #09132d 0%, #0d1f47 58%, #081029 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-logo-fallback {
  position: absolute;
  opacity: 0;
  color: #fff8e1;
  font-size: 1.25rem;
  font-weight: 950;
}

.brand-mark.is-missing .brand-logo-img {
  display: none;
}

.brand-mark.is-missing .brand-logo-fallback {
  opacity: 1;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-text strong span {
  color: #ffd176;
}

.brand-text small {
  color: var(--cyan);
  font-size: 0.78rem;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: var(--radius);
  color: #dfe4ff;
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  gap: 10px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #0a1028;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 15px 34px rgba(255, 176, 0, 0.22);
}

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

.btn-ghost {
  color: #dfe4ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.btn-whatsapp {
  color: #04150b;
  background: linear-gradient(135deg, #3ee577, var(--green));
  box-shadow: 0 15px 34px rgba(37, 211, 102, 0.2);
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}

.mobile-panel {
  padding: 10px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-panel a,
.mobile-panel button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.mobile-panel .btn-whatsapp {
  color: #04150b;
  background: linear-gradient(135deg, #3ee577, var(--green));
}

.hero-epic {
  position: relative;
  min-height: min(820px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(5, 8, 23, 0.7), rgba(5, 8, 23, 0.1) 48%, rgba(5, 8, 23, 0.74)),
    url("../imagenes/sputnik-hero.webp"),
    linear-gradient(135deg, #050817 0%, #13204a 55%, #070b1f 100%);
  background-size: cover, cover, cover;
  background-position: center;
}

.hero-epic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 23, 0.06) 0%, rgba(5, 8, 23, 0.12) 55%, rgba(5, 8, 23, 0.78) 100%);
}

.hero-epic .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: clamp(58px, 8vw, 108px) 0 clamp(42px, 7vw, 86px);
}

.hero-glass-panel {
  width: min(680px, 100%);
  margin-top: clamp(24px, 5vw, 60px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(5, 8, 23, 0.58), rgba(5, 8, 23, 0.2));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(4px);
}

.hero-brandline,
.section-kicker {
  color: #fff0b7;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 176, 0, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 176, 0, 0.1);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(142, 234, 255, 0.12);
}

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

h1 {
  max-width: 660px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5.4vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.42);
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.gradient-text {
  color: #fff0b7;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 24px;
  color: #e0e6ff;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.62;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.hero-action-card,
.hero-actions,
.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-action-card {
  margin-bottom: 18px;
}

.centered {
  justify-content: center;
  margin-bottom: 0;
}

.hero-proof-clean {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.hero-proof-item {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
}

.hero-proof-item strong {
  display: block;
  color: #eef2ff;
  font-size: 0.88rem;
}

.hero-proof-item small {
  display: block;
  margin-top: 3px;
  color: #aeb8df;
  line-height: 1.35;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue::before,
.scroll-cue::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 176, 0, 0.75);
}

.scroll-cue::after {
  background: rgba(142, 234, 255, 0.75);
}

section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--primary);
}

.section-desc {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.value-grid,
.sim-grid,
.pricing,
.steps {
  display: grid;
  gap: 16px;
}

.value-grid,
.sim-grid,
.pricing {
  grid-template-columns: repeat(3, 1fr);
}

.steps {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.value-card,
.sim-card,
.step-card,
.student-box,
.access-card,
.price-card,
.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.value-card {
  min-height: 230px;
  padding: 24px;
}

.value-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 176, 0, 0.26);
  border-radius: var(--radius);
  color: #fff0b7;
  background: rgba(255, 176, 0, 0.12);
  font-size: 0.82rem;
  font-weight: 950;
}

.value-card p,
.sim-card p,
.step-card p,
.student-box p,
.access-card p,
.cta-box p,
.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.58;
}

.sim-card {
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.sim-card:hover,
.price-card:hover,
.value-card:hover,
.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.sim-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.sim-tags span,
.lock-badge,
.plan-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 6px 9px;
  color: #dfe4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lock-badge,
.plan-badge {
  width: max-content;
  margin-bottom: 12px;
  color: #0a1028;
  background: linear-gradient(135deg, var(--primary), #ffe08a);
}

.sim-preview {
  position: relative;
  width: 100%;
  height: 156px;
  margin: auto 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 24px);
}

.sim-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.sim-card:hover .sim-preview img {
  transform: scale(1.04);
}

.premium .sim-preview img {
  filter: saturate(0.95) brightness(0.72);
}

.sim-preview::after {
  content: "Vista previa";
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #eafcff;
  background: rgba(5, 9, 27, 0.66);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.sim-preview.is-missing::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: #dfe4ff;
  background:
    linear-gradient(135deg, rgba(55, 231, 255, 0.12), rgba(255, 176, 0, 0.08)),
    rgba(7, 11, 31, 0.74);
  font-weight: 850;
  line-height: 1.35;
}

.sim-preview.is-missing::after {
  content: "Imagen pendiente";
}

.sim-preview.is-missing img {
  display: none;
}

.sim-actions .btn,
.sim-card > .btn {
  flex: 1;
}

.premium-grid .sim-card {
  min-height: 388px;
}

.academy-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(142, 234, 255, 0.18);
  border-radius: var(--radius);
  color: #e4fdff;
  background: rgba(55, 231, 255, 0.07);
}

.academy-note strong,
.academy-note span {
  display: block;
}

.academy-note span {
  margin-top: 4px;
  color: #d6fbff;
  line-height: 1.45;
}

.step-card {
  min-height: 220px;
  padding: 22px;
}

.step-card span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 2.9rem;
  font-weight: 950;
  line-height: 1;
}

.student-zone {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.student-box,
.access-card {
  padding: 28px;
}

.student-box h2 {
  margin-bottom: 14px;
}

.access-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(7, 11, 31, 0.46);
}

.access-card ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.access-card .btn {
  width: 100%;
}

.access-help,
.modal-help {
  display: inline-flex;
  margin-top: 14px;
  color: #dfffe9;
  font-weight: 850;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(255, 176, 0, 0.34);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.price {
  margin: 18px 0 8px;
  font-size: 2rem;
  font-weight: 950;
}

.price span {
  font-size: 1rem;
  font-weight: 850;
}

.price-card ul {
  margin: 16px 0 20px;
  padding-left: 18px;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.cta-box {
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(7, 11, 31, 0.45);
}

.cta-box h2 {
  margin: 0 auto 16px;
}

.cta-box p {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 1.06rem;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--soft);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer strong,
.footer span {
  display: block;
}

.floating-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04150b;
  background: linear-gradient(135deg, #3ee577, var(--green));
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.28);
  font-size: 1.6rem;
  transition: transform 180ms ease;
}

.floating-wa:hover {
  transform: translateY(-2px) scale(1.02);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 25, 66, 0.98), rgba(7, 11, 31, 0.98));
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 1.2rem;
}

.modal-card h2 {
  margin-bottom: 10px;
  padding-right: 42px;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
}

.modal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  margin-top: 18px;
}

.access-field {
  margin-bottom: 12px;
}

.access-field label {
  display: block;
  margin-bottom: 7px;
  color: #e8ebff;
  font-size: 0.86rem;
  font-weight: 800;
}

.access-field input {
  width: 100%;
  padding: 13px 14px;
  color: #ffffff;
  background: rgba(5, 9, 27, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.access-field input:focus {
  border-color: rgba(142, 234, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(142, 234, 255, 0.1);
}

.login-error {
  margin: 4px 0 14px;
  padding: 12px 14px;
  color: #ffe8ed;
  background: rgba(255, 100, 124, 0.12);
  border: 1px solid rgba(255, 100, 124, 0.32);
  border-radius: var(--radius);
  font-weight: 800;
}

.access-submit {
  width: 100%;
}

.site-toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 130;
  width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  color: #fff6d8;
  background: rgba(17, 25, 66, 0.96);
  border: 1px solid rgba(255, 176, 0, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 1060px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .value-grid,
  .sim-grid,
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .student-zone {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    min-height: 70px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .hero-epic {
    min-height: auto;
    background-position: 58% top, center, center;
  }

  .hero-epic .container {
    padding: 112px 0 64px;
  }

  .hero-glass-panel {
    padding: 20px;
    background: rgba(5, 8, 23, 0.68);
    backdrop-filter: blur(6px);
  }

  .hero-brandline {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: clamp(2.18rem, 12vw, 3.5rem);
  }

  section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

  .section-desc {
    margin-top: 14px;
  }

  .value-grid,
  .sim-grid,
  .pricing,
  .steps,
  .hero-proof-clean {
    grid-template-columns: 1fr;
  }

  .academy-note {
    display: block;
  }

  .academy-note .btn {
    width: 100%;
    margin-top: 14px;
  }

  .hero-action-card .btn,
  .hero-actions .btn,
  .cta-box .btn,
  .sim-actions .btn,
  .sim-card > .btn {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .footer-grid {
    display: block;
  }

  .footer-grid > div + div {
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }

  .hero-epic .container {
    padding-top: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
