:root {
  --bg: #121214;
  --panel: #1b1b1f;
  --panel-2: #222227;
  --line: #2e2e35;
  --fg: #ececef;
  --muted: #a0a0aa;
  --accent: #e0873a;
  --accent-hi: #f09a50;
  --radius: 12px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Cabecera */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--fg); letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.logo img { width: 26px; height: 26px; }
.logo b { color: var(--accent); font-weight: 800; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: .93rem; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--fg); }
.lang { color: var(--muted); font-size: .85rem; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
@media (max-width: 820px) { nav.links { display: none; } .lang { margin-left: auto; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); cursor: pointer;
}
.btn:hover { border-color: #45454e; color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1b1006; }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: #1b1006; }
.btn.sm { padding: 8px 14px; font-size: .9rem; border-radius: 8px; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }

/* Portada */
.hero { padding: 72px 0 40px; }
.hero h1 .serif { color: var(--accent); }
.demo { margin-top: 48px; }
.stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px -30px #000;
}
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .tex { transition: opacity .25s; }
.stage .tag {
  position: absolute; left: 12px; bottom: 12px; font-size: .8rem; background: #000a; padding: 4px 10px;
  border-radius: 6px; color: #fff; backdrop-filter: blur(6px);
}
.controls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; flex: 1 1 520px; }
.chip {
  flex: 0 0 auto; width: 84px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: var(--panel); cursor: pointer;
}
.chip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.chip[aria-pressed="true"] { border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
select, input[type="range"] { accent-color: var(--accent); }
select { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .9rem; }

/* Funciones */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #e0873a1f; color: var(--accent); margin-bottom: 14px; }
.card .ico svg { width: 20px; height: 20px; }

/* Biblioteca */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
.filters button { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; cursor: pointer; }
.filters button[aria-pressed="true"] { color: #1b1006; background: var(--accent); border-color: var(--accent); }
.library { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.library figure { margin: 0; }
.library img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.library figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* Pasos */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #1b1006; font-weight: 700; margin-bottom: 14px; }

/* Precio y descargas */
.price { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px) { .price { grid-template-columns: 1fr; } }
.price-card { background: var(--panel); border: 1px solid var(--accent); border-radius: 16px; padding: 32px; }
.amount { font-size: 3.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.amount small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
ul.check { list-style: none; padding: 0; margin: 20px 0 0; }
ul.check li { padding-left: 26px; position: relative; margin: 8px 0; color: var(--muted); }
ul.check li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.dl { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 32px; }
.dl .card h3 { display: flex; align-items: center; gap: 10px; }
.dl .card ol { color: var(--muted); padding-left: 20px; margin: 14px 0 18px; font-size: .93rem; }
.dl .card ol li { margin: 6px 0; }
.note { border-left: 3px solid var(--accent); background: var(--panel-2); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .9rem; color: var(--muted); margin: 0 0 16px; }

/* Preguntas */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 760px; }
.faq { max-width: 860px; margin-top: 24px; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

/* Páginas legales */
.legal { max-width: 760px; padding: 56px 16px 80px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: #cfcfd6; }
.todo { background: #e0873a26; color: var(--accent-hi); padding: 0 4px; border-radius: 4px; }
