/* NOGAP · sitio web. Colores de la marca (constants/theme.ts). */
@font-face { font-family: 'Sora'; font-weight: 400; font-display: swap; src: url('fonts/sora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('fonts/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 800; font-display: swap; src: url('fonts/sora-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #121130;
  --surface: #1c1a45;
  --raised: #26235a;
  --border: #2e2b66;
  --text: #f3f2fa;
  --muted: #b3aedc;
  --accent: #8b6bff;
  --accent-strong: #7352f0;
  --accent-hover: #6141e0;
  --success: #3ddc97;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 10; background: rgba(18, 17, 48, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: 0.5px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent;
  background: var(--accent-strong); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Portada */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-art { position: relative; border-radius: 28px; background: radial-gradient(circle at 30% 30%, #3a2f8f, var(--surface) 70%); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-art img { width: 78%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 360px; margin: 0 auto; } }

section { padding: 64px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
section .sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

/* Funciones */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--raised); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--accent-strong); color: #fff; margin-left: 6px; vertical-align: middle; }

/* Descargas */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.download { display: flex; flex-direction: column; gap: 10px; }
.download.recomendada { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.download .os { font-size: 13px; color: var(--muted); font-weight: 600; }
.download h3 { margin: 0; }
.download p { margin: 0 0 6px; }
.download .btn { margin-top: auto; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan h3 { font-size: 22px; margin: 0; }
.plan .price { font-size: 34px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { padding: 0; margin: 18px 0 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan li { padding-left: 26px; position: relative; color: var(--muted); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.plan.premium { background: linear-gradient(160deg, #2b2273, var(--surface)); border-color: var(--accent); }

/* Preguntas */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Páginas de texto (legales) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: #dcd9f2; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }

/* Pie */
.foot { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.downloads + details { margin-top: 16px; }
