/* ==========================================================
   Vidorq - landing
   Los tokens de color, peso y tipografia son una copia sincronizada
   de app/src/App.css (paleta Grafito, hecha el 23-ago-2026). No se
   importan por ruta relativa a proposito: la landing se despliega
   sola y ese archivo puede no existir en produccion. Si App.css
   cambia su :root, hay que volver a copiarlo aqui a mano.
   ========================================================== */

:root {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter,
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .05px;
  -webkit-font-smoothing: antialiased;

  --w-cuerpo: 600;
  --w-fuerte: 720;
  --w-et: 800;

  --panel: color-mix(in srgb, var(--bg) 100%, var(--vuelta) 4%);
  --panel2: color-mix(in srgb, var(--bg) 100%, var(--vuelta) 2%);
  --line: color-mix(in srgb, var(--bg) 100%, var(--vuelta) 13%);
  --line-soft: color-mix(in srgb, var(--bg) 100%, var(--vuelta) 7%);
  --accent-soft: color-mix(in srgb, var(--accent) 74%, var(--vuelta));
  --accent-fill: color-mix(in srgb, var(--accent) 14%, var(--bg));
}

:root, :root[data-theme="light"] {
  color-scheme: light;
  --vuelta: #000000;
  --bg: #f4f5f7;
  --text: #1a1d21;
  --text-dim: #33383f;
  --muted: #5c636d;
  --faint: #858c96;
  --accent: #1f6fc0;
  --sobre: #ffffff;
  --ok: #137a52;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --vuelta: #ffffff;
    --bg: #17191c;
    --text: #e8eaed;
    --text-dim: #c5cbd3;
    --muted: #9aa1ab;
    --faint: #6b727c;
    --accent: #3d8ee0;
    --sobre: #06090c;
    --ok: #35b37e;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --vuelta: #ffffff;
  --bg: #17191c;
  --text: #e8eaed;
  --text-dim: #c5cbd3;
  --muted: #9aa1ab;
  --faint: #6b727c;
  --accent: #3d8ee0;
  --sobre: #06090c;
  --ok: #35b37e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.motion { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-weight: var(--w-cuerpo);
  overflow-x: hidden;
  position: relative;
}

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

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

/* ---------- fondo en capas (parallax) ---------- */

.parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  will-change: translate;
}

.orb-sm { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; opacity: .11; }

/* Un solo acento, no dos: el morado ya no existe en Grafito. */
.orb-violet, .orb-blue { background: radial-gradient(circle, var(--accent), transparent 70%); }

main, .footer { position: relative; z-index: 1; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  translate: 0 calc(22px * var(--motion-gain, 1));
  transition: opacity .7s ease, translate .7s ease;
}

.reveal.in-view { opacity: 1; translate: 0 0; }

.funciona-steps .reveal:nth-child(2) { transition-delay: .12s; }
.funciona-steps .reveal:nth-child(3) { transition-delay: .24s; }
.stat-row .reveal:nth-child(2) { transition-delay: .12s; }
.stat-row .reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- texto general ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: var(--w-et);
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

h1, h2, h3 { font-weight: var(--w-et); letter-spacing: -.01em; color: var(--text); }

h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 26px;
  max-width: 640px;
}

.section .center h2, .center h2 { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
}

.hero-inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: opacity, translate, scale;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--accent) 25%, transparent));
}

.hero h1 {
  font-size: clamp(34px, 6vw, 46px);
  margin-bottom: 14px;
}

.tagline {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: var(--w-fuerte);
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-sub strong { color: var(--text); font-weight: var(--w-fuerte); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- botones (mismas clases que la app: .cta y .ghost) ---------- */

.cta {
  background: var(--accent);
  color: var(--sobre);
  border: 0;
  border-radius: 11px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: var(--w-fuerte);
  letter-spacing: .3px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: filter .12s, translate .18s ease-out;
}

.cta:hover { filter: brightness(1.1); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 9px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: var(--w-cuerpo);
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
  transition: border-color .12s, translate .18s ease-out;
}

.ghost:hover { border-color: var(--accent); }
.ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ghost.small { padding: 6px 13px; font-size: 12px; }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
}

html.motion .scroll-hint span {
  animation: scrollDot 1.8s ease-in-out 2;
}

@keyframes scrollDot {
  0% { translate: 0 0; opacity: 1; }
  70% { translate: 0 14px; opacity: 0; }
  100% { translate: 0 14px; opacity: 0; }
}

/* ---------- secciones ---------- */

.section { padding: 110px 24px; }

.section-inner { max-width: 780px; margin: 0 auto; }

.section-inner.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-inner.wide { max-width: 980px; }

/* ---------- demo del panel (recreado, no capturado) ---------- */

.demo-section { padding-top: 0; padding-bottom: 60px; }

.demo {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 34px;
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--text) 30%, transparent);
}

.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.demo-head h3 { font-size: 19px; font-weight: var(--w-fuerte); margin-bottom: 4px; }
.demo-head p { font-size: 12.5px; color: var(--muted); }

.demo-seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.demo-seg button {
  font: inherit; font-size: 12.5px; font-weight: var(--w-cuerpo); padding: 7px 13px;
  border-radius: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.demo-seg button.sel { background: var(--accent); color: var(--sobre); font-weight: var(--w-fuerte); }

.demo-drop {
  border: 1.5px dashed var(--line); border-radius: 12px; background: var(--panel2);
  padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--muted); text-align: center; margin-bottom: 20px;
}
.demo-drop svg { color: var(--faint); margin-bottom: 4px; }
.demo-drop strong { color: var(--text); font-size: 16px; font-weight: var(--w-fuerte); }
.demo-drop span { font-size: 13px; }

.demo-prompt {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 16px; font-size: 14px; color: var(--text); margin-bottom: 12px;
}

.demo-eg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.demo-eg span { font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; }

.demo-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-preset {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  text-align: left; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, background .15s;
}
.demo-preset svg { color: var(--muted); }
.demo-preset b { font-size: 14px; font-weight: var(--w-fuerte); color: var(--text); display: flex; align-items: center; gap: 6px; }
.demo-preset em { font-style: normal; font-size: 9.5px; font-weight: var(--w-et); color: var(--accent-soft); letter-spacing: .6px; }
.demo-preset small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.demo-preset.sel { border-color: var(--accent); background: var(--accent-fill); }
.demo-preset.sel svg { color: var(--accent); }

/* ---------- pestañas del demo (las seis secciones del lateral) ---------- */

.demo-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}

.demo-tab {
  font: inherit; font-size: 13px; font-weight: var(--w-cuerpo); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}

.demo-tab:hover { color: var(--text); border-color: var(--accent-soft); }
.demo-tab.sel { background: var(--accent); border-color: var(--accent); color: var(--sobre); font-weight: var(--w-fuerte); }

/* ---------- Tu marca ---------- */

.demo-field { margin-bottom: 22px; }
.demo-field:last-child { margin-bottom: 0; }
.demo-field label { display: block; font-size: 12.5px; font-weight: var(--w-fuerte); color: var(--text-dim); margin-bottom: 10px; }

.demo-pace { display: flex; align-items: center; gap: 16px; }
.demo-pace-track { flex: 1; height: 8px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.demo-pace-track i { display: block; height: 100%; background: var(--accent); }
.demo-pace-read { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 200px; }
.demo-pace-read b { font-size: 13px; font-weight: var(--w-fuerte); }
.demo-pace-read span { font-size: 11.5px; color: var(--muted); }

.demo-swatches { display: flex; gap: 10px; }
.demo-swatches span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Copiar un estilo ---------- */

.demo-row { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.demo-row .demo-prompt { margin-bottom: 0; }

.demo-reparto {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 7px;
}
.demo-reparto p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.demo-reparto strong { color: var(--text); font-weight: var(--w-fuerte); }

/* ---------- Historial ---------- */

.demo-hist { display: flex; flex-direction: column; gap: 8px; }
.demo-hist-row {
  display: flex; gap: 14px; align-items: flex-start; background: var(--panel2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.demo-hist-hour { flex: 0 0 auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 1px; }
.demo-hist-body { display: flex; flex-direction: column; gap: 3px; }
.demo-hist-body b { font-size: 13px; font-weight: var(--w-fuerte); color: var(--text); margin-right: 8px; }
.demo-hist-body em {
  font-style: normal; font-size: 10.5px; font-weight: var(--w-fuerte); color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px;
}
.demo-hist-body em.resolve { color: var(--accent-soft); border-color: var(--accent); }
.demo-hist-body span { font-size: 12.5px; color: var(--text-dim); }
.demo-hist-body small { font-size: 11.5px; color: var(--muted); }

/* ---------- Empezar con Resolve ---------- */

.demo-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.demo-steps li {
  display: flex; align-items: center; gap: 12px; background: var(--panel2);
  border: 1px solid color-mix(in srgb, var(--ok) 32%, var(--line));
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: var(--w-fuerte); color: var(--text);
}
.demo-step-mark {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ok); color: var(--sobre); display: grid; place-items: center;
}

.demo-ok {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dim);
  background: color-mix(in srgb, var(--ok) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--bg));
  border-radius: 9px; padding: 11px 14px;
}

/* ---------- Ajustes / vincular con tu IA ---------- */

.demo-agents { display: flex; flex-direction: column; gap: 10px; }
.demo-agent { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.demo-agent-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.demo-agent-head strong { font-size: 13.5px; font-weight: var(--w-fuerte); }
.demo-agent code {
  display: block; font: 11.5px ui-monospace, Consolas, monospace; color: var(--accent-soft);
  word-break: break-all; line-height: 1.5;
}

@media (max-width: 720px) {
  .demo-pace { flex-direction: column; align-items: stretch; gap: 8px; }
  .demo-pace-read { min-width: 0; }
  .demo-row { flex-direction: column; align-items: stretch; }
}

.demo-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .demo-presets { grid-template-columns: 1fr; }
  .demo { padding: 22px 20px; }
}

.lede { color: var(--muted); font-size: 17px; line-height: 1.55; margin-bottom: 30px; max-width: 620px; }
.lede strong { color: var(--text); font-weight: var(--w-fuerte); }

/* ---------- problema ---------- */

.story {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 28px 30px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 34px;
}

.story p + p { margin-top: 14px; color: var(--accent-soft); font-weight: var(--w-fuerte); }

.story strong { color: var(--text); font-weight: var(--w-fuerte); }

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }

.stat {
  flex: 1;
  min-width: 140px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong { font-size: 26px; color: var(--accent); font-weight: var(--w-et); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- como funciona (timeline + columna sticky) ---------- */

.funciona-grid { display: block; }

.funciona-counter {
  margin-top: 18px;
  font-size: 13px;
  font-weight: var(--w-fuerte);
  color: var(--muted);
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}

.funciona-counter span { color: var(--accent); font-size: 15px; font-weight: var(--w-et); }

.funciona-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 34px;
  margin-top: 36px;
}

.funciona-steps::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--line), var(--accent-soft) 15%, var(--accent-soft) 85%, var(--line));
  opacity: .6;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  position: absolute;
  left: -34px;
  top: 26px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--sobre);
  font-weight: var(--w-et);
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--bg);
  transition: scale .3s ease, box-shadow .3s ease;
}

.step.active .step-num {
  scale: 1.15;
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
}

.step h3 { font-size: 17px; font-weight: var(--w-fuerte); }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (min-width: 860px) {
  .funciona-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
  }

  .funciona-sticky { position: sticky; top: 120px; }

  .funciona-steps { margin-top: 0; }
}

/* ---------- anti-slop / lo que ya hace ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.split p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.profile-card {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 22px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
}

.profile-row + .profile-row { border-top: 1px solid var(--line); }
.profile-row span { color: var(--muted); }
.profile-row em { color: var(--accent-soft); font-style: normal; font-weight: var(--w-fuerte); text-align: right; }

/* ---------- funciona con tu IA ---------- */

.hint-text { color: var(--muted); max-width: 460px; margin-bottom: 26px; }

.chips-label { color: var(--muted); font-size: 13px; margin: 30px 0 12px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: var(--w-fuerte);
  display: inline-block;
  transition: translate .18s ease-out, border-color .15s;
}

/* ---------- lo ultimo (changelog) ---------- */

.log { list-style: none; display: flex; flex-direction: column; gap: 0; }

.log-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.log-row:last-child { border-bottom: 1px solid var(--line); }

.log-when {
  font-size: 12.5px;
  font-weight: var(--w-fuerte);
  letter-spacing: .3px;
  color: var(--accent);
  padding-top: 2px;
}

.log-row h3 { font-size: 16px; margin-bottom: 6px; font-weight: var(--w-fuerte); }
.log-row p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.log-row em { color: var(--text-dim); font-style: normal; font-weight: var(--w-fuerte); }

@media (max-width: 640px) {
  .log-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Las frases que se le pueden escribir. Se ven como lo que son: texto que
   alguien teclea, no botones ni tarjetas. */
.says {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 620px; margin: 28px auto 32px; text-align: left;
}
.say {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 13px 16px;
  font-size: 15px; line-height: 1.4; color: var(--text-dim);
}
@media (max-width: 640px) { .say { font-size: 14px; padding: 11px 13px; } }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 46px 24px 54px;
  text-align: center;
}

.footer .brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.footer .brand-logo { width: 30px; height: 30px; }
.footer .brand-name { font-weight: var(--w-et); font-size: 16px; }

.footer-tagline { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.footer-links { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { font-size: 13px; color: var(--accent); font-weight: var(--w-fuerte); }
.footer-links a:hover { text-decoration: underline; }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.motion-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: var(--w-fuerte);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.motion-toggle:hover { border-color: var(--accent); color: var(--text); }
.motion-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-fill); }
.motion-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.footer-copy { font-size: 12px; color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
  .hero { padding: 90px 20px 50px; }
  .profile-row { flex-direction: column; gap: 2px; }
  .profile-row em { text-align: left; }
}

@media (max-width: 480px) {
  .orb { opacity: .1; }
  .cta, .ghost { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; width: 100%; }
}
