/* www.qgexai.com: misma paleta que la app (web/src/app/globals.css) */
:root {
  --bg: #060e1a;
  --bg-2: #0a1628;
  --card: #0d1b2a;
  --line: #1a2a42;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --green: #34d399;
  --red: #ef4444;
  --amber: #f59e0b;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* Barra superior */
.top {
  position: sticky; top: 0; z-index: 10; background: rgba(6, 14, 26, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-right: auto; font-size: 14.5px; color: var(--muted); }
.nav a:hover, .lang:hover { color: var(--text); }
.actions { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 14px; color: var(--muted); padding: 0 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  background: linear-gradient(135deg, #06b6d4, #38bdf8); color: #031018;
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--dim); }
.btn.lg { padding: 13px 24px; font-size: 16px; border-radius: 10px; }

/* Portada */
.hero { padding: 72px 0 40px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 620px; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%);
}
.hero .wrap { position: relative; }
.eyebrow, .kicker {
  font: 600 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); margin: 0 0 14px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); max-width: 860px; margin: 0 auto; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 760px; margin: 20px auto 0; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }
.note { font-size: 13.5px; color: var(--dim); }
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(56, 189, 248, 0.05);
}
.hero-shot { margin-top: 52px; }

/* Cifras */
.facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font: 700 24px/1.2 var(--mono); color: var(--text); }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Secciones */
section { padding: 88px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); }
.sec-head p:not(.kicker) { color: var(--muted); margin: 14px 0 0; font-size: 17px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); margin: 10px 0 0; }
.aud h3 { font-size: 20px; color: var(--cyan); }
.aud:nth-child(2) h3 { color: var(--sky); }

ul { list-style: none; padding: 0; margin: 16px 0 0; }
li { position: relative; padding-left: 22px; margin: 9px 0; color: var(--muted); }
li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px;
  background: var(--cyan); opacity: 0.85;
}

/* Vistas */
.suite { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.view { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin-bottom: 96px; }
.view:last-child { margin-bottom: 0; }
.view.flip { grid-template-columns: 7fr 5fr; }
.view.flip .view-text { order: 2; }
.view h3 { font-size: clamp(22px, 2.6vw, 28px); }
.link { display: inline-block; margin-top: 18px; color: var(--sky); font-weight: 600; font-size: 15px; }
.link:hover { color: var(--cyan); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 26px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.steps li::before { display: none; }
.steps .n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--cyan); color: var(--cyan); font: 700 15px var(--mono); margin-bottom: 14px;
}
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); margin: 8px 0 0; }

.principles { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Preguntas */
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px; font: 400 24px/1 var(--mono); color: var(--cyan);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--muted); }

/* Llamado final */
.final { text-align: center; }
.final .wrap {
  width: calc(100% - 32px); padding: 64px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(34, 211, 238, 0.14), transparent 70%), var(--card);
}
.final h2 { font-size: clamp(26px, 4vw, 38px); }
.final p { color: var(--muted); margin: 12px 0 28px; font-size: 17px; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.disc { color: var(--dim); font-size: 12.5px; line-height: 1.6; margin: 26px 0 0; max-width: 900px; }
.copy { color: var(--dim); font-size: 12.5px; margin: 10px 0 0; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .actions { margin-left: auto; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid2, .grid3, .steps { grid-template-columns: 1fr; }
  .view, .view.flip { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .view.flip .view-text { order: 0; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 36px; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .bar { gap: 12px; }
  .lang { padding: 0; }
  .fact { padding: 20px 14px; }
  .fact strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
