/* DocuDojo — hoja de estilos. Sin dependencias externas. */
:root {
  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
  --bg: #f4f7fb; --surface: #ffffff; --surface-2: #eef1f8; --surface-3: #e4e8f3;
  --text: #121a2e; --muted: #596483; --border: #dde2ec; --border-strong: #c9d0de;
  --brand: #185abd; --brand-2: #0f9d9f; --brand-ink: #143f80; --brand-soft: #e7f0fb; --brand-soft-2: #e0f5f5;
  --word: #2b579a; --word-soft: #e8eef9; --excel: #217346; --excel-soft: #e6f2ea; --ppt: #b7472a; --ppt-soft: #f9e9e4; --pdf: #c4291c; --pdf-soft: #fbeae8;
  --tip: #0f766e; --tip-soft: #e3f5f2; --warn: #b45309; --warn-soft: #fff3e0; --pro: #6d28d9; --pro-soft: #f1ebff; --ok: #15803d; --ok-soft: #e4f6ea; --mac: #475569; --mac-soft: #eef2f7;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(18, 26, 46, .05), 0 10px 30px -14px rgba(18, 26, 46, .22);
  --shadow-lg: 0 2px 6px rgba(18, 26, 46, .06), 0 24px 60px -24px rgba(18, 26, 46, .35);
  --maxw: 1160px; --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --surface: #121a30; --surface-2: #182239; --surface-3: #1f2a45;
    --text: #e7eaf3; --muted: #9ba6c2; --border: #26304d; --border-strong: #35416a;
    --brand: #6ea3ef; --brand-2: #2dd4bf; --brand-ink: #bfd6fa; --brand-soft: #14264a; --brand-soft-2: #0f2e33;
    --word: #7aa2e3; --word-soft: #172747; --excel: #4fbf7a; --excel-soft: #10301d; --ppt: #e3836a; --ppt-soft: #3a1f17; --pdf: #f07a6e; --pdf-soft: #3d1714;
    --tip: #2dd4bf; --tip-soft: #0f2b2a; --warn: #fbbf24; --warn-soft: #2d2210; --pro: #b794f6; --pro-soft: #241b3a; --ok: #4ade80; --ok-soft: #10301d; --mac: #cbd5e1; --mac-soft: #1e293b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #121a30; --surface-2: #182239; --surface-3: #1f2a45;
  --text: #e7eaf3; --muted: #9ba6c2; --border: #26304d; --border-strong: #35416a;
  --brand: #6ea3ef; --brand-2: #2dd4bf; --brand-ink: #bfd6fa; --brand-soft: #14264a; --brand-soft-2: #0f2e33;
  --word: #7aa2e3; --word-soft: #172747; --excel: #4fbf7a; --excel-soft: #10301d; --ppt: #e3836a; --ppt-soft: #3a1f17; --pdf: #f07a6e; --pdf-soft: #3d1714;
  --tip: #2dd4bf; --tip-soft: #0f2b2a; --warn: #fbbf24; --warn-soft: #2d2210; --pro: #b794f6; --pro-soft: #241b3a; --ok: #4ade80; --ok-soft: #10301d; --mac: #cbd5e1; --mac-soft: #1e293b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
strong { font-weight: 650; }
kbd { font-family: var(--font-mono); font-size: .82em; padding: .1em .45em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--text); white-space: nowrap; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.2em; }
th, td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-wrap table { margin: 0; min-width: 480px; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.2em; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--text); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: .45em .9em; font-size: .88rem; }
.btn-word { background: var(--word); color: #fff; border: 0; }
.btn-word:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.main-nav a .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot-word { background: var(--word); } .dot-excel { background: var(--excel); } .dot-ppt { background: var(--ppt); } .dot-pdf { background: var(--pdf); }
.soon-pill { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn kbd { font-size: .7rem; padding: 0 .35em; }
.icon-btn.square { width: 40px; padding: 0; justify-content: center; }
.ic-sun { display: none; } .ic-moon { display: inline; }
:root[data-theme="dark"] .ic-sun { display: inline; } :root[data-theme="dark"] .ic-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-sun { display: inline; } :root:not([data-theme="light"]) .ic-moon { display: none; } }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; margin: 0; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .icon-btn .label, .icon-btn kbd { display: none; }
  .icon-btn { width: 40px; padding: 0; justify-content: center; }
  .icon-btn.lang { width: auto; padding: 0 10px; }
  .icon-btn.lang .label { display: inline; }
}
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); z-index: 60; pointer-events: none; }

/* ---------- Language suggestion ---------- */
.lang-suggest { display: none; background: var(--brand-soft); border-bottom: 1px solid var(--border); font-size: .95rem; }
.lang-suggest.show { display: block; }
.lang-suggest .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 8px; padding-bottom: 8px; }
.lang-suggest .btn { padding: .35em .9em; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 10% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
  radial-gradient(50% 50% at 90% 10%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%),
  linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px; opacity: .55; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.hero .kicker { margin-bottom: 14px; }
.hero h1 { max-width: 15ch; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 62ch; color: var(--muted); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.hero-app { padding-top: clamp(28px, 5vw, 56px); }
.hero-app .app-mark { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.hero-app .app-mark svg { width: 32px; height: 32px; }
.app-word { background: var(--word); } .app-excel { background: var(--excel); } .app-ppt { background: var(--ppt); } .app-pdf { background: var(--pdf); }

/* ---------- Sections ---------- */
.section { padding: clamp(32px, 5vw, 64px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head .lede { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head h2 { margin-bottom: .35em; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(18, 26, 46, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { font-size: 1.08rem; margin: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card-icon svg { width: 22px; height: 22px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: auto; }
.card-meta .lvl { display: inline-flex; align-items: center; gap: 5px; }
.lvl i { display: inline-block; width: 6px; height: 10px; border-radius: 2px; background: var(--border-strong); }
.lvl i.on { background: var(--brand); }
.card-num { position: absolute; top: 14px; right: 16px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.card.accent-word { border-top: 3px solid var(--word); } .card.accent-excel { border-top: 3px solid var(--excel); } .card.accent-ppt { border-top: 3px solid var(--ppt); } .card.accent-pdf { border-top: 3px solid var(--pdf); }
.card .pill { position: absolute; top: 14px; right: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-soon { background: var(--warn-soft); color: var(--warn); } .pill-brand { background: var(--brand-soft); color: var(--brand-ink); }
.card-path { background: linear-gradient(135deg, var(--surface), var(--brand-soft)); }
.card-path .card-icon { background: var(--surface); }
.card-big { padding: 28px; }
.card-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.card-cta .btn { align-self: flex-start; position: relative; z-index: 1; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .88rem; color: var(--muted); margin: 18px 0 8px; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Guide ---------- */
.guide-header { padding: 8px 0 24px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 14px; }
.meta-line .app-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--word); font-weight: 700; }
.meta-line .app-tag svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .meta-line { font-size: .68rem; gap: 4px 10px; } .breadcrumb { font-size: .8rem; } }
.guide-header h1 { max-width: 24ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; color: var(--muted); text-decoration: none; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.answer-box { margin: 20px 0 0; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.answer-box .label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px; }
.answer-box .label svg { width: 16px; height: 16px; }
.answer-box p { margin: 0; font-size: 1.05rem; }
.guide-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
@media (min-width: 1024px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.guide-body { min-width: 0; max-width: 760px; }
.guide-body > section { margin-bottom: 40px; }
.guide-body h2 { display: flex; align-items: center; gap: 10px; margin-top: 0; padding-top: 8px; }
.guide-body h2 svg { width: 24px; height: 24px; color: var(--brand); flex: none; }
.intro { font-size: 1.05rem; }
.learn-box { padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.learn-box h2 { font-size: 1.05rem; margin-bottom: 10px; }
.learn-box ul { margin: 0; padding-left: 0; list-style: none; }
.learn-box li { position: relative; padding-left: 26px; margin: 6px 0; }
.learn-box li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }
.steps { counter-reset: step; }
.step { position: relative; padding: 0 0 8px 58px; margin: 0 0 28px; }
.step::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: -20px; width: 2px; background: var(--border); }
.step:last-of-type::before { display: none; }
.step-num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px -8px var(--brand); }
.step h3 { margin: 8px 0 10px; font-size: 1.22rem; }
.step h3 a { color: inherit; text-decoration: none; }
.step h3 a:hover { color: var(--brand); }
figure.shot { margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { padding: 8px 14px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); margin: 14px 0; font-size: .97rem; border: 1px solid transparent; }
.callout svg { width: 22px; height: 22px; margin-top: 2px; }
.callout b { display: block; font-size: .78rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout-tip { background: var(--tip-soft); color: var(--text); border-color: color-mix(in srgb, var(--tip) 30%, transparent); } .callout-tip svg, .callout-tip b { color: var(--tip); }
.callout-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); } .callout-warn svg, .callout-warn b { color: var(--warn); }
.callout-mac { background: var(--mac-soft); border-color: var(--border); } .callout-mac svg, .callout-mac b { color: var(--mac); }
.callout-pro { background: var(--pro-soft); border-color: color-mix(in srgb, var(--pro) 30%, transparent); } .callout-pro svg, .callout-pro b { color: var(--pro); }
.pro-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pro-list li { position: relative; padding: 14px 16px 14px 46px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pro-list li::before { content: "★"; position: absolute; left: 16px; top: 13px; color: var(--pro); font-size: 1.05rem; }
.mistakes { display: grid; gap: 12px; }
.mistake { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--warn); }
.mistake b { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.mistake .fix { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.mistake .fix b { color: var(--ok); }
.mistake p { margin: 0; }
details.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 650; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-a { padding: 0 16px 14px; color: var(--text); }
details.faq .faq-a p:last-child { margin-bottom: 0; }
.sources ul { padding-left: 1.2em; font-size: .95rem; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.guide-actions .hint { font-size: .85rem; color: var(--muted); margin: 0; flex-basis: 100%; }
.btn-done.is-done { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.guide-side { min-width: 0; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
.toc { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .92rem; }
.toc b { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--text); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface-2); }
.toc a.active { border-left-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.toc .toc-sec { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.side-path { padding: 16px 18px; border-radius: var(--radius); background: var(--brand-soft); font-size: .92rem; }
.side-path b { display: block; margin-bottom: 4px; }
.side-path a.btn { margin-top: 10px; }
@media (max-width: 1023px) { .guide-side .toc { display: none; } }

/* ---------- Ads ---------- */
.ad-slot { display: block; margin: 24px 0; min-height: 0; }
.ad-slot:empty { display: none; }
.ads-preview .ad-slot { display: block !important; min-height: 110px; border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, transparent 0 10px, var(--surface-2) 10px 20px); position: relative; }
.ads-preview .ad-slot::after { content: attr(data-label) " — " attr(data-slot); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ad-slot ins { display: block; }
.ad-slot.has-ad { min-height: 100px; }
.ad-label { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Paths ---------- */
.progress-card { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin: 8px 0 28px; }
.progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.progress-top b { font-size: 1.1rem; }
.belt { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--surface-2); }
.belt i { width: 28px; height: 8px; border-radius: 3px; background: var(--belt, #e5e7eb); border: 1px solid rgba(0, 0, 0, .15); }
.progress-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s ease; }
.progress-card small { color: var(--muted); }
.path-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; counter-reset: p; }
.path-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.path-item .n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; background: var(--surface-2); color: var(--muted); }
.path-item.done .n { background: var(--ok-soft); color: var(--ok); }
.path-item h3 { font-size: 1.02rem; margin: 0 0 2px; }
.path-item h3 a { color: var(--text); text-decoration: none; }
.path-item h3 a:hover { color: var(--brand); }
.path-item .m { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.path-item label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.path-item input { width: 20px; height: 20px; accent-color: var(--brand); }
@media (max-width: 560px) { .path-item { grid-template-columns: 36px minmax(0, 1fr); } .path-item label { grid-column: 2; } }

/* ---------- Glossary ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.letters a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 700; color: var(--text); }
.letters a:hover { border-color: var(--brand); color: var(--brand); }
.letters span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--border-strong); }
.terms { margin: 0; }
.terms .letter-head { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); margin: 28px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.terms dt { font-weight: 700; font-size: 1.1rem; margin-top: 16px; scroll-margin-top: 90px; }
.terms dd { margin: 4px 0 0; color: var(--text); }
.terms dd p { margin: 0 0 .4em; }
.terms dd a.g { font-size: .88rem; }

/* ---------- Quiz ---------- */
.quiz { max-width: 760px; }
.quiz-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.quiz-progress { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.quiz-bar { height: 6px; border-radius: 999px; background: var(--surface-3); margin-bottom: 20px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s; }
.quiz-q { font-size: 1.25rem; font-weight: 700; margin-bottom: 18px; }
.quiz-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.quiz-opt { text-align: left; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; }
.quiz-opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.quiz-opt .k { font-family: var(--font-mono); font-weight: 700; color: var(--muted); flex: none; width: 22px; }
.quiz-opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.quiz-opt.wrong { border-color: var(--warn); background: var(--warn-soft); }
.quiz-opt:disabled { cursor: default; }
.quiz-feedback { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 16px; }
.quiz-feedback b { display: block; margin-bottom: 4px; }
.quiz-feedback p { margin: 0; }
.quiz-feedback.ok { background: var(--ok-soft); } .quiz-feedback.ko { background: var(--warn-soft); }
.quiz-result { text-align: center; }
.quiz-result .score { font-family: var(--font-display); font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 8px 0; }
.quiz-result .belt { font-size: 1.05rem; margin: 10px 0 14px; }
.quiz-review { text-align: left; margin-top: 22px; }
.quiz-review h3 { font-size: 1.05rem; }

/* ---------- Static pages ---------- */
.page { padding: 8px 0 56px; }
.page .prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose table { font-size: .92rem; }
.page-head { padding: 8px 0 20px; }
.page-head .lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.soon-list { display: grid; gap: 10px; padding: 0; list-style: none; max-width: 760px; }
.soon-list li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); border-left: 4px solid var(--border-strong); }
.trust { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 800px) { .trust { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Search ---------- */
.search-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; background: rgba(8, 12, 28, .55); backdrop-filter: blur(4px); }
.search-modal.open { display: flex; }
.search-box { width: min(680px, 100%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.search-box form { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.search-box form svg { width: 20px; height: 20px; color: var(--muted); }
.search-box input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--text); padding: 8px 0; outline: none; }
.search-box .esc { font-size: .72rem; }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.search-results p { padding: 14px; margin: 0; color: var(--muted); font-size: .95rem; }
.search-results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a.active { background: var(--brand-soft); }
.search-results a b { display: block; font-weight: 650; }
.search-results a span { display: block; font-size: .85rem; color: var(--muted); }
.search-results a small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--surface-2); border-top: 1px solid var(--border); padding: 40px 0 28px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 28px; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid h4 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.footer-grid button.linklike:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: grid; gap: 10px; font-size: .85rem; }
.footer-bottom .disclaimer { max-width: 90ch; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 60px 0; }
.nf .big { font-family: var(--font-mono); font-size: 5rem; color: var(--border-strong); line-height: 1; }

/* ---------- Utilities ---------- */
.stack { display: grid; gap: 14px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.hide { display: none !important; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .ad-slot, .guide-side, .guide-actions, .lang-suggest, .search-modal, .reading-progress, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .guide-layout { display: block; }
  figure.shot { box-shadow: none; break-inside: avoid; }
  .step { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

/* =====================================================================
   Excel, fórmulas, zoom de imágenes, opiniones (añadido en la versión 3)
   ===================================================================== */
:root {
  /* Tipografía de las fórmulas: monoespaciada, distinta del texto de la página (Segoe UI / sistema). */
  --font-formula: "JetBrains Mono", "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "Roboto Mono", "DejaVu Sans Mono", "Liberation Mono", monospace;
  --fx-bg: #e9f5ee; --fx-border: #b7dcc5; --fx-ink: #145c34;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fx-bg: #0f2a1b; --fx-border: #24583a; --fx-ink: #8be0ab; } }
:root[data-theme="dark"] { --fx-bg: #0f2a1b; --fx-border: #24583a; --fx-ink: #8be0ab; }

/* Logo: al pasar el ratón se intercambian los colores de «Docu» y «Dojo» */
.brand-name > span, .brand-name > b { transition: color .25s ease; }
.brand-name > span { color: var(--text); }
.brand-name > b { color: var(--brand); }
.brand:hover .brand-name > span, .brand:focus-visible .brand-name > span { color: var(--brand); }
.brand:hover .brand-name > b, .brand:focus-visible .brand-name > b { color: var(--text); }

/* Fórmulas en el texto */
code.f, .in-excel .guide code, .in-excel .terms code {
  font-family: var(--font-formula); font-size: .88em; font-weight: 600; letter-spacing: 0;
  color: var(--fx-ink); background: var(--fx-bg); border: 1px solid var(--fx-border);
  padding: .08em .4em; border-radius: 5px; white-space: normal; overflow-wrap: anywhere;
}
/* Barra de fórmulas destacada de un paso */
.fx-list { display: grid; gap: 10px; margin: 14px 0; }
.fx-block { border: 1px solid var(--fx-border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.fx-bar { display: flex; align-items: stretch; gap: 0; min-height: 46px; }
.fx-cell { display: grid; place-items: center; min-width: 58px; padding: 0 10px; font-family: var(--font-formula); font-weight: 700; font-size: .85rem; color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--fx-border); }
.fx-ic { display: grid; place-items: center; padding: 0 10px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.05rem; color: var(--muted); border-right: 1px solid var(--fx-border); }
.fx-bar code.fx-code { flex: 1; display: flex; align-items: center; margin: 0; padding: 10px 14px; border: 0; border-radius: 0; background: var(--fx-bg); font-size: .95rem; line-height: 1.45; }
.fx-copy { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-left: 1px solid var(--fx-border); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.fx-copy:hover { background: var(--surface-2); }
.fx-copy svg { width: 16px; height: 16px; }
.fx-copy.copied { color: var(--ok); }
.fx-note { margin: 0; padding: 8px 14px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--fx-border); }
@media (max-width: 560px) { .fx-ic { display: none; } .fx-copy span { display: none; } .fx-cell { min-width: 44px; } }

/* Selector de separador ; / , (guías de Excel en español) */
.sep-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.sep-toggle button { min-width: 38px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: var(--font-formula); font-weight: 700; font-size: 1rem; cursor: pointer; }
.sep-toggle button[aria-pressed="true"] { background: var(--excel); border-color: var(--excel); color: #fff; }
.sep-toggle small { flex-basis: 100%; font-size: .82rem; }

/* Excel: acentos verdes */
.btn-excel { background: var(--excel); color: #fff; border: 0; }
.btn-excel:hover { color: #fff; }
.card-excel .card-icon { background: var(--excel-soft); color: var(--excel); }
.card-excel .lvl i.on { background: var(--excel); }
.meta-line .app-tag-excel { color: var(--excel); }
.in-excel .step-num { background: linear-gradient(135deg, var(--excel), var(--brand-2)); box-shadow: 0 6px 16px -8px var(--excel); }
.in-excel .answer-box { background: var(--excel-soft); border-color: color-mix(in srgb, var(--excel) 30%, transparent); }
.in-excel .answer-box .label, .in-excel .guide-body h2 svg { color: var(--excel); }
.group-head { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 26px 0 14px; }
.group-head:first-of-type { margin-top: 4px; }
.cta-row .btn .dot { margin-right: 2px; }

/* Imágenes de los pasos: más pequeñas y con zoom al hacer clic */
figure.shot { position: relative; max-width: 540px; cursor: zoom-in; }
figure.shot img { transition: opacity .15s ease; }
figure.shot:hover img { opacity: .93; }
.shot-zoom { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); cursor: zoom-in; box-shadow: var(--shadow); }
.shot-zoom svg { width: 18px; height: 18px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; background: rgba(8, 12, 24, .82); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { width: auto; height: auto; max-width: 96vw; max-height: 90vh; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.lightbox img.is-svg { width: min(96vw, 1180px); }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox .lb-cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: min(90vw, 760px); padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .88rem; text-align: center; }
body.lb-lock { overflow: hidden; }

/* «¿Te ha servido esta guía?» y opiniones de lectores */
.feedback-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 18px 0; padding: 16px 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.feedback-box p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); max-width: 60ch; }
.feedback-box .btn svg { width: 18px; height: 18px; }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0; font-size: 1rem; }
.testimonial blockquote p::before { content: "“"; } .testimonial blockquote p::after { content: "”"; }
.testimonial figcaption { display: grid; gap: 2px; margin-top: auto; font-size: .88rem; color: var(--muted); }
.testimonial figcaption b { color: var(--text); }
.testimonial-note { margin-top: 18px; }

@media print { .shot-zoom, .lightbox, .feedback-box, .sep-toggle, .fx-copy { display: none !important; } figure.shot { cursor: auto; } }

/* PDF: acentos rojos (sección añadida en noviembre de 2026) */
.btn-pdf { background: var(--pdf); color: #fff; border: 0; }
.btn-pdf:hover { color: #fff; }
.card-pdf .card-icon { background: var(--pdf-soft); color: var(--pdf); }
.card-pdf .lvl i.on { background: var(--pdf); }
.meta-line .app-tag-pdf { color: var(--pdf); }
.in-pdf .step-num { background: linear-gradient(135deg, var(--pdf), var(--brand-2)); box-shadow: 0 6px 16px -8px var(--pdf); }
.in-pdf .answer-box { background: var(--pdf-soft); border-color: color-mix(in srgb, var(--pdf) 30%, transparent); }
.in-pdf .answer-box .label, .in-pdf .guide-body h2 svg { color: var(--pdf); }
