/* Ayuda: lista de primeros pasos, tablas de números, consejos, preguntas, glosario y globos del recorrido. */
.help-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 1rem}
.help-chips a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);color:var(--ink-2);font-size:.875rem;font-weight:600;text-decoration:none}
.help-chips a:hover{border-color:var(--order);color:var(--order)}
.help-card,.first-steps,.example-card{margin-top:1rem}
.help-card .help-body,.example-card .help-body{padding:1rem 26px 1.4rem}
.help-card .section-head h2,.first-steps .section-head h2,.example-card .section-head h2{font-size:1.3rem}
.help-card .section-head p,.first-steps .section-head p,.example-card .section-head p{color:var(--muted);margin:.35rem 0 0;line-height:1.5;max-width:62ch}

/* primeros pasos */
.fs-progress{display:flex;align-items:center;gap:14px;padding:14px 26px 0;color:var(--muted);font-size:.875rem}
.fs-progress meter{flex:1;max-width:260px;height:10px}
.fs-list{list-style:none;margin:0;padding:6px 26px 18px}
.fs-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--rule-2)}
.fs-list li:first-child{border-top:0}
.fs-list .check-line{display:flex;gap:12px;align-items:flex-start;margin:0;flex:1}
.fs-list .check-line input{margin-top:4px;width:18px;height:18px;flex:0 0 auto}
.fs-list .check-line small{display:block;color:var(--muted);font-weight:400;margin-top:2px;line-height:1.45}
.fs-list li.done .check-line b{color:var(--ok);text-decoration:line-through;text-decoration-color:#2c765355}
.fs-list .button{flex:0 0 auto;margin:0}

/* números y tablas */
.plain-table{width:100%;border-collapse:collapse;font-size:.9375rem}
.plain-table th,.plain-table td{padding:10px 12px;border-top:1px solid var(--rule-2);text-align:left;vertical-align:top}
.plain-table thead th{border-top:0;color:var(--muted);font-size:.8125rem;font-weight:700;text-transform:none}
.plain-table tbody th{font-weight:700;color:var(--ink)}
.plain-table td:nth-child(2){color:var(--muted)}
.plain-table .num{font-variant-numeric:tabular-nums;white-space:nowrap}
.example-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.example-box{padding:14px 16px;border:1px solid var(--rule);border-left:4px solid var(--delivery);border-radius:var(--radius);background:var(--surface-2)}
.example-box strong{display:block;margin-bottom:4px}
.example-box p{margin:0;line-height:1.5;color:var(--ink-2)}

/* consejos y pasos */
.tip-list{margin:0;padding-left:1.4rem;display:grid;gap:12px;line-height:1.55;max-width:74ch}
.tip-list li::marker{font-weight:700;color:var(--order)}
.tip-list strong{color:var(--ink)}
.photo-figure{display:block;width:100%;max-width:440px;height:auto;margin:0 0 18px;color:var(--rule)}
html[data-theme="oscuro"] .photo-figure{color:#55627a}

/* preguntas */
.help-search{max-width:420px;margin-bottom:12px}
.faq-group{margin-top:14px}
.faq-group h3{font-size:.8125rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 4px}
.faq-item{border-top:1px solid var(--rule-2);padding:0}
.faq-item summary{cursor:pointer;padding:12px 4px;font-weight:600;line-height:1.4}
.faq-item summary:hover{color:var(--order)}
.faq-answer{padding:0 4px 14px;color:var(--ink-2);line-height:1.6;max-width:74ch}
.faq-answer p{margin:0}
.faq-item[hidden],.faq-group[hidden],.gl-item[hidden],.help-empty[hidden]{display:none}

/* glosario */
.glossary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:6px 0 0}
.glossary .gl-item{padding:12px 0;border-top:1px solid var(--rule-2)}
.glossary dt{font-weight:700}
.glossary dd{margin:3px 0 0;color:var(--ink-2);line-height:1.55}

/* ejemplo */
.ex-body{display:flex;gap:16px;align-items:flex-start}
.ex-body h3{margin:0 0 4px;font-size:1.0625rem}
.ex-body p{margin:0 0 12px;color:var(--ink-2);line-height:1.5;max-width:60ch}
.empty-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:inherit}
.big-empty .empty-actions{justify-content:center;margin-top:14px}
.hide-example{margin-left:10px;font-size:.8125rem}
.field-note{display:block;font-weight:400;color:var(--muted);font-size:.78rem;margin:2px 0 4px}

/* ayuda dentro del editor */
.editor-help-set{display:grid;gap:8px;margin:12px 0}
.editor-help{border:1px solid var(--rule);border-radius:var(--radius);background:var(--surface-2)}
.editor-help>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:10px 12px;font-size:.875rem;font-weight:600;color:var(--ink-2)}
.editor-help>summary .icon{flex:0 0 auto}
.editor-help.attn{border-color:var(--diff);background:var(--diff-t)}
.editor-help-body{padding:2px 14px 14px;font-size:.875rem;line-height:1.55;color:var(--ink-2)}
.editor-help-body ul{margin:.4rem 0;padding-left:1.2rem}
.editor-help-body p{margin:.4rem 0}
.editor-help .tip-list{gap:8px;font-size:.875rem}

/* globos del recorrido */
.tour-target{outline:3px solid var(--missing);outline-offset:5px;border-radius:8px;transition:outline-color .2s}
@media (prefers-reduced-motion:no-preference){.tour-target{animation:tour-pulse 1.8s ease-in-out infinite}}
@keyframes tour-pulse{50%{outline-color:#d9a11b66}}
.tour-balloon{position:fixed;z-index:60;box-sizing:border-box;width:360px;max-width:calc(100vw - 24px);padding:16px 18px 14px;background:var(--navy);color:#f4f6f9;border-radius:14px;box-shadow:0 14px 40px #0a121f55,0 2px 6px #0a121f40;font-size:.9375rem;line-height:1.5}
.tour-balloon .tb-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.tour-balloon .tb-count{font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#d9b45a}
.tour-balloon .tb-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-10px -12px -10px 0;border:0;background:transparent;color:#c5cedb;border-radius:8px}
.tour-balloon .tb-close:hover{color:#fff;background:#ffffff1a}
.tour-balloon .tb-title{margin:0 0 4px;font-size:1.0625rem;color:#fff;font-family:inherit}
.tour-balloon .tb-body{margin:0;color:#dfe5ee}
.tour-balloon .tb-body b{color:#fff}
.tour-balloon .tb-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
.tour-balloon .tb-nav{display:flex;gap:8px}
.tour-balloon .text-button{color:#c5cedb}
.tour-balloon .text-button:hover{color:#fff}
.tour-balloon .button{min-height:44px;background:#2b384c;color:#fff;border-color:#4a586f}
.tour-balloon .button.primary{background:#f4f6f9;color:#1f2a3a;border-color:#f4f6f9}
.tour-balloon .button:disabled{opacity:.45}
.tour-balloon .tb-arrow{position:absolute;left:var(--arrow-x,50%);width:16px;height:16px;margin-left:-8px;background:var(--navy);transform:rotate(45deg);display:none}
.tour-balloon[data-place="below"] .tb-arrow{display:block;top:-7px}
.tour-balloon[data-place="above"] .tb-arrow{display:block;bottom:-7px}
.tour-balloon[data-place="left"] .tb-arrow{display:block;left:auto;right:-7px;margin:0;top:var(--arrow-y,50%);margin-top:-8px}
.tour-balloon[data-place="right"] .tb-arrow{display:block;left:-7px;margin:0;top:var(--arrow-y,50%);margin-top:-8px}
.tour-balloon:focus-within{outline:0}
.tour-balloon button:focus-visible{outline:3px solid #d9b45a;outline-offset:2px}
.tour-balloon.sheet{left:12px;right:12px;bottom:12px;top:auto;width:auto;max-width:none}
.tour-balloon.sheet .tb-arrow{display:none}
html.tour-on #notice{z-index:70}

@media(max-width:760px){
  .glossary,.example-boxes{grid-template-columns:1fr}
  .help-card .help-body,.example-card .help-body{padding-inline:18px}
  .fs-list li{flex-wrap:wrap}
  .fs-list li .button{margin-left:30px}
}
@media print{.tour-balloon,.help-chips{display:none}}
