/* =====================================================================
   Heleon Launcher: página de descarga, páginas legales, botón de la navbar y footer.
   Archivo aparte: NO cambia styles.css (todo usa clases propias «hl-»).
   ===================================================================== */

/* ---------- Botón verde de la navbar (todas las páginas) ---------- */
.hl-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  color: #04130a;
  background: #22c55e;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.25);
  transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.hl-nav-download:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
}
.hl-nav-download .hl-short { display: none; }
@media (max-width: 560px) {
  .hl-nav-download .hl-long { display: none; }
  .hl-nav-download .hl-short { display: inline; }
  /* En la portada (junto a «Claro» y «Cotizar») solo el icono, para que la cabecera quepa en una fila */
  .header-cta ~ .hl-nav-download { padding: 0.7rem 0.95rem; }
  .header-cta ~ .hl-nav-download .hl-short { display: none; }
}
@media (max-width: 419px) {
  /* Móviles estrechos: no cabe; «Launcher» sigue en el menú ☰ */
  .header-cta ~ .hl-nav-download { display: none; }
}

/* ---------- Páginas del launcher: siempre oscuras ---------- */
body.hl-page {
  background: #000;
  color: #f4f4f5;
}
body.hl-page .site-header {
  background: rgba(0, 0, 0, 0.72);
}

/* styles.css limita el ancho de h1/h2 (12ch/15ch) y colorea su primera línea: aquí no */
body.hl-page h1,
body.hl-page h2 {
  max-width: none;
  letter-spacing: -0.02em;
}
body.hl-page h1::first-line { color: inherit; }

.hl-wrap {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ---------- 1. Hero ---------- */
.hl-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0 4rem;
}
.hl-hero::before {
  /* degradado azul oscuro muy sutil en los bordes */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(30, 58, 138, 0.28), transparent 70%),
    radial-gradient(60% 50% at 100% 0%, rgba(30, 64, 175, 0.22), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(15, 23, 42, 0.6), transparent 70%);
}
.hl-hero > * { position: relative; }

.hl-title {
  margin: 0 auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.6vw, 6rem); /* ≈96px en pantallas grandes, siempre en 2 líneas */
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.hl-title .hl-line { white-space: nowrap; }
@media (max-width: 640px) {
  .hl-title .hl-line { white-space: normal; }
}

.hl-subtitle {
  max-width: 52rem;
  margin: 1.5rem auto 0;
  color: #d4d4d8;
  font-size: clamp(1.1rem, 2vw, 1.5rem); /* ≈24px */
  line-height: 1.5;
}

.hl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.hl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: filter 180ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}
.hl-btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.hl-btn-green {
  color: #04130a;
  background: #22c55e;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.35);
}
.hl-btn-green:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 60px rgba(34, 197, 94, 0.5);
}
.hl-btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.hl-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hl-version {
  min-height: 1.4em;
  margin: 1rem 0 0;
  color: #71717a;
  font-size: 0.9rem;
}

.hl-shot {
  display: block;
  width: min(1024px, 100%);
  height: auto;
  margin: 4rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(37, 99, 235, 0.25);
}

/* Aparición al hacer scroll (heleon-launcher.js añade .hl-visible) */
.hl-reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.hl-reveal.hl-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hl-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 2. Opciones de descarga ---------- */
.hl-downloads {
  scroll-margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 0;
  text-align: center;
}
.hl-downloads h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}
.hl-downloads .hl-lead {
  margin: 1rem 0 0;
  color: #a1a1aa;
  font-size: 1.1rem;
}

.hl-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.5rem;
}
.hl-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1.5rem;
}
.hl-platform + .hl-platform {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.hl-platform svg {
  width: 4rem;
  height: 4rem;
  color: #fff;
}
.hl-platform h3 {
  margin: 0.6rem 0 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: #fff;
}
.hl-platform a {
  color: #22c55e;
  white-space: pre;
}
.hl-platform a:hover { text-decoration: underline; }
.hl-platform.hl-soon svg,
.hl-platform.hl-soon h3 { color: #52525b; }
.hl-platform .hl-soon-text { color: #71717a; margin: 0; }
.hl-platform .hl-meta { margin: 0; color: #71717a; font-size: 0.8rem; }

@media (max-width: 760px) {
  .hl-platforms { grid-template-columns: 1fr; }
  .hl-platform + .hl-platform {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.hl-legal-note {
  margin: 4rem 0 0;
  color: #71717a;
  font-size: 0.9rem;
}
.hl-legal-note a,
.hl-legal a { color: #22c55e; }
.hl-legal-note a:hover,
.hl-legal a:hover { text-decoration: underline; }
.hl-older {
  margin: 0.5rem 0 0;
  color: #52525b;
  font-size: 0.8rem;
}
.hl-older a:hover { color: #a1a1aa; text-decoration: underline; }

/* ---------- Páginas legales ---------- */
.hl-legal {
  width: min(48rem, 100%);
  margin: 0 auto;
  padding: 4rem clamp(1rem, 4vw, 2rem) 5rem;
  color: #d4d4d8;
  line-height: 1.7;
}
.hl-legal h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.1;
  color: #fff;
}
.hl-legal .hl-updated { margin: 0.6rem 0 2.5rem; color: #71717a; font-size: 0.9rem; }
.hl-legal h2 { margin: 2.2rem 0 0.7rem; font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.hl-legal ul { padding-left: 1.3rem; }
.hl-legal li { margin: 0.35rem 0; }
.hl-legal code { padding: 0.1rem 0.3rem; background: rgba(255, 255, 255, 0.06); border-radius: 4px; font-size: 0.9em; }
.hl-revisar {
  padding: 0 0.3rem;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 4px;
}

/* ---------- 3. Footer (todas las páginas) ---------- */
footer.hl-footer {
  display: block; /* anula el flex del footer antiguo de styles.css */
  padding: 0;
  color: #a1a1aa;
  background: #070b14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hl-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 0;
}
.hl-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  align-self: start;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}
.hl-footer-brand img { height: 2.5rem; width: auto; }
.hl-footer h4 {
  margin: 0 0 1rem;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}
.hl-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.hl-footer a { color: #a1a1aa; transition: color 150ms ease; }
.hl-footer a:hover { color: #fff; }
.hl-footer .hl-disabled { color: #52525b; cursor: default; }
.hl-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: #71717a;
}
.hl-footer-bottom p { margin: 0; }
.hl-socials { display: flex; gap: 1rem; }
.hl-socials a { color: #71717a; }
.hl-socials a:hover { color: #fff; }
.hl-socials svg { width: 1.25rem; height: 1.25rem; display: block; }

@media (max-width: 760px) {
  .hl-footer-grid { grid-template-columns: 1fr 1fr; }
  .hl-footer-brand { grid-column: 1 / -1; }
  .hl-footer-bottom { justify-content: center; text-align: center; }
}

/* En el tema claro del resto del sitio, el footer sigue igual de legible */
.theme-light footer.hl-footer { color: #a1a1aa; }
