/* XtudioPdf: sitio de producto. IBM Plex Sans/Mono, fondo neutro claro, un acento azul. */
:root {
  --ground: #F6F6F3; --panel: #FFFFFF; --ink: #15171C; --ink-2: #2A2E36; --muted: #3D424D; --faint: #4A505C;
  --line: #E2E2DC; --line-2: #C9CAC2; --accent: #0F5E9C; --accent-ink: #0F4C81; --accent-soft: #EEF4FA;
  --dark: #15171C; --dark-2: #0D0E11; --dark-line: #2C2F36; --dark-ink: #E8E9E4; --dark-muted: #C5C8CF;
  --ok: #0E7C66; --warn: #9A5B00; --danger: #B42318;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--accent-ink); }
a:hover { color: #0A3459; }
code, pre, .mono { font-family: var(--mono); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 15px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Botones (≥44 px de alto) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font: 600 16px/1.2 'IBM Plex Sans', system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFF; }
.btn-primary:hover { background: var(--accent-ink); color: #FFF; }
.btn-dark { background: var(--ink); color: #FFF; }
.btn-dark:hover { background: #000; color: #FFF; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Cabecera y pie */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.lang { font-family: var(--mono); font-size: 13px; font-weight: 500; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; min-height: 36px; display: inline-flex; align-items: center; }
.foot a[aria-current=true] { font-weight: 600; text-decoration: none; }
.foot { background: var(--dark); color: var(--dark-muted); margin-top: 0; }
main { flex: 1 0 auto; }
.foot .cmd { background: var(--dark-2); border: 1px solid var(--dark-line); max-width: 460px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.foot a { color: #FFF; }
.foot small { display: block; color: #A9AEB8; font-size: 13px; padding: 0 24px 28px; max-width: 1200px; margin: 0 auto; }

/* Portada */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero > div { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cmd { font-family: var(--mono); font-size: 14px; background: var(--dark); color: var(--dark-ink); padding: 14px 18px; border-radius: 8px; overflow-x: auto; white-space: nowrap; }
.cmd span { color: #8FB8DE; }
.doc { max-width: 440px; margin: 0 auto; background: #FFF; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 48px -24px rgba(21,23,28,.25);
  padding: 28px; display: flex; flex-direction: column; gap: 18px; font-size: 12px; color: var(--ink-2); }
.doc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.doc-no { border: 1px solid var(--accent); border-radius: 4px; padding: 8px 10px; text-align: right; }
.doc-no strong { color: var(--accent); display: block; }
.doc-row { display: grid; grid-template-columns: 1fr 48px 92px; gap: 8px; padding: 7px 0; border-bottom: 1px solid #F0F0EC; }
.doc-row span:not(:first-child) { text-align: right; }
.doc-row.head { font-weight: 600; color: var(--ink); border-bottom-color: var(--line); border-top: 1px solid var(--line); }
.doc-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.doc-total div { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.doc-total strong { font-size: 18px; color: var(--ink); }
.doc-total small { font-size: 10px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 5px 10px; font-weight: 600; font-size: 11px; }

/* Bandas */
.facts { background: #FFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 32px; padding-bottom: 32px; }
.facts strong { display: block; font-size: 30px; letter-spacing: -0.02em; }
.facts span { color: var(--faint); font-size: 15px; }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.section h2 { font-size: clamp(28px, 4vw, 36px); }
.intro { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.intro p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); line-height: 1.55; font-size: 15px; }
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.dark .wrap > div { flex: 1 1 360px; min-width: 0; }
.dark h2 { color: #FFF; font-size: clamp(28px, 4vw, 36px); }
.dark p { color: var(--dark-muted); font-size: 17px; line-height: 1.6; }
.code { flex: 1 1 520px; min-width: 0; margin: 0; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 10px; padding: 24px;
  overflow-x: auto; font-size: 14px; line-height: 1.7; color: var(--dark-ink); }
.code i { color: #8A909C; font-style: normal; }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.plan.best { border: 2px solid var(--accent); padding: 27px; }
.plan h3 { font-size: 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { background: var(--accent); color: #FFF; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 44px; letter-spacing: -0.03em; }
.price span, .renew { color: var(--faint); }
.renew { font-size: 14px; }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); flex-grow: 1; }
.features li { display: flex; gap: 10px; }
.features li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.features.plain li::before { background: #9AA0AA; }

/* Preguntas */
.faq { background: #FFF; border-top: 1px solid var(--line); }
.faq .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.qa { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.qa h3 { font-size: 18px; }
.qa p { color: var(--muted); line-height: 1.6; }

/* Formularios y páginas de cuenta */
.page { padding-top: 56px; padding-bottom: 80px; }
.box { background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
input[type=email], input[type=text], input[type=tel], select, textarea { font: 400 16px 'IBM Plex Sans', system-ui, sans-serif; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: 8px; background: #FFF; color: var(--ink); }
label.choice { flex-direction: row; align-items: baseline; gap: 8px; font-weight: 400; }
label.choice input { margin: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #8FB8DE; outline-offset: 2px; }
.note { border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.note.ok { background: #E7F4EF; color: #0B5A4A; }
.note.warn { background: #FBF0DD; color: #6E4100; }
.note.error { background: #FBE9E7; color: #8A1C12; }
.key { font-family: var(--mono); font-size: 13px; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; padding: 12px; word-break: break-all; }
.license { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.license header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.tag.off { background: #FBE9E7; color: #8A1C12; }
.tag.trial { background: #FBF0DD; color: #6E4100; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #FFF; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--ground); font-weight: 600; }
.inline { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Textos legales */
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 20px; margin-top: 12px; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal mark { background: #FBF0DD; color: #6E4100; padding: 0 3px; border-radius: 3px; }
