/* Atlas Studio — ayuda, manual de usuario y pie de página */
:root { --footer-h: 28px; }
.workspace { height: calc(100vh - 66px - var(--footer-h)); }

.app-footer { height: var(--footer-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-top: 1px solid var(--line); background: rgba(6, 17, 27, .96); color: var(--muted); font-size: 11px; position: relative; z-index: 25; }
.app-footer strong { color: #d7e6ec; font-weight: 700; }
.app-footer-links { display: flex; gap: 4px; }
.app-footer-links button { border: 0; background: none; color: var(--aqua); font: 600 11px "DM Sans", sans-serif; padding: 3px 7px; border-radius: 6px; cursor: pointer; }
.app-footer-links button:hover { background: rgba(73, 214, 197, .1); }

.help-btn svg { color: var(--gold); }

.help-dialog { width: min(820px, calc(100vw - 24px)); max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: #0b1b28; color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .55); overflow: hidden; }
.help-dialog::backdrop { background: rgba(2, 8, 14, .7); backdrop-filter: blur(4px); }
.help-dialog[open] { animation: helpIn .22s ease; }
@keyframes helpIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.help-shell { display: flex; flex-direction: column; max-height: min(88vh, 900px); }
.help-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 12px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 0 0, rgba(73, 214, 197, .12), transparent 60%); }
.help-header h2 { font-size: 21px; }
.help-header-actions { display: flex; gap: 6px; align-items: center; }
.help-search { position: relative; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.help-search svg { position: absolute; left: 33px; top: 23px; width: 15px; color: var(--muted-2); }
.help-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; color: var(--ink); background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.help-body { overflow-y: auto; padding: 12px 22px 18px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.help-section { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: rgba(255, 255, 255, .02); }
.help-section[open] { border-color: rgba(73, 214, 197, .3); background: rgba(73, 214, 197, .035); }
.help-section summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; font: 700 14px Manrope, sans-serif; }
.help-section summary::-webkit-details-marker { display: none; }
.help-section summary span { display: flex; align-items: center; gap: 10px; }
.help-section summary span svg { width: 17px; color: var(--aqua); }
.help-chevron { width: 16px; color: var(--muted); transition: transform .2s ease; }
.help-section[open] .help-chevron { transform: rotate(180deg); }
.help-content { padding: 0 16px 14px 42px; font-size: 13px; line-height: 1.6; color: #cbd9df; }
.help-content ul, .help-content ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.help-content p { margin: 8px 0 0; }
.help-content code, .help-content kbd { font: 600 12px ui-monospace, Consolas, monospace; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: #fff; }
.help-content kbd { border-bottom-width: 2px; }
.help-grid { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; }
.help-grid dt { font-weight: 700; color: #fff; }
.help-grid dd { margin: 0; }
.help-keys { border-collapse: collapse; }
.help-keys td { padding: 5px 16px 5px 0; border-bottom: 1px solid var(--line); }
.help-tip { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 9px; background: rgba(242, 184, 75, .08); border: 1px solid rgba(242, 184, 75, .25); }
.help-tip svg { width: 16px; flex: none; color: var(--gold); margin-top: 3px; }
.help-note { color: var(--muted); font-size: 12px; font-style: italic; }
.help-subtitle { margin-top: 12px !important; font: 700 12px Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--aqua); }
.help-credit-card { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.help-credit-card div { display: grid; gap: 2px; }
.help-credit-card strong { font: 800 16px Manrope, sans-serif; color: #fff; }
.help-credit-card small { color: var(--muted); font-size: 12px; }
.help-avatar { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font: 800 17px Manrope, sans-serif; color: #06201e; background: linear-gradient(135deg, var(--aqua), var(--gold)); }
.help-forbidden li::marker { content: "✕  "; color: var(--danger); font-weight: 800; }
.help-empty { color: var(--muted); text-align: center; padding: 20px; }
.help-footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 11px 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; }

@media (max-width: 1120px) {
  .right-panel { bottom: var(--footer-h); }
}
@media (max-width: 760px) {
  :root { --footer-h: 36px; }
  .workspace { height: calc(100vh - 60px - var(--footer-h)); }
  .sidebar { bottom: var(--footer-h); }
  .top-actions .help-btn { display: inline-flex; width: 40px; padding: 0; }
  .top-actions .help-btn span { display: none; }
  .app-footer { font-size: 10px; padding: 0 10px; }
  .app-footer-links button:first-child { display: none; }
  .help-dialog { width: calc(100vw - 12px); max-height: 92vh; border-radius: 14px; }
  .help-shell { max-height: 92vh; }
  .help-header, .help-search, .help-body, .help-footer { padding-left: 14px; padding-right: 14px; }
  .help-search svg { left: 25px; }
  .help-toggle-all span { display: none; }
  .help-content { padding-left: 16px; }
  .help-grid { grid-template-columns: 1fr; gap: 2px; }
  .help-grid dd { margin-bottom: 6px; }
}

/* Tarjeta «Uso sin conexión» (paquete de relieve, geología e imágenes locales) */
.offline-pack .offline-text { margin: 2px 0 10px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.offline-status { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 11.5px; color: #d3e2e8; }
.offline-status svg { width: 15px; color: var(--aqua); flex: none; }
.offline-status.done { border-color: rgba(73,214,197,.35); background: rgba(73,214,197,.07); }
.offline-bar { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.offline-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--aqua), var(--gold)); transition: width .3s ease; }
.offline-actions { display: flex; gap: 6px; margin-top: 10px; }
.offline-actions .btn.primary { flex: 1; }
.offline-actions .btn[disabled] { opacity: .55; cursor: progress; }
.offline-note { display: block; margin-top: 9px; color: var(--muted-2); font-size: 10px; line-height: 1.4; }
