/* =========================================================
   BSBData Remote — Landing
   Identidad: primario #2d90e3 · secundario #262626 · Sora
   ========================================================= */

/* ---------- Variables y temas ---------- */
:root {
  --bg: #f7f9fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #101828;
  --text-muted: #51607a;
  --primary: #2d90e3;
  --primary-strong: #1d74c2;
  --btn-hover: #14598f;
  --primary-soft: rgba(45, 144, 227, 0.1);
  --on-primary: #ffffff;
  --border: #dfe6f0;
  --border-strong: #c8d3e3;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 16px 40px -12px rgba(16, 24, 40, 0.18);
  --glow: rgba(45, 144, 227, 0.16);
  --grid-line: rgba(16, 24, 40, 0.045);
  --header-bg: rgba(247, 249, 252, 0.82);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0e1116;
  --bg-alt: #12161d;
  --surface: #171c24;
  --surface-2: #1e2530;
  --text: #e9eef6;
  --text-muted: #9aa6b8;
  --primary: #45a3f2;
  --primary-strong: #69b8f5;
  --btn-hover: #69b8f5;
  --primary-soft: rgba(69, 163, 242, 0.14);
  --on-primary: #0b1220;
  --border: #262f3d;
  --border-strong: #35415277;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
  --glow: rgba(69, 163, 242, 0.12);
  --grid-line: rgba(233, 238, 246, 0.05);
  --header-bg: rgba(14, 17, 22, 0.8);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--primary-strong);
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary-strong);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

.logo {
  display: block;
  width: auto;
  height: 2.4rem;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Botón tema */
.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-theme:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-theme svg {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

/* Menú desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.ext-arrow {
  font-size: 0.8em;
  opacity: 0.7;
}

/* Botón menú móvil */
.btn-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.btn-menu svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 32rem at 50% -12%, var(--glow), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 2.5rem 2.5rem, 2.5rem 2.5rem;
  mask-image: radial-gradient(72rem 40rem at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(72rem 40rem at 50% 0%, black 30%, transparent 78%);
}

.hero-inner {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--text) 30%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.hero-sub {
  margin: 1.4rem auto 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tick {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--primary);
  flex: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--primary-strong);
  color: var(--on-primary);
  box-shadow: 0 8px 20px -8px var(--glow);
}

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

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
  transform: translateY(-1px);
}

/* ---------- Secciones ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.section-sub {
  margin-top: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Tarjetas de descarga ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.dl-card.is-recommended {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow);
}

.dl-reco-badge {
  position: absolute;
  top: -0.8rem;
  right: 1.25rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-strong);
  color: var(--on-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.dl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
}

.dl-icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

.dl-os {
  font-size: 1.15rem;
  font-weight: 700;
}

.dl-req {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dl-meta strong {
  color: var(--text);
  font-weight: 600;
}

.dl-builds {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dl-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.dl-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.dl-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
}

.dl-btn {
  margin-top: auto;
}

.dl-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.dl-btn:hover .btn-arrow {
  transform: translateY(2px);
}

/* Estado "Próximamente" */
.dl-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.72rem 1.2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 600;
}

.dl-pending::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.dl-pending-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Nota de descargas */
.download-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.download-note > span {
  flex: 1 1 auto;
  min-width: 0;
}

.note-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--primary);
}

.cfg-error {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
}

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: paso;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.85;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Seguridad ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.sec-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.sec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
}

.sec-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.sec-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.sec-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
.section-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.cta-inner p {
  margin: 0.9rem auto 0;
  max-width: 38rem;
  color: var(--text-muted);
}

.cta-inner .hero-cta {
  margin-top: 1.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #262626;
  color: #ffffff;
  padding: 3.25rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.logo-footer {
  height: 2.6rem;
  width: auto;
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .download-grid,
  .security-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .download-grid {
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .btn-menu {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu .nav-link {
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
  }

  .site-header {
    background: var(--bg-alt);
  }

  .hero-points {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 22rem;
  }
}

