:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #5b6678;
  --bg: #ffffff;
  --soft: #f4f6fa;
  --line: #dfe4ec;
  --accent: #ffd23f;
  --accent-ink: #0b1220;
  --link: #1d4ed8;
  --dark: #0b1220;
  --dark-2: #141d2f;
  --on-dark: #e8edf5;
  --on-dark-muted: #b4bfd0;
  --radius: 14px;
  --focus: #1d4ed8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; color: var(--ink); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: 4px 12px; border-radius: 999px; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .header-row { gap: 10px; padding-block: 8px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .nav ul { gap: 18px; font-size: .95rem; }
  .lang { margin-left: auto; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffc400; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-small { font: inherit; font-size: .9rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Portada */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, #fffbea 0%, #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 36px; } }

/* Demostración */
.demo { margin: 0; }
.demo-screen { background: var(--dark); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(11,18,32,.45); }
.demo-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--dark-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3a465c; }
.demo-live { margin-left: auto; font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: #fff; background: #d62f2f; padding: 2px 8px; border-radius: 4px; }
.demo-stage { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 20%, #26324a 0%, #0f1727 70%); }
.demo-speaker { position: absolute; left: 50%; top: 14%; width: 26%; transform: translateX(-50%); color: #5d6b85; }
.demo-captions { position: absolute; left: 5%; right: 5%; bottom: 6%; display: grid; gap: 6px; }
.cap { margin: 0; display: flex; gap: 8px; align-items: flex-start; background: rgba(0,0,0,.78); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: clamp(.9rem, 1.9vw, 1.1rem); line-height: 1.35; min-height: 2.9em; }
.cap-tr { color: var(--accent); }
.cap-tag { flex: none; font-size: .68rem; font-weight: 800; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.14); color: #fff; margin-top: .2em; }
.cap-text::after { content: ""; display: inline-block; width: .5ch; }
.demo figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.demo-controls { margin-top: 8px; }
.demo-text { margin-top: 10px; font-size: .92rem; color: var(--ink-2); }
.demo-text summary { cursor: pointer; color: var(--link); }
.demo-text ol { padding-left: 1.2em; }

/* Secciones */
.section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 44em; margin-bottom: 2em; }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .section-lead, .section-dark .note { color: var(--on-dark-muted); }
.section-dark a:not(.btn) { color: #9ec1ff; }
.note { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--soft); border-radius: var(--radius); padding: 24px; border-top: 5px solid var(--accent); }
.steps p { margin: 0; color: var(--ink-2); }
.features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.features li { padding-left: 18px; border-left: 3px solid var(--line); }
.features p { margin: 0; color: var(--ink-2); }
.features-dark { grid-template-columns: repeat(2, 1fr); }
.features-dark li { border-left-color: var(--accent); }
.features-dark p { color: var(--on-dark-muted); }
.features-dark h3 { color: #fff; }
@media (max-width: 800px) { .steps, .features, .features-dark { grid-template-columns: 1fr; } }

/* Precios */
.price-group { font-size: 1.3rem; margin-top: 1.6em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 12px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card-hl { border: 2px solid var(--ink); }
.card h4 { font-size: 1.05rem; margin-bottom: .3em; }
.price { margin: 0 0 .8em; }
.amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.unit { color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .98rem; }
.card li + li { margin-top: .3em; }
.badge { position: absolute; top: -12px; left: 20px; margin: 0; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.price-notes { color: var(--muted); padding-left: 1.1em; margin-top: 24px; }

/* Preguntas */
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq p { margin: .7em 0 0; color: var(--ink-2); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field-wide.field { display: grid; }
label { font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #9aa6b8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(29,78,216,.25); outline-offset: 0; }
.hint { font-size: .92rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) { .contact { grid-template-columns: 1fr; } }

/* Pie */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 32px 0; font-size: .95rem; color: var(--ink-2); }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.footer-row p { margin: 0; }
.footer-row ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-row .small { width: 100%; font-size: .82rem; color: var(--muted); }

/* Páginas legales */
.legal { padding: 56px 0 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.todo { background: #fff4c2; padding: 0 .3em; border-radius: 4px; }
