/* Estilos de cada manual (antes incrustados en single-tulogica_manual.php).
   Archivo aparte para que el navegador lo guarde y no lo vuelva a descargar en cada manual. */
/* ── Progreso de lectura ── */
.manual-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 9999; pointer-events: none; }
.manual-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563EB, #7AA8FF); transition: width .1s linear; }

/* ── Cabecera ── */
.manual-hero { padding-top: 56px; padding-bottom: 40px; position: relative; overflow: hidden; }
.manual-container { max-width: 1080px; position: relative; z-index: 1; }
.manual-breadcrumb { font-size: 13px; color: #93aac0; margin-bottom: 20px; }
.manual-breadcrumb a { color: inherit; text-decoration: none; }
.manual-breadcrumb a:hover { color: #2563EB; }
.manual-breadcrumb span { margin: 0 6px; }

.manual-header { display: flex; gap: 18px; align-items: flex-start; }
.manual-title { margin-bottom: 6px; }
.manual-excerpt { color: #a8bdd0; font-size: 15px; margin: 0; max-width: 62ch; }
.manual-header-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  color: #2563EB;
  display: flex; align-items: center; justify-content: center;
}
.manual-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: #a8bdd0; align-items: center; }
.manual-meta span { display: flex; align-items: center; gap: 5px; }
.manual-level { padding: 3px 10px; border-radius: 100px; font-weight: 600; font-size: 11.5px; }
.manual-level--basico { background: rgba(16,185,129,.12); color: #10b981; }
.manual-level--intermedio { background: rgba(245,158,11,.12); color: #f59e0b; }
.manual-level--avanzado { background: rgba(239,68,68,.12); color: #ef4444; }

/* ── Layout con índice lateral ── */
.manual-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; }
.manual-main { min-width: 0; }

.manual-toc { position: sticky; top: 96px; font-size: 13.5px; }
.manual-toc-title {
  display: block; width: 100%; text-align: left;
  font-weight: 700; margin: 0 0 12px; color: #dceeff; font-size: 13px;
  background: none; border: 0; padding: 0; font-family: inherit;
  cursor: default;
}
.manual-toc-caret { display: none; float: right; transition: transform .2s ease; }
.manual-toc-title:focus-visible { outline: 2px solid #7AA8FF; outline-offset: 3px; }
.manual-toc-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(37,99,235,.18); }
.manual-toc-list li { margin: 0; }
.manual-toc-list a {
  display: flex; gap: 9px; align-items: baseline;
  padding: 7px 12px; margin-left: -1px;
  color: #93aac0; text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.manual-toc-list a:hover { color: #dceeff; }
.manual-toc-list a.is-current { color: #7AA8FF; border-left-color: #7AA8FF; font-weight: 600; }
.manual-toc-num { flex-shrink: 0; opacity: .6; font-variant-numeric: tabular-nums; }
.manual-toc-list a.is-done .manual-toc-num { color: #10b981; opacity: 1; }
.manual-toc-done { margin: 16px 0 0; padding-left: 12px; font-size: 12.5px; color: #a8bdd0; }
.manual-toc-done-num { font-weight: 700; color: #10b981; }
.manual-toc-reset {
  display: block; margin-top: 6px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: #93aac0; font-size: 12px; text-decoration: underline;
}
.manual-toc-reset:hover { color: #dceeff; }

/* ── Contenido ── */
.manual-content { font-size: 15.5px; line-height: 1.75; max-width: 68ch; }
.manual-content h2 { font-size: 22px; margin: 40px 0 14px; color: #e8f4ff; scroll-margin-top: 88px; }
.manual-content h2:first-child { margin-top: 0; }
.manual-content h3 { font-size: 18px; margin: 28px 0 12px; color: #dceeff; scroll-margin-top: 88px; }
.manual-content p { margin-bottom: 16px; color: #c3d6e8; }
.manual-content ul, .manual-content ol { margin: 0 0 16px 22px; color: #c3d6e8; }
.manual-content li { margin-bottom: 6px; }
.manual-content strong { color: #f0f8ff; }
.manual-content em { color: #dceeff; }
.manual-content a { color: #7AA8FF; }
.manual-content code { background: rgba(37,99,235,.1); padding: 2px 6px; border-radius: 4px; font-size: 13.5px; }
.manual-content pre { background: rgba(0,0,0,.3); padding: 16px; border-radius: 10px; overflow-x: auto; margin: 16px 0; }
.manual-content .manual-tabla { overflow-x: auto; margin: 18px 0; border: 1px solid rgba(148,163,184,.22); border-radius: 12px; }
.manual-content .manual-tabla table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.manual-content .manual-tabla th { text-align: left; font-weight: 700; padding: 11px 14px; background: rgba(37,99,235,.12); }
.manual-content .manual-tabla td { padding: 10px 14px; border-top: 1px solid rgba(148,163,184,.18); vertical-align: top; }
.manual-content .manual-tabla code { white-space: nowrap; }
.manual-content pre code { background: none !important; padding: 0; border-radius: 0; font-size: 13px; line-height: 1.6; }
@media (max-width: 640px) {
  .manual-content .manual-tabla--tarjetas { border: 0; overflow: visible; }
  .manual-content .manual-tabla--tarjetas table { min-width: 0; }
  .manual-content .manual-tabla--tarjetas thead { display: none; }
  .manual-content .manual-tabla--tarjetas tr { display: block; margin: 0 0 12px; border: 1px solid rgba(148,163,184,.22); border-radius: 12px; padding: 6px 0; }
  .manual-content .manual-tabla--tarjetas td { display: block; border: 0 !important; padding: 5px 14px; }
  .manual-content .manual-tabla--tarjetas td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .6; margin-bottom: 1px; }
  .manual-content .manual-tabla--tarjetas td:first-child { font-size: 16px; }
}
html[data-theme="light"] .manual-content .manual-tabla--tarjetas tr { border-color: rgba(15,23,42,.12); }
/* Glosario: términos con explicación al pasar el mouse o tocar */
.manual-content .mg { position: relative; border-bottom: 1.5px dotted rgba(122N85,.85); cursor: help; outline: none; }
.manual-content .mg:focus-visible { border-radius: 3px; box-shadow: 0 0 0 2px rgba(122N85,.5); }
.manual-content .mg-pop { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: max-content; max-width: min(280px, 80vw); padding: 10px 12px; border-radius: 10px; background: #0b1324; color: #cbd5e1; border: 1px solid rgba(122N85,.35); box-shadow: 0 12px 30px rgba(0,0,0,.45); font-size: 13px; line-height: 1.5; font-weight: 400; font-style: normal; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; display: none; pointer-events: none; z-index: 60; }
.manual-content .mg-pop b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.manual-content .mg-pop::after { content: ""; position: absolute; left: var(--mg-flecha, 50%); top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #0b1324; }
.manual-content .mg.mg--abajo .mg-pop { bottom: auto; top: calc(100% + 10px); }
.manual-content .mg.mg--abajo .mg-pop::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #0b1324; }
.manual-content .mg:hover .mg-pop, .manual-content .mg:focus .mg-pop, .manual-content .mg.is-open .mg-pop { display: block; transform: translateX(-50%); animation: mgIn .15s ease-out; }
@keyframes mgIn { from { opacity: 0; } to { opacity: 1; } }
.manual-content .mg-muestra { border-bottom: 1.5px dotted rgba(122N85,.85); }
.manual-content dl.manual-glosario { margin: 8px 0 24px; }
.manual-content dl.manual-glosario dt { font-weight: 700; margin-top: 14px; scroll-margin-top: 100px; }
.manual-content dl.manual-glosario dd { margin: 2px 0 0; opacity: .85; }
.manual-content dl.manual-glosario dt:target { color: #7aa8ff; }
html[data-theme="light"] .manual-content .mg { border-bottom-color: rgba(37,99,235,.7); }
html[data-theme="light"] .manual-content .mg-pop { background: #fff; color: #334155; border-color: #cbd5e1; box-shadow: 0 12px 30px rgba(15,23,42,.18); }
html[data-theme="light"] .manual-content .mg-pop b { color: #0f172a; }
html[data-theme="light"] .manual-content .mg-pop::after { border-top-color: #fff; }
html[data-theme="light"] .manual-content .mg.mg--abajo .mg-pop::after { border-top-color: transparent; border-bottom-color: #fff; }
html[data-theme="light"] .manual-content .mg-muestra { border-bottom-color: rgba(37,99,235,.7); }
/* Asistente «¿Qué canal conecto?» */
.manual-content .mw { margin: 22px 0 28px; border-radius: 16px; border: 1px solid rgba(122N85,.35); background: linear-gradient(180deg, rgba(37,99,235,.12), rgba(37,99,235,.04)); overflow: hidden; }
.manual-content .mw-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid rgba(122N85,.2); }
.manual-content .mw-cab strong { font-size: 15px; }
.manual-content .mw-eti { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #2563eb; padding: 3px 8px; border-radius: 999px; }
.manual-content .mw-cuerpo { padding: 18px; min-height: 150px; }
.manual-content .mw-paso { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7aa8ff; }
.manual-content .mw-q { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.manual-content .mw-ayuda { margin: 0 0 10px; font-size: 13.5px; opacity: .8; }
.manual-content .mw-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 12px 0 6px; }
.manual-content .mw-op { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148,163,184,.3); background: rgba(15,23,42,.35); color: inherit; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.manual-content .mw-op:hover, .manual-content .mw-op:focus-visible { border-color: #7aa8ff; background: rgba(37,99,235,.22); transform: translateY(-1px); outline: none; }
.manual-content .mw-atras { margin: 10px 10px 0 0; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #a5c4ff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.manual-content .mw-atras:hover { background: rgba(122N85,.12); }
.manual-content .mw-res-t { margin: 2px 0 6px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.manual-content .mw-res-d { margin: 0 0 12px; }
.manual-content .mw-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.manual-content .mw-link { display: inline-block; padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1px solid rgba(122N85,.5); color: #c7d9ff; }
.manual-content .mw-link--1 { background: #2563eb; border-color: #2563eb; color: #fff; }
.manual-content a.mw-link:hover { filter: brightness(1.1); text-decoration: none; }
.manual-content .mw-pie { display: flex; flex-wrap: wrap; margin-bottom: 8px; }
@media (max-width: 560px) { .manual-content .mw-ops { grid-template-columns: 1fr; } .manual-content .mw-q { font-size: 16.5px; } }
html[data-theme="light"] .manual-content .mw { background: linear-gradient(180deg, #eef4ff, #f8fafc); border-color: #c7d9ff; }
html[data-theme="light"] .manual-content .mw-cab { border-bottom-color: #dfe9ff; }
html[data-theme="light"] .manual-content .mw-paso { color: #2563eb; }
html[data-theme="light"] .manual-content .mw-q, html[data-theme="light"] .manual-content .mw-res-t, html[data-theme="light"] .manual-content .mw-cab strong { color: #0f172a; }
.manual-content .mw { scroll-margin-top: 100px; }
html[data-theme="light"] .manual-content .mw-op { background: #fff; border-color: #cbd5e1; color: #0f172a; }
html[data-theme="light"] .manual-content .mw-op:hover, html[data-theme="light"] .manual-content .mw-op:focus-visible { background: #eef4ff; border-color: #457fed; }
html[data-theme="light"] .manual-content .mw-atras { color: #2b55c9; }
html[data-theme="light"] .manual-content .mw-link { color: #2b55c9; border-color: #a5c4ff; background: #fff; }
html[data-theme="light"] .manual-content .mw-link--1 { background: #2563eb; border-color: #2563eb; color: #fff; }
/* «Lo que vas a lograr» */
.manual-content .manual-logro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; margin: 0 0 26px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.25); }
.manual-content .ml-item { padding: 14px 16px; background: #07120d; }
.manual-content .ml-item p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
.manual-content .ml-item--meta p { font-weight: 600; color: #fff; }
.manual-content .ml-eti { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4ade80; }
.manual-content .ml-item:not(.ml-item--meta) .ml-eti { color: #94a3b8; }
@media (max-width: 640px) { .manual-content .manual-logro { grid-template-columns: 1fr; } }
html[data-theme="light"] .manual-content .manual-logro { border-color: #bbf7d0; background: #bbf7d0; }
html[data-theme="light"] .manual-content .ml-item { background: #fff; }
html[data-theme="light"] .manual-content .ml-item--meta { background: #f0fdf4; }
html[data-theme="light"] .manual-content .ml-item--meta p { color: #14532d; }
html[data-theme="light"] .manual-content .ml-eti { color: #15803d; }
html[data-theme="light"] .manual-content .ml-item:not(.ml-item--meta) .ml-eti { color: #64748b; }

/* Video del manual: se carga al pulsar */
.manual-content .manual-video { margin: 0 0 26px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(122N85,.3); aspect-ratio: 16 / 9; background: #000; position: relative; max-width: 720px; }
.manual-content .mv-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.manual-content .mv-play img { width: 100%; height: 100%; object-fit: cover; opacity: .75; cursor: pointer; transition: opacity .2s; }
.manual-content .mv-play:hover img { opacity: .9; }
.manual-content .mv-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.45); white-space: nowrap; }
.manual-content .manual-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Capturas numeradas: los números de la imagen se pueden tocar */
.manual-content .mp-punto { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; z-index: 3; }
.manual-content .mp-punto::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(250,204,21,.0); transition: box-shadow .2s; }
.manual-content .mp-punto:hover::after, .manual-content .mp-punto:focus-visible::after, .manual-content .mp-punto.is-pulso::after { box-shadow: 0 0 0 4px rgba(250,204,21,.95), 0 0 18px 6px rgba(250,204,21,.55); }
.manual-content .mp-punto.is-pulso::after { animation: mpPulso 1s ease-in-out infinite; }
@keyframes mpPulso { 50% { box-shadow: 0 0 0 7px rgba(250,204,21,.5), 0 0 22px 8px rgba(250,204,21,.35); } }
.manual-content li.mp-li { transition: background .3s; border-radius: 8px; cursor: default; }
.manual-content li.mp-li.is-foco { background: rgba(250,204,21,.16); box-shadow: -6px 0 0 rgba(250,204,21,.16), 6px 0 0 rgba(250,204,21,.16); }
.manual-content .mp-aviso { margin: 8px 0 0; font-size: 12.5px; opacity: .75; text-align: center; }
html[data-theme="light"] .manual-content li.mp-li.is-foco { background: #fef9c3; box-shadow: -6px 0 0 #fef9c3, 6px 0 0 #fef9c3; }

/* Casos por rubro: etiquetas sugeridas */
.manual-content .caso-etis { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.manual-content .caso-eti { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(245,158,11,.14); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }
html[data-theme="light"] .manual-content .caso-eti { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.manual-content blockquote { border-left: 3px solid #2563EB; padding-left: 16px; color: #a8bdd0; margin: 16px 0; }

/* Encabezado de paso con marcador clicable */
.manual-content h2.is-step { display: flex; align-items: center; gap: 12px; }
.manual-step-check {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(37,99,235,.45);
  background: rgba(37,99,235,.08);
  color: #2563EB;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.manual-step-check:hover { border-color: #2563EB; background: rgba(37,99,235,.18); }
.manual-step-check[aria-pressed="true"] { background: #10b981; border-color: #10b981; color: #fff; }
.manual-content h2.is-done .manual-step-text { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }


/* ── Selector de método (manuales con rutas alternativas) ── */
.manual-content .manual-picker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin: 24px 0 32px;
}
.manual-content .manual-picker-card {
  display: block; padding: 16px 17px;
  border-radius: 12px; text-decoration: none;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.04);
  transition: border-color .15s ease, background .15s ease;
}
.manual-content .manual-picker-card:hover { border-color: rgba(37,99,235,.45); background: rgba(37,99,235,.09); }
.manual-content .manual-picker-card--rec { border-color: rgba(122,168,255,.4); background: rgba(122,168,255,.06); }
.manual-content .manual-picker-card--rec:hover { border-color: #7AA8FF; background: rgba(122,168,255,.12); }
.manual-content .manual-picker-tag {
  display: inline-block; margin-bottom: 7px;
  padding: 2px 9px; border-radius: 100px;
  background: rgba(122,168,255,.16); color: #7AA8FF;
  font-size: 11px; font-weight: 700;
}
.manual-content .manual-picker-card strong { display: block; color: #f0f8ff; font-size: 15px; margin-bottom: 5px; }
.manual-content .manual-picker-card span { display: block; color: #a8bdd0; font-size: 13px; line-height: 1.5; }
.manual-content .manual-picker-card:focus-visible { outline: 2px solid #7AA8FF; outline-offset: 2px; }

/* Subpasos dentro de una opción */
.manual-content h3.is-step { display: flex; align-items: center; gap: 11px; }
.manual-content h3.is-done .manual-step-text { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }

/* ── Capturas ──
   La captura se presenta como una ventana con algo de elevación, para
   que se lea como "otra pantalla" y no como parte del texto. Sin
   perspectiva ni rotación: el lector la compara con su propia pantalla
   y cualquier deformación estorba. */
.manual-content figure.manual-shot { margin: 26px 0; }
.manual-shot-frame {
  position: relative; display: block;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(2,4,10,.4);
  box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 12px 28px -12px rgba(0,0,0,.55);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.manual-shot-frame:hover {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 20px 38px -14px rgba(0,0,0,.6);
}
.manual-content img,
.manual-shot img {
  max-width: 100%; height: auto; display: block;
  border-radius: 0; border: 0;
}
.manual-shot img { cursor: zoom-in; }

/* Número del paso al que pertenece la captura */
.manual-shot-num {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 100px;
  background: rgba(2,4,10,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(122,168,255,.45);
  color: #7AA8FF; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* Aviso de que se puede ampliar */
.manual-shot-zoom {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(2,4,10,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14);
  color: #dceeff; font-size: 12px; font-weight: 600;
  opacity: 0; transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.manual-shot-frame:hover .manual-shot-zoom,
.manual-shot-frame:focus-within .manual-shot-zoom { opacity: 1; transform: translateY(0); }
/* En pantallas táctiles no hay hover, así que se muestra siempre */
@media (hover: none) {
  .manual-shot-zoom { opacity: 1; transform: none; }
}

.manual-shot figcaption { margin-top: 10px; font-size: 13px; color: #93aac0; line-height: 1.55; }

/* ── Nota destacada ── */
/* Configuración extra plegable */
.manual-content details.manual-extra { margin: 12px 0; border: 1px solid rgba(148,163,184,.25); border-radius: 12px; background: rgba(148,163,184,.05); }
.manual-content details.manual-extra > summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.manual-content details.manual-extra > summary::-webkit-details-marker { display: none; }
.manual-content details.manual-extra > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; opacity: .7; }
.manual-content details.manual-extra[open] > summary::after { content: "−"; }
.manual-content details.manual-extra > summary span { font-weight: 500; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: rgba(37,99,235,.14); color: #93b4ff; }
.manual-content details.manual-extra > summary:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; border-radius: 12px; }
.manual-content details.manual-extra > :not(summary) { margin-left: 16px; margin-right: 16px; }
.manual-content details.manual-extra[open] { padding-bottom: 6px; }
html[data-theme="light"] .manual-content details.manual-extra { background: #f8fafc; border-color: #e2e8f0; }
/* Tarjeta «Atiende también desde tu celular» */
.manual-content .manual-app { margin: 36px 0 8px; padding: 22px; border-radius: 18px; border: 1px solid rgba(34,211,238,.35); background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(34,211,238,.08)); position: relative; overflow: hidden; }
.manual-content .manual-app::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); pointer-events: none; }
.manual-content .manual-app p { margin: 0; }
.manual-content .mapp-cab { display: flex; gap: 14px; align-items: flex-start; }
.manual-content .mapp-icono { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2563EB, #22d3ee); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.35); }
.manual-content .mapp-eti { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #22d3ee; }
.manual-content .mapp-tit { font-size: 1.25em; font-weight: 800; line-height: 1.25; margin-top: 2px !important; }
.manual-content .mapp-sub { margin-top: 6px !important; opacity: .88; font-size: .95em; }
.manual-content ol.mapp-pasos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; counter-reset: none; }
.manual-content ol.mapp-pasos li { margin: 0; padding: 12px; border-radius: 12px; background: rgba(15,23,42,.45); border: 1px solid rgba(148,163,184,.2); display: flex; gap: 10px; align-items: flex-start; position: relative; }
.manual-content ol.mapp-pasos li::before { display: none; }
.manual-content .mapp-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #22d3ee; color: #04121c; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.manual-content .mapp-ico { color: #93b4ff; flex: 0 0 auto; line-height: 0; margin-top: 2px; }
.manual-content .mapp-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.manual-content .mapp-t b { font-size: .92em; line-height: 1.3; overflow-wrap: anywhere; }
.manual-content .mapp-t code { white-space: nowrap; font-size: .82em; padding: 1px 5px; }
.manual-content .mapp-t small { font-size: .8em; opacity: .75; line-height: 1.35; }
.manual-content .mapp-pie { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.manual-content a.mapp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #2563EB; color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: 0 6px 16px rgba(37,99,235,.35); transition: transform .15s, background .15s; }
.manual-content a.mapp-btn:hover { background: #2b55c9; transform: translateY(-1px); }
.manual-content .mapp-nota { font-size: .85em; opacity: .8; display: inline-flex; gap: 6px; align-items: center; }
.manual-content p.mapp-tiendas { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px !important; }
.manual-content a.mapp-tienda { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #0b1220; border: 1px solid rgba(148,163,184,.35); color: #fff !important; font-weight: 700; font-size: .92em; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.manual-content a.mapp-tienda:hover { border-color: #22d3ee; transform: translateY(-1px); }
html[data-theme="light"] .manual-content a.mapp-tienda { background: #0f172a; border-color: #0f172a; }
.manual-content .manual-app p.mapp-tiendas { margin: 14px 0 0 !important; }
/* Descarga: QR en computadora, solo el botón que corresponde en el celular */
.manual-content .mapp-descarga { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 12px 0 16px; }
.manual-content .manual-app .mapp-descarga { margin: 16px 0 0; }
.manual-content .manual-app .mapp-qr { max-width: 300px; }
.manual-content .manual-app .mapp-t code { font-size: .76em; padding: 1px 4px; }
.manual-content .manual-app .mapp-ico { display: none; }
.manual-content .mapp-descarga p.mapp-tiendas { flex: 0 0 auto; width: auto !important; }
html.tl-dev-pc .manual-content .manual-app .tl-copiar { display: none; }
.manual-content .mapp-qr { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid rgba(148,163,184,.28); background: rgba(148,163,184,.06); max-width: 420px; }
.manual-content .mapp-qr img { width: 112px !important; height: 112px !important; max-width: none !important; object-fit: contain; flex: 0 0 112px; background: #fff; padding: 6px; border-radius: 10px; margin: 0; box-shadow: none; }
.manual-content .mapp-qr p { margin: 0 !important; font-size: .88em; line-height: 1.45; }
.manual-content .mapp-descarga p.mapp-tiendas { flex-direction: column; margin: 0 !important; }
html.tl-dev-ios .manual-content .mapp-tienda--android,
html.tl-dev-android .manual-content .mapp-tienda--ios,
html.tl-dev-ios .manual-content .mapp-qr,
html.tl-dev-android .manual-content .mapp-qr { display: none; }
html.tl-dev-ios .manual-content .mapp-descarga p.mapp-tiendas,
html.tl-dev-android .manual-content .mapp-descarga p.mapp-tiendas { flex-direction: row; flex-wrap: wrap; width: 100% !important; }
html[data-theme="light"] .manual-content .mapp-qr { background: #fff; border-color: #e2e8f0; }
/* Copiar dirección */
.manual-content .tl-copia { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; white-space: nowrap; vertical-align: middle; }
.manual-content button.tl-copiar { font: 700 12px/1 inherit; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(34,211,238,.55); background: rgba(34,211,238,.12); color: #22d3ee; cursor: pointer; transition: background .15s; min-height: 0; text-transform: none; letter-spacing: 0; box-shadow: none; }
.manual-content button.tl-copiar:hover { background: rgba(34,211,238,.24); }
.manual-content button.tl-copiar.ok { background: #22c55e; border-color: #22c55e; color: #04121c; }
html[data-theme="light"] .manual-content button.tl-copiar { color: #0e7490; border-color: #67e8f9; background: #ecfeff; }
html[data-theme="light"] .manual-content button.tl-copiar.ok { color: #fff; background: #16a34a; border-color: #16a34a; }
/* Enviar al equipo */
.manual-content a.tl-compartir-wa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #1a9e50; color: #fff !important; font-weight: 700; font-size: .92em; text-decoration: none !important; transition: background .15s, transform .15s; }
.manual-content a.tl-compartir-wa:hover { background: #158a45; transform: translateY(-1px); }
.manual-content .tl-equipo { margin: 18px 0; padding: 16px; border-radius: 14px; border: 1px dashed rgba(37,211,102,.45); background: rgba(37,211,102,.06); }
.manual-content .tl-equipo p { margin: 0 0 12px !important; }
html[data-theme="light"] .manual-content .tl-equipo { background: #f0fdf4; border-color: #86efac; }
/* ¿Qué celular tienes? */
.manual-content .tl-marcas { margin: 14px 0 22px; padding: 16px; border-radius: 14px; border: 1px solid rgba(148,163,184,.28); background: rgba(148,163,184,.05); }
.manual-content .tl-marcas-preg { margin: 0 0 10px !important; font-weight: 700; }
.manual-content .tl-marcas-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.manual-content button.tl-marca-tab { font: 600 13px/1.2 inherit; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(148,163,184,.35); background: transparent; color: inherit; cursor: pointer; min-height: 0; text-transform: none; letter-spacing: 0; box-shadow: none; }
.manual-content button.tl-marca-tab[aria-selected="true"] { background: #2563EB; border-color: #2563EB; color: #fff; }
.manual-content .tl-marca-tit { font-weight: 700; margin: 14px 0 4px !important; }
.manual-content .tl-marcas.js .tl-marca-panel { display: none; }
.manual-content .tl-marcas.js .tl-marca-panel.on { display: block; animation: tlMarca .2s ease; }
.manual-content .tl-marcas.js .tl-marca-tit { display: none; }
.manual-content .tl-marcas:not(.js) .tl-marcas-tabs { display: none; }
.manual-content .tl-marca-panel ol { margin: 0 0 6px; }
.manual-content .tl-marcas-nota { margin: 6px 0 0 !important; font-size: .82em; opacity: .7; }
@keyframes tlMarca { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
html[data-theme="light"] .manual-content .tl-marcas { background: #f8fafc; border-color: #e2e8f0; }
@media (max-width: 640px) {
  .manual-content .manual-app { padding: 18px 16px; }
  .manual-content ol.mapp-pasos { grid-template-columns: 1fr; }
  .manual-content a.mapp-btn { width: 100%; justify-content: center; }
  .manual-content a.mapp-tienda { flex: 1 1 140px; justify-content: center; }
  .manual-content .mapp-qr { display: none; }
  .manual-content .mapp-descarga p.mapp-tiendas { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; width: 100% !important; }
  .manual-content a.tl-compartir-wa { width: 100%; justify-content: center; }
}
html[data-theme="light"] .manual-content .manual-app { background: linear-gradient(135deg, #eef4ff, #ecfeff); border-color: #a5f3fc; }
html[data-theme="light"] .manual-content ol.mapp-pasos li { background: #fff; border-color: #e2e8f0; }
html[data-theme="light"] .manual-content .mapp-eti { color: #0e7490; }
html[data-theme="light"] .manual-content .mapp-ico { color: #2563EB; }

html[data-theme="light"] .manual-content details.manual-extra > summary span { background: #eef4ff; color: #2b55c9; }
.manual-content .manual-note {
  margin: 20px 0; padding: 14px 16px;
  border-radius: 10px;
  background: rgba(122,168,255,.07);
  border: 1px solid rgba(122,168,255,.2);
  border-left-width: 3px;
}
.manual-content .manual-note p { margin: 0; color: #c3d6e8; font-size: 14.5px; }
.manual-content .manual-note p + p,
.manual-content .manual-note ul,
.manual-content .manual-note ol { margin-top: 10px; }
.manual-content .manual-note ul,
.manual-content .manual-note ol { margin-bottom: 0; margin-left: 20px; }
.manual-content .manual-note li { font-size: 14.5px; color: #c3d6e8; }

/* Nota de advertencia: acción sin vuelta atrás */
.manual-content .manual-note--danger {
  background: rgba(239,68,68,.07);
  border-color: rgba(239,68,68,.28);
}
.manual-content .manual-note--danger p,
.manual-content .manual-note--danger li { color: #f0cfcf; }

/* ── Ruta de una conversación por los filtros de la bandeja ── */
.manual-content .manual-ruta {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 26px;
}
.manual-content .manual-ruta-paso {
  position: relative;
  padding: 14px 15px 15px;
  border-radius: 12px;
  background: rgba(122,168,255,.05);
  border: 1px solid rgba(122,168,255,.16);
}
.manual-content .manual-ruta-paso::after {
  content: "→";
  position: absolute; right: -15px; top: 50%;
  transform: translateY(-50%);
  color: rgba(122,168,255,.6); font-size: 16px; line-height: 1;
}
.manual-content .manual-ruta-paso:last-child::after { content: none; }

.manual-content .manual-ruta-momento {
  margin: 0 0 5px !important;
  color: #fff; font-size: 14px; font-weight: 700; line-height: 1.35;
}
.manual-content .manual-ruta-desc {
  margin: 0 0 12px !important;
  font-size: 13.5px; color: #93aac0; line-height: 1.5;
}
.manual-content .manual-ruta-chips { margin: 0; padding: 0; list-style: none; }
.manual-content .manual-ruta-chips li {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 6px; padding: 5px 9px;
  border-radius: 7px; font-size: 12.5px; line-height: 1.4;
  min-height: 38px; /* las tres filas quedan a la misma altura entre columnas */
}
.manual-content .manual-ruta-chips li:last-child { margin-bottom: 0; }
.manual-content .manual-ruta-marca { flex: none; width: 13px; text-align: center; font-weight: 700; }
.manual-content .manual-ruta-chips .is-si {
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.26); color: #86efac;
}
.manual-content .manual-ruta-chips .is-no {
  background: rgba(148,163,184,.06); border: 1px solid rgba(148,163,184,.16); color: #7d8fa3;
}
.manual-content .manual-ruta-chips .is-ojo {
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.42); color: #fbbf24; font-weight: 600;
}

@media (max-width: 760px) {
  .manual-content .manual-ruta { grid-template-columns: 1fr; gap: 26px; }
  .manual-content .manual-ruta-chips li { min-height: 0; }
  .manual-content .manual-ruta-paso::after {
    content: "↓"; right: auto; left: 50%; top: auto; bottom: -21px;
    transform: translateX(-50%);
  }
}

/* ── Dos capturas enfrentadas (comparación) ── */
.manual-content .manual-par {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 24px 0 28px; align-items: start;
}
.manual-content .manual-par > figure {
  margin: 0; padding: 12px; border-radius: 14px;
  background: rgba(122,168,255,.05);
  border: 1px solid rgba(122,168,255,.16);
}
.manual-content .manual-par > figure.es-destacada {
  background: rgba(37,99,235,.13);
  border-color: rgba(122,168,255,.45);
}
.manual-content .manual-par-eti {
  display: block; margin: 0 0 9px;
  color: #fff; font-weight: 700; font-size: 14px; line-height: 1.35;
}
.manual-content .manual-par-eti small {
  display: block; margin-top: 2px;
  color: #9db3c9; font-weight: 500; font-size: 12.5px;
}
.manual-content .manual-par img {
  width: 100%; height: auto; display: block; border-radius: 9px;
  border: 1px solid rgba(122,168,255,.14);
}
.manual-content .manual-par figcaption {
  margin-top: 9px; font-size: 12.5px; color: #93aac0; line-height: 1.5;
}
.manual-content .manual-par.es-tres { grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) {
  .manual-content .manual-par.es-tres { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .manual-content .manual-par { grid-template-columns: 1fr; gap: 12px; }
  .manual-content .manual-par.es-tres { grid-template-columns: 1fr; }
}

/* ── Recorrido de una conversación (diagrama de pasos) ── */
.manual-content .manual-ruta {
  display: flex; flex-wrap: nowrap; align-items: stretch;
  gap: 8px; margin: 24px 0 26px; padding: 0; list-style: none;
}
.manual-content .manual-ruta-paso {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 12px; border-radius: 12px;
  background: rgba(122,168,255,.06);
  border: 1px solid rgba(122,168,255,.16);
  text-align: center;
}
.manual-content .manual-ruta-num {
  align-self: center;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(122,168,255,.16); color: #a5c4ff;
  font-size: 11.5px; font-weight: 700; margin-bottom: 2px;
}
.manual-content .manual-ruta-tit {
  color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.35;
}
.manual-content .manual-ruta-txt {
  color: #9db3c9; font-size: 12.5px; line-height: 1.5;
}
.manual-content .manual-ruta-sep {
  flex: 0 0 auto; align-self: center;
  color: rgba(122,168,255,.55); font-size: 18px; line-height: 1;
}
/* El paso donde queda la conversación esperando */
.manual-content .manual-ruta-paso.es-clave {
  background: rgba(37,99,235,.16);
  border-color: rgba(122,168,255,.55);
  box-shadow: 0 0 0 1px rgba(122,168,255,.18), 0 6px 20px -8px rgba(37,99,235,.7);
}
.manual-content .manual-ruta-paso.es-clave .manual-ruta-num {
  background: linear-gradient(135deg, #2563EB, #7AA8FF); color: #fff;
}
@media (max-width: 720px) {
  .manual-content .manual-ruta { flex-direction: column; gap: 4px; }
  .manual-content .manual-ruta-paso { flex: none; text-align: left; padding: 12px 14px; }
  .manual-content .manual-ruta-num { align-self: flex-start; }
  .manual-content .manual-ruta-sep { transform: rotate(90deg); margin: 1px 0; }
}

/* ── Bloque de alcance limitado (p. ej. solo Marca Blanca) ── */
.manual-content .manual-scope {
  margin: 30px 0;
  padding: 2px 22px 20px;
  border-left: 3px solid rgba(245,158,11,.55);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(245,158,11,.075), rgba(245,158,11,0) 65%);
}
.manual-content .manual-scope > h3 { margin-top: 12px; }
.manual-content .manual-scope > p:last-child { margin-bottom: 0; }

.manual-content .manual-scope-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.34);
  color: #fbbf24;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.4; white-space: nowrap;
}
.manual-content .manual-scope-tag svg { flex: none; }
.manual-content .manual-scope > p:first-child { margin: 18px 0 0; }

@media (max-width: 600px) {
  .manual-content .manual-scope { padding: 2px 15px 16px; }
  .manual-content .manual-scope-tag { font-size: 10.5px; letter-spacing: .04em; }
}

/* ── Hoja de ruta numerada ── */
.manual-content ol.manual-steps {
  counter-reset: tlpaso; list-style: none;
  margin: 20px 0 24px; padding: 0;
}
.manual-content ol.manual-steps > li {
  counter-increment: tlpaso;
  position: relative; margin: 0 0 10px; padding: 12px 16px 12px 52px;
  border-radius: 10px;
  background: rgba(122,168,255,.05);
  border: 1px solid rgba(122,168,255,.14);
  font-size: 14.5px; line-height: 1.6;
}
.manual-content ol.manual-steps > li::before {
  content: counter(tlpaso);
  position: absolute; left: 14px; top: 11px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563EB, #7AA8FF);
  color: #fff; font-size: 13px; font-weight: 700;
}
@media (max-width: 600px) {
  .manual-content ol.manual-steps > li { padding: 11px 13px 11px 46px; }
  .manual-content ol.manual-steps > li::before { left: 11px; width: 24px; height: 24px; font-size: 12px; }
}

/* ── Copiar código ── */
.manual-pre-wrap { position: relative; }
.manual-copy {
  position: absolute; top: 10px; right: 10px;
  padding: 5px 11px; border-radius: 7px;
  border: 1px solid rgba(37,99,235,.3);
  background: rgba(2,4,10,.7); color: #a8bdd0;
  font-size: 12px; cursor: pointer;
}
.manual-copy:hover { color: #fff; border-color: #2563EB; }

/* ── Feedback ── */
.manual-feedback {
  margin-top: 48px; padding: 22px 24px;
  border-radius: 14px;
  background: rgba(37,99,235,.05);
  border: 1px solid rgba(37,99,235,.14);
  max-width: 68ch;
}
.manual-feedback-q { font-weight: 600; margin: 0 0 14px; color: #e8f4ff; }
.manual-feedback-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.manual-feedback-msg { margin: 0 0 12px; color: #c3d6e8; }
.manual-feedback-detalle { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 12px; }
/* El atributo hidden aplica display:none desde la hoja del navegador,
   que pierde contra la regla de arriba. Sin esto, el bloque no se
   oculta nunca. */
.manual-feedback-detalle[hidden] { display: none; }
.manual-feedback-campo { display: flex; flex-direction: column; gap: 6px; }
.manual-feedback-campo > span { font-size: 13px; color: #a8bdd0; }
.manual-feedback-paso,
.manual-feedback-texto {
  width: 100%; padding: 10px 12px;
  border-radius: 9px; font-family: inherit; font-size: 14px;
  background: rgba(2,4,10,.45); color: #dceeff;
  border: 1px solid rgba(37,99,235,.25);
}
.manual-feedback-texto { resize: vertical; min-height: 68px; }
.manual-feedback-paso:focus, .manual-feedback-texto:focus { outline: none; border-color: #7AA8FF; }
.manual-feedback-enviar { align-self: flex-start; }
html[data-theme="light"] .manual-feedback-campo > span { color: #64748b !important; }
html[data-theme="light"] .manual-feedback-paso,
html[data-theme="light"] .manual-feedback-texto { background: #fff !important; color: #0f172a !important; }

/* ── Navegación entre manuales ── */
.manual-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 68ch; }
.manual-nav-card {
  display: block; padding: 15px 18px;
  border-radius: 12px; text-decoration: none;
  border: 1px solid rgba(37,99,235,.16);
  background: rgba(37,99,235,.04);
  transition: border-color .15s ease, background .15s ease;
}
.manual-nav-card:hover { border-color: rgba(37,99,235,.42); background: rgba(37,99,235,.09); }
.manual-nav-next { text-align: right; }
.manual-nav-label { display: block; font-size: 12px; color: #93aac0; margin-bottom: 4px; }
.manual-nav-title { display: block; font-weight: 600; color: #dceeff; font-size: 14.5px; line-height: 1.4; }
.manual-back { margin-top: 26px; font-size: 14px; }
.manual-back a { color: #93aac0; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.manual-back a:hover { color: #7AA8FF; }

/* ── Lightbox ── */
.manual-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(2,4,10,.93);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 32px;
}
.manual-lightbox[hidden] { display: none; }
.manual-lightbox-stage {
  flex: 1 1 auto; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: auto; -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}
.manual-lightbox-img { max-width: 100%; max-height: 76vh; border-radius: 10px; object-fit: contain; }
/* Modo tamaño real: la imagen se muestra sin reducir y el contenedor
   se desplaza. Es la única forma de leer una captura de escritorio en
   una pantalla de teléfono. */
.manual-lightbox.is-zoom .manual-lightbox-stage { align-items: flex-start; justify-content: flex-start; cursor: grab; }
.manual-lightbox.is-zoom .manual-lightbox-stage:active { cursor: grabbing; }
.manual-lightbox.is-zoom .manual-lightbox-img { max-width: none; max-height: none; width: auto; border-radius: 0; }

.manual-lightbox-bar { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.manual-lightbox-zoom {
  padding: 9px 18px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.manual-lightbox-zoom:hover { background: rgba(255,255,255,.18); }
.manual-lightbox.is-zoom .manual-lightbox-zoom { background: #2563EB; border-color: #2563EB; }
.manual-lightbox-zoom:focus-visible { outline: 2px solid #7AA8FF; outline-offset: 2px; }
.manual-lightbox-caption { color: #c3d6e8; font-size: 14px; margin: 0; text-align: center; max-width: 62ch; }
.manual-lightbox-count {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  color: #93aac0; font-size: 13px; font-variant-numeric: tabular-nums;
}
.manual-lightbox-nav {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.manual-lightbox-nav:hover { background: rgba(255,255,255,.16); }
.manual-lightbox-nav[disabled] { opacity: .25; cursor: default; }
.manual-lightbox-nav:focus-visible { outline: 2px solid #7AA8FF; outline-offset: 2px; }
@media (max-width: 560px) {
  .manual-lightbox { padding: 16px 10px 20px; gap: 10px; }
  .manual-lightbox-nav { width: 42px; height: 42px; }
  .manual-lightbox-caption { font-size: 13px; }
  .manual-lightbox-close { top: 10px; right: 10px; }
  .manual-lightbox-count { top: 18px; }
}
.manual-lightbox-close {
  position: absolute; top: 20px; right: 22px;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.manual-lightbox-close:hover { background: rgba(255,255,255,.16); }

/* ── Foco visible ── */
.manual-toc-list a:focus-visible,
.manual-step-check:focus-visible,
.manual-copy:focus-visible,
.manual-vote:focus-visible,
.manual-nav-card:focus-visible,
.manual-lightbox-close:focus-visible { outline: 2px solid #7AA8FF; outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .manual-layout { grid-template-columns: 1fr; gap: 0; }
  /* En móvil el índice va plegado: con 12 pasos, desplegado empujaba
     todo el contenido fuera de la primera pantalla. */
  .manual-toc {
    position: static; margin-bottom: 26px; padding: 14px 16px;
    border: 1px solid rgba(37,99,235,.18); border-radius: 12px;
    background: rgba(37,99,235,.04);
  }
  .manual-toc-title { margin: 0; cursor: pointer; font-size: 14px; }
  .manual-toc-caret { display: inline-block; }
  .manual-toc[data-open="false"] .manual-toc-caret { transform: rotate(-90deg); }
  .manual-toc[data-open="false"] .manual-toc-list,
  .manual-toc[data-open="false"] .manual-toc-done { display: none; }
  .manual-toc-list { margin-top: 12px; }
  .manual-content, .manual-feedback, .manual-nav { max-width: 100%; }
}
@media (max-width: 560px) {
  /* Las capturas son de escritorio: en un teléfono se ven muy reducidas,
     así que el aviso de ampliar tiene que ser evidente. */
  /* Objetivos táctiles: 30px es cómodo con ratón, no con el dedo. */
  .manual-step-check { width: 38px; height: 38px; font-size: 16px; }
  .manual-toc-list a { padding: 11px 12px; }
  .manual-feedback-btns .btn { min-height: 44px; }
  .manual-shot-num { top: 7px; left: 7px; height: 22px; font-size: 11px; padding: 0 7px; }
  .manual-shot-zoom { bottom: 7px; right: 7px; padding: 6px 12px; font-size: 12.5px; opacity: 1; transform: none; }
  .manual-shot-frame:hover { transform: none; }
  .manual-content figure.manual-shot { margin: 20px 0; }
  .manual-nav { grid-template-columns: 1fr; }
  .manual-nav-next { text-align: left; }
  .manual-header { gap: 14px; }
  .manual-content h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .manual-progress-bar, .manual-step-check, .manual-nav-card { transition: none; }
}

/* ── Modo claro ── */
html[data-theme="light"] .manual-content h2,
html[data-theme="light"] .manual-content h3,
html[data-theme="light"] .manual-feedback-q { color: #0f172a !important; }
html[data-theme="light"] .manual-content p,
html[data-theme="light"] .manual-content ul,
html[data-theme="light"] .manual-content ol,
html[data-theme="light"] .manual-content blockquote,
html[data-theme="light"] .manual-content .manual-note p,
html[data-theme="light"] .manual-content .manual-note li,
html[data-theme="light"] .manual-content ol.manual-steps > li,
html[data-theme="light"] .manual-feedback-msg { color: #475569 !important; }
html[data-theme="light"] .manual-content .manual-note--danger p,
html[data-theme="light"] .manual-content .manual-note--danger li { color: #9f1239 !important; }
html[data-theme="light"] .manual-content .manual-note--danger { background: rgba(239,68,68,.06); }
html[data-theme="light"] .manual-content ol.manual-steps > li { background: rgba(37,99,235,.05); }
html[data-theme="light"] .manual-content .manual-ruta-paso { background: rgba(37,99,235,.045); }
html[data-theme="light"] .manual-content .manual-ruta-momento { color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-ruta-desc { color: #64748b !important; }
html[data-theme="light"] .manual-content .manual-ruta-chips .is-si { color: #15803d !important; background: rgba(34,197,94,.13); }
html[data-theme="light"] .manual-content .manual-ruta-chips .is-no { color: #64748b !important; background: rgba(148,163,184,.12); }
html[data-theme="light"] .manual-content .manual-ruta-chips .is-ojo { color: #92400e !important; background: rgba(245,158,11,.16); }
html[data-theme="light"] .manual-content .manual-par-eti { color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-par-eti small { color: #64748b !important; }
html[data-theme="light"] .manual-content .manual-par > figure { background: rgba(37,99,235,.05); }
html[data-theme="light"] .manual-content .manual-par > figure.es-destacada { background: rgba(37,99,235,.1); }
html[data-theme="light"] .manual-content .manual-ruta-tit { color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-ruta-txt { color: #64748b !important; }
html[data-theme="light"] .manual-content .manual-ruta-paso { background: rgba(37,99,235,.05); }
html[data-theme="light"] .manual-content .manual-ruta-paso.es-clave { background: rgba(37,99,235,.11); }
html[data-theme="light"] .manual-content .manual-scope { background: linear-gradient(90deg, rgba(245,158,11,.09), rgba(245,158,11,0) 65%); }
html[data-theme="light"] .manual-content .manual-scope-tag { color: #92400e !important; background: rgba(245,158,11,.18); }
html[data-theme="light"] .manual-content strong { color: #0f172a !important; }
html[data-theme="light"] .manual-content em { color: #334155 !important; }
html[data-theme="light"] .manual-content code { background: rgba(37,99,235,.08) !important; }
html[data-theme="light"] .manual-breadcrumb,
html[data-theme="light"] .manual-meta,
html[data-theme="light"] .manual-excerpt,
html[data-theme="light"] .manual-shot figcaption,
html[data-theme="light"] .manual-toc-done,
html[data-theme="light"] .manual-back a { color: #64748b !important; }
html[data-theme="light"] .manual-toc-title,
html[data-theme="light"] .manual-nav-title { color: #0f172a !important; }
html[data-theme="light"] .manual-toc-list a { color: #64748b !important; }
html[data-theme="light"] .manual-toc-list a.is-current { color: #2563EB !important; border-left-color: #2563EB !important; }
html[data-theme="light"] .manual-header-icon { background: rgba(37,99,235,.06) !important; border-color: rgba(37,99,235,.18) !important; }
html[data-theme="light"] .manual-content pre { background: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .manual-content .manual-tabla { border-color: rgba(15,23,42,.12); }
html[data-theme="light"] .manual-content .manual-tabla th { background: rgba(37,99,235,.08); color: #0f172a; }
html[data-theme="light"] .manual-content .manual-tabla td { border-top-color: rgba(15,23,42,.08); color: #1e293b; }
html[data-theme="light"] .manual-content .manual-picker-card strong { color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-picker-card span { color: #64748b !important; }
html[data-theme="light"] .manual-shot-frame {
  background: rgba(255,255,255,.6) !important;
  border-color: rgba(37,99,235,.16) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 12px 26px -14px rgba(15,23,42,.24) !important;
}
html[data-theme="light"] .manual-shot-frame:hover { border-color: rgba(37,99,235,.35) !important; }

/* ── El marco se ajusta a la captura ──
   Sin esto, una captura angosta quedaba pegada a la izquierda con una
   franja oscura vacía a la derecha. Ahora el marco mide lo que mide la
   imagen y se centra. */
.manual-content figure.manual-shot .manual-shot-frame {
  width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto;
}
.manual-content figure.manual-shot figcaption { text-align: center; }

/* ── Enlace a otro manual ── */
.manual-content a.manual-ref {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: baseline;
  padding: 1px 9px 1px 7px; border-radius: 100px; white-space: nowrap;
  background: rgba(37,99,235,.14); border: 1px solid rgba(122,168,255,.32);
  color: #cfe0ff; font-weight: 600; font-size: .92em; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.manual-content a.manual-ref:hover { background: rgba(37,99,235,.28); border-color: rgba(122,168,255,.6); color: #fff; }
.manual-content a.manual-ref svg { flex-shrink: 0; opacity: .85; }
/* En el celular, un título largo baja de línea en vez de salirse de la pantalla */
@media (max-width: 640px) { .manual-content a.manual-ref { white-space: normal; max-width: 100%; align-items: flex-start; } .manual-content a.manual-ref svg { margin-top: 2px; } }

/* ── Ruta de menú (Ajustes › Etiquetas) ── */
.manual-content .manual-menu {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; vertical-align: baseline;
}
.manual-content .manual-menu-item {
  padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: .92em; color: #eef4ff;
  background: rgba(148,163,184,.14); border: 1px solid rgba(148,163,184,.26);
}
.manual-content .manual-menu-sep { color: #7AA8FF; font-weight: 700; padding: 0 1px; }
.manual-content .manual-menu-tag {
  margin-left: 4px; padding: 1px 8px; border-radius: 100px; font-size: .72em; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #fde68a; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.45);
}
.manual-content a.manual-menu-tag:hover { background: rgba(245,158,11,.26); }

/* ── Antes de empezar ── */
.manual-content .manual-antes {
  margin: 20px 0 28px; padding: 16px 18px 12px; border-radius: 14px;
  background: rgba(15,23,42,.55); border: 1px solid rgba(122,168,255,.2);
  border-left: 4px solid #2563EB;
}
.manual-content .manual-antes-tit {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #93b4ff;
}
.manual-content .manual-antes ul { list-style: none; margin: 0; padding: 0; }
.manual-content .manual-antes li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin: 0; padding: 8px 0; border-top: 1px solid rgba(122,168,255,.1);
}
.manual-content .manual-antes li:first-child { border-top: 0; padding-top: 2px; }
.manual-content .manual-antes-chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-width: 170px;
  padding: 5px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 700; text-decoration: none;
  color: #e6eeff; background: rgba(37,99,235,.18); border: 1px solid rgba(122,168,255,.35);
}
a.manual-antes-chip:hover { background: rgba(37,99,235,.32); color: #fff; }
.manual-content .manual-antes-chip.es-modo { color: #fde68a; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.45); }
.manual-content .manual-antes-txt { font-size: 14px; color: #b8c9dc; line-height: 1.45; flex: 1 1 220px; }
.manual-content .manual-antes-txt a { color: #fcd34d; }

/* ── ¿Y ahora? ── */
.manual-content .manual-despues { margin: 40px 0 8px; padding-top: 26px; border-top: 1px solid rgba(122,168,255,.16); }
.manual-content .manual-despues-tit { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: #f0f8ff; }
.manual-content .manual-despues-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.manual-content a.manual-despues-card {
  position: relative; display: block; padding: 16px 44px 16px 18px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(15,23,42,.6));
  border: 1px solid rgba(122,168,255,.3); transition: transform .15s ease, border-color .15s ease;
}
.manual-content a.manual-despues-card:hover { transform: translateY(-2px); border-color: rgba(122,168,255,.65); }
.manual-content a.manual-despues-card strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.manual-content a.manual-despues-card span { display: block; color: #b8c9dc; font-size: 13.5px; line-height: 1.45; }
.manual-content a.manual-despues-card em {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 20px; color: #7AA8FF;
}

html[data-theme="light"] .manual-content a.manual-ref { background: #eaf1ff !important; border-color: rgba(37,99,235,.28) !important; color: #2b55c9 !important; }
html[data-theme="light"] .manual-content .manual-menu-item { background: #f1f5f9 !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-menu-sep { color: #2563EB !important; }
html[data-theme="light"] .manual-content .manual-menu-tag,
html[data-theme="light"] .manual-content .manual-antes-chip.es-modo { color: #92400e !important; background: #fef3c7 !important; border-color: #f59e0b !important; }
html[data-theme="light"] .manual-content .manual-antes { background: #f8fafc !important; border-color: #dbe4f0 !important; border-left-color: #2563EB !important; }
html[data-theme="light"] .manual-content .manual-antes-tit { color: #2b55c9 !important; }
html[data-theme="light"] .manual-content .manual-antes-chip { background: #eaf1ff !important; color: #1a3273 !important; border-color: rgba(37,99,235,.3) !important; }
html[data-theme="light"] .manual-content .manual-antes-txt { color: #475569 !important; }
html[data-theme="light"] .manual-content .manual-antes-txt a { color: #b45309 !important; }
html[data-theme="light"] .manual-content .manual-despues-tit { color: #0f172a !important; }
html[data-theme="light"] .manual-content a.manual-despues-card { background: linear-gradient(135deg, #eaf1ff, #fff) !important; border-color: rgba(37,99,235,.25) !important; }
html[data-theme="light"] .manual-content a.manual-despues-card strong { color: #0f172a !important; }
html[data-theme="light"] .manual-content a.manual-despues-card span { color: #475569 !important; }

/* ── Textos para copiar ── */
.manual-content .manual-copiar-grupo { display: grid; gap: 10px; margin: 16px 0 20px; }
.manual-content .manual-copiar {
  position: relative; margin: 12px 0; padding: 12px 104px 13px 16px; border-radius: 12px;
  background: rgba(2,6,16,.6); border: 1px solid rgba(122,168,255,.22);
  transition: border-color .2s ease, background .2s ease;
}
.manual-content .manual-copiar-grupo .manual-copiar { margin: 0; }
.manual-content .manual-copiar.is-copiado { border-color: rgba(34,197,94,.7); background: rgba(34,197,94,.08); }
.manual-content .manual-copiar-eti { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7AA8FF; margin-bottom: 5px; }
.manual-content .manual-copiar-nota { display: block; font-size: 12.5px; color: #93aac0; margin: -2px 0 8px; line-height: 1.45; }
.manual-content .manual-copiar-txt { color: #eef4ff; font-size: 14.5px; line-height: 1.6; }
.manual-content .manual-copiar-txt > div + div { margin-top: 4px; }
.manual-content .manual-copiar-tool {
  display: inline-block; padding: 0 7px; border-radius: 6px; font-weight: 600; font-size: .92em;
  color: #a5c4ff; background: rgba(37,99,235,.2); border: 1px dashed rgba(122,168,255,.55);
}
.manual-content .manual-copiar-btn {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  color: #fff; background: #2563EB; border: 0; transition: background .15s ease;
}
.manual-content .manual-copiar-btn:hover { background: #2b55c9; }
.manual-content .manual-copiar.is-copiado .manual-copiar-btn { background: #16a34a; }
@media (max-width: 560px) {
  .manual-content .manual-copiar { padding: 12px 14px 54px; }
  .manual-content .manual-copiar-btn { top: auto; bottom: 10px; right: 10px; }
}

/* ── Glosario ── */
.manual-content abbr.manual-glosa {
  position: relative; text-decoration: none; cursor: help;
  border-bottom: 1.5px dotted rgba(122,168,255,.8);
}
.manual-content abbr.manual-glosa:hover::after,
.manual-content abbr.manual-glosa:focus::after {
  content: attr(data-def); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20;
  width: max-content; max-width: 260px; padding: 9px 12px; border-radius: 10px;
  font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; letter-spacing: 0;
  color: #0f172a; background: #f8fafc; box-shadow: 0 10px 30px -8px rgba(0,0,0,.55);
  transform: translateX(-50%); pointer-events: none; animation: tl-glosa .15s ease;
}
@keyframes tl-glosa { from { opacity: 0; } to { opacity: 1; } }
.manual-content abbr.manual-glosa:focus { outline: none; background: rgba(122,168,255,.15); border-radius: 3px; }
@media (max-width: 760px) {
  .manual-content abbr.manual-glosa:hover::after,
  .manual-content abbr.manual-glosa:focus::after {
    position: fixed; left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none;
    transform: none; font-size: 14px; padding: 12px 14px;
  }
}

/* ── Ayuda contextual en el índice ── */
.manual-toc-ayuda {
  display: block; margin-top: 14px; padding: 11px 13px; border-radius: 12px; text-decoration: none;
  font-size: 13px; line-height: 1.4; color: #bbf7d0; background: rgba(22,163,74,.12); border: 1px solid rgba(34,197,94,.35);
}
.manual-toc-ayuda span { display: block; font-weight: 700; color: #fff; }
.manual-toc-ayuda:hover { background: rgba(22,163,74,.22); }
.manual-toc-glosario { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; color: #c7d9ff; text-decoration: none; background: rgba(69J77,.1); border: 1px solid rgba(122N85,.3); }
.manual-toc-glosario span { display: block; font-weight: 700; color: #fff; }
.manual-toc-glosario:hover { background: rgba(69J77,.2); }
html[data-theme="light"] .manual-toc-glosario { color: #254bba; background: #eef4ff; border-color: #c7d9ff; }
html[data-theme="light"] .manual-toc-glosario span { color: #1a3273; }

/* ── Lista de pasos: invitación y cierre ── */
.manual-content .manual-tip-pasos {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; padding: 10px 14px; border-radius: 10px;
  font-size: 13.5px; color: #b8c9dc; background: rgba(37,99,235,.08); border: 1px dashed rgba(122,168,255,.35);
}
.manual-content .manual-tip-pasos span {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; color: #fff; background: #2563EB;
}
.manual-content .manual-fin-pasos {
  margin: 32px 0 0; padding: 16px 18px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(15,23,42,.5)); border: 1px solid rgba(34,197,94,.5);
}
.manual-content .manual-fin-pasos strong { display: block; color: #bbf7d0; font-size: 16px; }
.manual-content .manual-fin-pasos span { color: #b8c9dc; font-size: 14px; }

/* ── Centro de soluciones ── */
.manual-content .manual-sol-atajo { font-size: 14px; color: #b8c9dc; }
.manual-content .manual-sol-buscador {
  position: sticky; top: 76px; z-index: 5; margin: 18px 0 8px; padding: 12px; border-radius: 14px;
  background: rgba(5,11,22,.92); border: 1px solid rgba(122,168,255,.28); backdrop-filter: blur(8px);
}
.manual-content .manual-sol-buscar {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 15px;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(122,168,255,.35); outline: none;
}
.manual-content .manual-sol-buscar:focus { border-color: #7AA8FF; box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.manual-content .manual-sol-cuenta { margin: 8px 2px 0; font-size: 12.5px; color: #93aac0; }
.manual-content .manual-sol-grupo { display: grid; gap: 8px; margin: 10px 0 8px; }
.manual-content details.manual-sol {
  border-radius: 12px; background: rgba(15,23,42,.5); border: 1px solid rgba(122,168,255,.16); overflow: hidden;
}
.manual-content details.manual-sol[open] { border-color: rgba(122,168,255,.45); background: rgba(15,23,42,.75); }
.manual-content details.manual-sol summary {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none;
  font-weight: 600; color: #eef4ff; font-size: 15px;
}
.manual-content details.manual-sol summary::-webkit-details-marker { display: none; }
.manual-content details.manual-sol summary::before {
  content: "›"; flex-shrink: 0; font-size: 20px; line-height: 1; color: #7AA8FF; transition: transform .15s ease;
}
.manual-content details.manual-sol[open] summary::before { transform: rotate(90deg); }
.manual-content .manual-sol-txt { flex: 1; }
.manual-content .manual-sol-tag {
  flex-shrink: 0; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 700;
  color: #a8bdd0; background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.25);
}
.manual-content .manual-sol-cuerpo { padding: 0 16px 14px 42px; }
.manual-content .manual-sol-cuerpo p { margin: 0 0 10px; font-size: 14.5px; }
.manual-content .manual-sol-ir { margin: 0 !important; }
.manual-content .manual-sol-vacio { padding: 14px 16px; border-radius: 12px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); }
@media (max-width: 560px) {
  .manual-content .manual-sol-buscador { top: 64px; }
  .manual-content .manual-sol-cuerpo { padding-left: 16px; }
}

html[data-theme="light"] .manual-content .manual-copiar { background: #f8fafc !important; border-color: #dbe4f0 !important; }
html[data-theme="light"] .manual-content .manual-copiar.is-copiado { background: #f0fdf4 !important; border-color: #22c55e !important; }
html[data-theme="light"] .manual-content .manual-copiar-txt { color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-copiar-eti { color: #2b55c9 !important; }
html[data-theme="light"] .manual-content .manual-copiar-nota { color: #64748b !important; }
html[data-theme="light"] .manual-content .manual-copiar-tool { color: #2b55c9 !important; background: #eaf1ff !important; }
html[data-theme="light"] .manual-content abbr.manual-glosa { border-bottom-color: #2563EB !important; }
html[data-theme="light"] .manual-content abbr.manual-glosa::after { color: #f8fafc !important; background: #0f172a !important; }
html[data-theme="light"] .manual-toc-ayuda { color: #166534 !important; background: #f0fdf4 !important; border-color: #86efac !important; }
html[data-theme="light"] .manual-toc-ayuda span { color: #14532d !important; }
html[data-theme="light"] .manual-content .manual-tip-pasos { color: #475569 !important; background: #f1f6ff !important; }
html[data-theme="light"] .manual-content .manual-fin-pasos { background: #f0fdf4 !important; }
html[data-theme="light"] .manual-content .manual-fin-pasos strong { color: #166534 !important; }
html[data-theme="light"] .manual-content .manual-fin-pasos span,
html[data-theme="light"] .manual-content .manual-sol-atajo,
html[data-theme="light"] .manual-content .manual-sol-cuenta { color: #475569 !important; }
html[data-theme="light"] .manual-content .manual-sol-buscador { background: rgba(255,255,255,.95) !important; border-color: #dbe4f0 !important; }
html[data-theme="light"] .manual-content .manual-sol-buscar { color: #0f172a !important; background: #fff !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .manual-content details.manual-sol { background: #fff !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content details.manual-sol[open] { border-color: #a5c4ff !important; }
html[data-theme="light"] .manual-content details.manual-sol summary { color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-sol-tag { color: #475569 !important; background: #f1f5f9 !important; border-color: #cbd5e1 !important; }

/* ── Ancho según la forma de la captura ──
   La clase la pone el servidor (tulogica_manual_clasificar_capturas)
   midiendo la imagen. Así un formulario alto o una captura de celular
   no ocupan media pantalla de alto. */
.manual-content figure.manual-shot.es-cuadrada .manual-shot-frame { max-width: 600px; }
.manual-content figure.manual-shot.es-alta .manual-shot-frame     { max-width: 500px; }
.manual-content figure.manual-shot.es-movil .manual-shot-frame    { max-width: 320px; border-radius: 22px; }
.manual-content figure.manual-shot.es-movil figcaption,
.manual-content figure.manual-shot.es-alta figcaption { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Captura de un detalle (un menú, un desplegable) ──
   Se presenta sobre un fondo propio, a su tamaño natural, en vez de
   estirarse a todo el ancho. */
.manual-content figure.manual-shot.es-producto {
  padding: 28px 20px 18px; border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,.22), transparent 70%),
    rgba(15,23,42,.45);
  border: 1px solid rgba(122,168,255,.16);
}
.manual-content figure.manual-shot.es-producto .manual-shot-frame { max-width: 380px; }
.manual-content figure.manual-shot.es-producto figcaption { margin-top: 14px; }
html[data-theme="light"] .manual-content figure.manual-shot.es-producto {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,.14), transparent 70%),
    #f1f5fb !important;
  border-color: rgba(37,99,235,.14) !important;
}

/* ── Catálogo de opciones (condiciones, acciones) ──
   Texto en vez de capturas de una lista larga: se lee en el móvil,
   se puede buscar con el navegador y no depende del zoom. */
.manual-content .manual-catalogo {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 18px 0 14px;
}
.manual-content .manual-catalogo-grupo {
  border: 1px solid rgba(122,168,255,.16); border-radius: 12px;
  padding: 14px 16px 15px; background: rgba(15,23,42,.45);
}
.manual-content .manual-catalogo-grupo.es-ancho { grid-column: 1 / -1; }
.manual-content .manual-catalogo-grupo h4 {
  margin: 0 0 3px; font-size: 14.5px; color: #f0f8ff; letter-spacing: 0;
}
.manual-content .manual-catalogo-grupo p {
  margin: 0 0 11px; font-size: 12.5px; color: #93aac0; line-height: 1.45;
}
.manual-content ul.manual-catalogo-chips {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.manual-content ul.manual-catalogo-chips li {
  margin: 0; font-size: 12.5px; line-height: 1.3; padding: 5px 10px; border-radius: 100px;
  background: rgba(122,168,255,.09); border: 1px solid rgba(122,168,255,.18); color: #cfe0f5;
}
.manual-content ul.manual-catalogo-chips li.es-top {
  background: rgba(34,211,238,.13); border-color: rgba(34,211,238,.55); color: #e6fbff; font-weight: 600;
}
.manual-content ul.manual-catalogo-chips li.es-ojo {
  background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.5); color: #ffdede; font-weight: 600;
}
.manual-content .manual-catalogo-leyenda {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: 12.5px; color: #93aac0; margin: 0 0 22px;
}
.manual-content .manual-catalogo-leyenda span::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 6px; vertical-align: -1px;
}
.manual-content .manual-catalogo-leyenda .es-top::before { background: rgba(34,211,238,.6); }
.manual-content .manual-catalogo-leyenda .es-ojo::before { background: rgba(239,68,68,.65); }
@media (max-width: 640px) {
  .manual-content .manual-catalogo { grid-template-columns: 1fr; }
}
html[data-theme="light"] .manual-content .manual-catalogo-grupo { background: #fff !important; border-color: rgba(37,99,235,.14) !important; }
html[data-theme="light"] .manual-content .manual-catalogo-grupo h4 { color: #0f172a !important; }
html[data-theme="light"] .manual-content .manual-catalogo-grupo p,
html[data-theme="light"] .manual-content .manual-catalogo-leyenda { color: #64748b !important; }
html[data-theme="light"] .manual-content ul.manual-catalogo-chips li { background: #eef3fb !important; border-color: rgba(37,99,235,.16) !important; color: #1e293b !important; }
html[data-theme="light"] .manual-content ul.manual-catalogo-chips li.es-top { background: rgba(8,145,178,.1) !important; border-color: rgba(8,145,178,.55) !important; color: #0e7490 !important; }
html[data-theme="light"] .manual-content ul.manual-catalogo-chips li.es-ojo { background: rgba(220,38,38,.08) !important; border-color: rgba(220,38,38,.45) !important; color: #b91c1c !important; }

/* ── Ruta del manual: cada recuadro es un enlace ── */
.manual-content a.manual-ruta-paso { text-decoration: none !important; color: inherit; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.manual-content a.manual-ruta-paso:hover, .manual-content a.manual-ruta-paso:focus-visible { transform: translateY(-2px); border-color: rgba(122,168,255,.7); background: rgba(37,99,235,.18); }
.manual-content a.manual-ruta-paso:focus-visible { outline: 2px solid #7AA8FF; outline-offset: 2px; }
.manual-content h2[id^="paso-"], .manual-content h2#siguientes-pasos, .manual-content h2#problemas { scroll-margin-top: 110px; }

/* ── Tarjetas «También puedes hacer esto» ── */
.manual-content .manual-ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 14px; }
.manual-content a.mi-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px;
  text-decoration: none !important; color: inherit;
  background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.2);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.manual-content a.mi-card:hover, .manual-content a.mi-card:focus-visible { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 12px 28px -14px var(--c); }
.manual-content a.mi-card:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.manual-content a.mi-card.es-rec { border-color: rgba(122,168,255,.5); background: rgba(37,99,235,.12); }
.manual-content .mi-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); margin-bottom: 4px; }
.manual-content .mi-ico svg { color: var(--c) !important; }
.manual-content .mi-rec { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #2563EB; color: #fff; }
.manual-content .mi-tit { font-size: 15.5px; font-weight: 800; color: #fff; line-height: 1.25; }
.manual-content .mi-txt { font-size: 13.5px; color: #b8c9dc; line-height: 1.45; flex: 1; }
.manual-content .mi-pie { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; }
.manual-content .mi-min { display: inline-flex; align-items: center; gap: 4px; color: #8aa0b8; }
.manual-content .mi-visto { color: #4ade80; font-weight: 700; }
.manual-content .mi-ir { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--c); }
.manual-content .mi-ir svg { color: var(--c) !important; transition: transform .15s ease; }
.manual-content a.mi-card:hover .mi-ir svg { transform: translateX(3px); }
.manual-content a.mi-card.is-visto { opacity: .78; }
.manual-content a.mi-card.is-visto:hover { opacity: 1; }
html[data-theme="light"] .manual-content a.manual-ruta-paso:hover { background: #eaf1ff !important; }
html[data-theme="light"] .manual-content a.mi-card { background: #fff !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content a.mi-card.es-rec { background: #f5f8ff !important; border-color: #a5c4ff !important; }
html[data-theme="light"] .manual-content a.mi-card:hover { border-color: var(--c) !important; }
html[data-theme="light"] .manual-content .mi-tit { color: #0f172a !important; }
html[data-theme="light"] .manual-content .mi-txt { color: #475569 !important; }
html[data-theme="light"] .manual-content .mi-min { color: #64748b !important; }
html[data-theme="light"] .manual-content .mi-visto { color: #16a34a !important; }
@media (prefers-reduced-motion: reduce) { .manual-content a.mi-card, .manual-content a.manual-ruta-paso, .manual-content .mi-ir svg { transition: none; } }

/* ── Manual de reglas: verificador de rubro ── */
.manual-content .mr-rubro { margin: 16px 0 18px; padding: 16px; border-radius: 16px; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.22); }
.manual-content .mr-rubro-buscar input { width: 100%; box-sizing: border-box; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(122,168,255,.4); background: rgba(2,6,23,.5); color: #fff; font-size: 16px; }
.manual-content .mr-rubro-buscar input:focus { outline: 2px solid #7AA8FF; outline-offset: 1px; }
.manual-content .mr-rubro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-height: 236px; overflow-y: auto; }
.manual-content .mr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,.3); background: rgba(30,41,59,.7); color: #e2e8f0; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.manual-content .mr-chip:hover, .manual-content .mr-chip:focus-visible { transform: translateY(-1px); border-color: #7AA8FF; }
.manual-content .mr-chip.is-si span { color: #4ade80; } .manual-content .mr-chip.is-limite span { color: #fbbf24; } .manual-content .mr-chip.is-no span { color: #f87171; }
.manual-content .mr-vacio { margin: 4px 0 0; color: #b8c9dc; }
.manual-content .mr-rubro-res, .manual-content .mr-ventana-res { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border-left: 5px solid #7AA8FF; background: rgba(37,99,235,.12); animation: mrEntra .25s ease; }
.manual-content .mr-rubro-res strong { display: block; font-size: 16px; color: #fff; }
.manual-content .mr-rubro-res p, .manual-content .mr-ventana-res p { margin: 6px 0 0; color: #dbe7f5; }
.manual-content .is-si.mr-rubro-res, .manual-content .is-si.mr-ventana-res { border-left-color: #22c55e; background: rgba(34,197,94,.12); }
.manual-content .is-limite.mr-rubro-res, .manual-content .is-limite.mr-ventana-res { border-left-color: #f59e0b; background: rgba(245,158,11,.12); }
.manual-content .is-no.mr-rubro-res, .manual-content .is-no.mr-ventana-res { border-left-color: #ef4444; background: rgba(239,68,68,.12); }
@keyframes mrEntra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Simulador de la ventana de 24 h ── */
.manual-content .mr-ventana { margin: 16px 0 18px; padding: 16px; border-radius: 16px; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.22); }
.manual-content .mr-ventana-preg { margin: 0 0 10px; }
.manual-content .mr-ventana-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.manual-content .mr-ventana-ops button { padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(148,163,184,.3); background: rgba(30,41,59,.7); color: #e2e8f0; font-weight: 600; font-size: 14px; cursor: pointer; }
.manual-content .mr-ventana-ops button:hover, .manual-content .mr-ventana-ops button:focus-visible { border-color: #7AA8FF; }
.manual-content .mr-ventana-ops button.is-activo, .manual-content .mr-chip.is-activo { background: #2563EB; border-color: #2563EB; color: #fff; }
.manual-content .mr-ventana-barra { position: relative; display: flex; height: 34px; margin: 16px 0 4px; border-radius: 10px; overflow: hidden; font-size: 12px; font-weight: 700; }
.manual-content .mr-ventana-abierta { flex: 0 0 66.67%; display: grid; place-items: center; background: rgba(34,197,94,.25); color: #4ade80; }
.manual-content .mr-ventana-cerrada { flex: 1; display: grid; place-items: center; background: rgba(239,68,68,.18); color: #f87171; }
.manual-content .mr-ventana-marca { position: absolute; top: -2px; bottom: -2px; left: 0; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.6); opacity: 0; transition: left .35s ease, opacity .2s ease; }

/* ── Ejemplos de plantilla y semáforo ── */
.manual-content .mr-ejemplos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.manual-content .mr-ej { padding: 14px 16px; border-radius: 14px; border: 1px solid; }
.manual-content .mr-ej p { margin: 8px 0 6px; font-size: 15px; color: #fff; }
.manual-content .mr-ej small { color: #b8c9dc; font-size: 13px; }
.manual-content .mr-ej-tag { font-size: 12.5px; font-weight: 800; }
.manual-content .mr-ej--mal { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08); } .manual-content .mr-ej--mal .mr-ej-tag { color: #f87171; }
.manual-content .mr-ej--bien { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.08); } .manual-content .mr-ej--bien .mr-ej-tag { color: #4ade80; }
.manual-content .mr-semaforo { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 14px 0; }
.manual-content .mr-luz { position: relative; padding: 14px 14px 14px 40px; border-radius: 14px; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.22); }
.manual-content .mr-luz::before { content: ""; position: absolute; left: 14px; top: 17px; width: 15px; height: 15px; border-radius: 50%; }
.manual-content .mr-luz strong { display: block; color: #fff; } .manual-content .mr-luz span { display: block; margin-top: 4px; font-size: 13.5px; color: #b8c9dc; }
.manual-content .mr-luz--verde::before { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.manual-content .mr-luz--amarillo::before { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.manual-content .mr-luz--rojo::before { background: #ef4444; box-shadow: 0 0 10px #ef4444; }

html[data-theme="light"] .manual-content .mr-rubro, html[data-theme="light"] .manual-content .mr-ventana, html[data-theme="light"] .manual-content .mr-luz { background: #fff !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content .mr-rubro-buscar input { background: #f8fafc !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .manual-content .mr-chip, html[data-theme="light"] .manual-content .mr-ventana-ops button { background: #f1f5f9 !important; color: #0f172a !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content .mr-ventana-ops button.is-activo { background: #2563EB !important; color: #fff !important; }
html[data-theme="light"] .manual-content .mr-rubro-res strong, html[data-theme="light"] .manual-content .mr-ej p, html[data-theme="light"] .manual-content .mr-luz strong { color: #0f172a !important; }
html[data-theme="light"] .manual-content .mr-rubro-res p, html[data-theme="light"] .manual-content .mr-ventana-res p, html[data-theme="light"] .manual-content .mr-ej small, html[data-theme="light"] .manual-content .mr-luz span, html[data-theme="light"] .manual-content .mr-vacio { color: #334155 !important; }
@media (prefers-reduced-motion: reduce) { .manual-content .mr-rubro-res, .manual-content .mr-ventana-res, .manual-content .mr-ventana-marca, .manual-content .mr-chip { animation: none; transition: none; } }

/* ── Calculadora de costos de Meta ── */
.manual-content .mr-costo { margin: 16px 0 18px; padding: 16px; border-radius: 16px; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.22); }
.manual-content .mr-costo-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.manual-content .mr-costo-campos label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: #b8c9dc; }
.manual-content .mr-costo-campos input { padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(122,168,255,.4); background: rgba(2,6,23,.5); color: #fff; font-size: 17px; font-weight: 700; }
.manual-content .mr-costo-campos input:focus { outline: 2px solid #7AA8FF; outline-offset: 1px; }
.manual-content .mr-costo-res { margin-top: 14px; display: grid; gap: 6px; }
.manual-content .mr-costo-res > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(30,41,59,.6); color: #dbe7f5; font-size: 14px; }
.manual-content .mr-costo-res b { color: #fff; white-space: nowrap; }
.manual-content .mr-costo-res .mr-costo-total { background: rgba(37,99,235,.22); border: 1px solid rgba(122,168,255,.45); font-weight: 700; }
.manual-content .mr-costo-res .mr-costo-total b { font-size: 17px; color: #bcd3ff; }
html[data-theme="light"] .manual-content .mr-costo { background: #fff !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content .mr-costo-campos input { background: #f8fafc !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .manual-content .mr-costo-campos label { color: #475569 !important; }
html[data-theme="light"] .manual-content .mr-costo-res > div { background: #f1f5f9 !important; color: #334155 !important; }
html[data-theme="light"] .manual-content .mr-costo-res b { color: #0f172a !important; }
html[data-theme="light"] .manual-content .mr-costo-res .mr-costo-total { background: #eaf1ff !important; border-color: #a5c4ff !important; }
html[data-theme="light"] .manual-content .mr-costo-res .mr-costo-total b { color: #2b55c9 !important; }

/* ── Verificación: lista de preparación y botón de agenda ── */
.manual-content .mr-verif { margin: 14px 0 16px; padding: 16px; border-radius: 16px; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.22); transition: border-color .2s ease; }
.manual-content .mr-verif.is-completo { border-color: #22c55e; }
.manual-content .mr-verif-barra { height: 8px; border-radius: 99px; background: rgba(148,163,184,.2); overflow: hidden; }
.manual-content .mr-verif-barra i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2563EB, #22c55e); transition: width .3s ease; }
.manual-content .mr-verif-estado { margin: 8px 0 10px; font-weight: 700; color: #dbe7f5; }
.manual-content .mr-verif-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.manual-content .mr-verif-items label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(30,41,59,.6); border: 1px solid rgba(148,163,184,.2); cursor: pointer; }
.manual-content .mr-verif-items input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: #22c55e; cursor: pointer; }
.manual-content .mr-verif-items small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #a5c4ff; }
.manual-content .mr-verif-items strong { display: block; color: #fff; font-size: 15px; }
.manual-content .mr-verif-items em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: #b8c9dc; }
.manual-content .mr-verif-items li.is-ok label { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.1); }
.manual-content .mr-verif-items li.is-ok strong { text-decoration: line-through; text-decoration-color: rgba(74,222,128,.7); }
.manual-content .mr-verif-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0; }
.manual-content a.mr-verif-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; background: #22c55e; color: #052e16 !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 10px 24px -10px rgba(34,197,94,.8); transition: transform .15s ease; }
.manual-content a.mr-verif-btn svg { color: #052e16 !important; }
.manual-content a.mr-verif-btn:hover { transform: translateY(-2px); }
.manual-content .mr-verif-cta small { color: #94a3b8; font-size: 13px; }
html[data-theme="light"] .manual-content .mr-verif { background: #fff !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content .mr-verif-items label { background: #f8fafc !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content .mr-verif-items strong, html[data-theme="light"] .manual-content .mr-verif-estado { color: #0f172a !important; }
html[data-theme="light"] .manual-content .mr-verif-items em { color: #475569 !important; }
html[data-theme="light"] .manual-content .mr-verif-items small { color: #2b55c9 !important; }
html[data-theme="light"] .manual-content .mr-verif-items li.is-ok label { background: #f0fdf4 !important; border-color: #86efac !important; }
@media (prefers-reduced-motion: reduce) { .manual-content .mr-verif-barra i, .manual-content a.mr-verif-btn { transition: none; } }

/* ── Esquema «cómo funciona» (manual de avisos) ── */
.manual-content .mr-flujo { display: flex; align-items: stretch; gap: 8px; margin: 16px 0 18px; }
.manual-content .mr-flujo > i { align-self: center; font-style: normal; font-size: 20px; color: #7AA8FF; }
.manual-content .mr-flujo-paso { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; text-align: center; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.22); }
.manual-content .mr-flujo-paso b { font-size: 26px; font-weight: 400; line-height: 1; }
.manual-content .mr-flujo-paso strong { color: #fff; font-size: 14.5px; }
.manual-content .mr-flujo-paso span { color: #b8c9dc; font-size: 12.5px; }
.manual-content .mr-flujo-paso.es-clave { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.1); }
@media (max-width: 600px) { .manual-content .mr-flujo { flex-direction: column; } .manual-content .mr-flujo > i { transform: rotate(90deg); } }
html[data-theme="light"] .manual-content .mr-flujo-paso { background: #fff !important; border-color: #e2e8f0 !important; }
html[data-theme="light"] .manual-content .mr-flujo-paso.es-clave { background: #f0fdf4 !important; border-color: #86efac !important; }
html[data-theme="light"] .manual-content .mr-flujo-paso strong { color: #0f172a !important; }
html[data-theme="light"] .manual-content .mr-flujo-paso span { color: #475569 !important; }

/* ── Bloque «Nivel avanzado» ── */
.manual-content .mr-avanzado { position: relative; margin: 18px 0; padding: 16px 16px 6px; border-radius: 16px; border: 1.5px dashed rgba(167,139,250,.55); background: rgba(124,58,237,.08); }
.manual-content .mr-avanzado-tag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #ddd6fe; background: rgba(124,58,237,.3); }
.manual-content .mr-avanzado > p { margin: 4px 0 10px; }
html[data-theme="light"] .manual-content .mr-avanzado { background: #faf5ff !important; border-color: #c4b5fd !important; }
html[data-theme="light"] .manual-content .mr-avanzado-tag { color: #5b21b6 !important; background: #ede9fe !important; }

/* ── Manuales v10.44: elegir una opción, barra «Estás viendo» y motivos de un toque ── */
.manual-picker--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; }
.manual-picker-card.is-elegida { border-color: #2563EB !important; box-shadow: 0 0 0 2px rgba(37,99,235,.45), 0 14px 30px -18px rgba(37,99,235,.9) !important; }
.manual-picker-card.is-elegida strong::after { content: " ✓"; color: #34D399; }
.manual-opcion-barra { position: sticky; top: calc(var(--header-h, 72px) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 14px; padding: 12px 16px; border-radius: 14px; background: rgba(37,99,235,.16); border: 1px solid rgba(122,168,255,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #e2e8f0; font-size: 14.5px; }
.manual-opcion-barra strong { color: #fff; }
.manual-opcion-barra button { padding: 7px 13px; border-radius: 10px; border: 1px solid rgba(122,168,255,.55); background: rgba(4,6,15,.6); color: #cfe0ff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.manual-opcion-barra button:hover, .manual-opcion-barra button:focus-visible { background: #2563EB; color: #fff; outline: none; }
.manual-feedback-motivos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.manual-feedback-motivos > span { width: 100%; font-size: 13.5px; font-weight: 700; color: #cbd5e1; }
.manual-feedback-motivo { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(148,163,184,.35); background: rgba(15,23,42,.55); color: #e2e8f0; font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.manual-feedback-motivo:hover { border-color: rgba(122,168,255,.6); }
.manual-feedback-motivo[aria-pressed="true"] { background: #2563EB; border-color: #2563EB; color: #fff; }
.manual-feedback-motivo:focus-visible { outline: 2px solid #7AA8FF; outline-offset: 2px; }
html[data-theme="light"] .manual-opcion-barra { background: #eff6ff; border-color: #bfdbfe; color: #334155; } html[data-theme="light"] .manual-opcion-barra strong { color: #0f172a; }
html[data-theme="light"] .manual-opcion-barra button { background: #fff; color: #1d4ed8; }
html[data-theme="light"] .manual-feedback-motivo { background: #fff; color: #0f172a; border-color: #cbd5e1; } html[data-theme="light"] .manual-feedback-motivos > span { color: #334155; }

/* ── Manual de WhatsApp v10.45: ficha de cada opción, comparación y mapa de pasos compacto ── */
.manual-content .mw-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0 18px; }
.manual-content .mw-ficha span { display: block; padding: 12px 14px; border-radius: 14px; background: rgba(37,99,235,.10); border: 1px solid rgba(122,168,255,.28); color: #dbe7f5; font-size: 14px; line-height: 1.45; }
.manual-content .mw-ficha b { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #9dc0ff; }
.manual-content .mw-tabla-wrap { overflow-x: auto; margin: 10px 0 4px; border-radius: 14px; border: 1px solid rgba(148,163,184,.22); }
.manual-content .mw-tabla { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.manual-content .mw-tabla th, .manual-content .mw-tabla td { padding: 11px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(148,163,184,.15); }
.manual-content .mw-tabla thead th { background: rgba(15,23,42,.7); color: #fff; font-size: 13px; }
.manual-content .mw-tabla tbody tr:first-child td { background: rgba(16,185,129,.08); }
.manual-content .manual-ruta--compacta { gap: 6px !important; }
.manual-content .manual-ruta--compacta .manual-ruta-paso { padding: 8px 10px !important; min-width: 0 !important; flex: 0 1 auto !important; }
.manual-content .manual-ruta--compacta .manual-ruta-tit { font-size: 12.5px !important; white-space: nowrap; }
.manual-content .manual-ruta--compacta .manual-ruta-num { width: 22px !important; height: 22px !important; font-size: 11.5px !important; }
.manual-content .manual-ruta--compacta .manual-ruta-sep { font-size: 12px; opacity: .6; }
.manual-content h3[id$="-ayuda"] { margin-top: 30px; }
html[data-theme="light"] .manual-content .mw-ficha span { background: #eff6ff; border-color: #bfdbfe; color: #334155; }
html[data-theme="light"] .manual-content .mw-ficha b { color: #1d4ed8; }
html[data-theme="light"] .manual-content .mw-tabla thead th { background: #f1f5f9; color: #0f172a; }
html[data-theme="light"] .manual-content .mw-tabla tbody tr:first-child td { background: #ecfdf5; }
.manual-content .manual-ruta.manual-ruta--compacta { display: flex !important; flex-wrap: wrap; flex-direction: row !important; align-items: center; grid-template-columns: none; margin: 14px 0 22px; }
@media (max-width: 720px) {
  .manual-content .manual-ruta--compacta .manual-ruta-paso { flex: 0 1 auto !important; padding: 7px 9px !important; }
  .manual-content .manual-ruta--compacta .manual-ruta-sep { transform: none !important; margin: 0 !important; }
}

/* ── Lista de chequeo «Antes de empezar» (v10.46) ── */
.manual-content .mw-check { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 10px; }
.manual-content .mw-check li { position: relative; padding: 13px 14px 13px 48px; border-radius: 14px; background: rgba(16,185,129,.08); border: 1px solid rgba(52,211,153,.32); color: #dbe7f5; line-height: 1.5; }
.manual-content .mw-check li::before { content: "✓"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(16,185,129,.22); border: 1px solid rgba(52,211,153,.55); color: #34D399; font-size: 13px; font-weight: 900; }
.manual-content .mw-check li strong { color: #fff; }
html[data-theme="light"] .manual-content .mw-check li { background: #ecfdf5; border-color: #a7f3d0; color: #334155; }
html[data-theme="light"] .manual-content .mw-check li strong { color: #0f172a; }
html[data-theme="light"] .manual-content .mw-check li::before { color: #047857; background: #d1fae5; border-color: #6ee7b7; }

/* ══ v10.80: ruta de pasos de los manuales, legible y tocable ═══════════════════════════════════════
   Se veía rota en 17 manuales: los 5–12 pasos iban forzados en una sola fila (tarjetas de 37–100 px,
   texto partido letra por letra), WordPress metía <br> entre los pasos y el estilo viejo agregaba una
   segunda flecha (::after). Ahora: hasta 4 pasos en fila con flechas; con 5 o más, cuadrícula de
   tarjetas numeradas; en celular, lista. Cada tarjeta enlazada dice «Ir al paso» y marca dónde estás
   (manual-pasos.js). */
.manual-content .manual-ruta > br { display: none !important; }
.manual-content .manual-ruta:has(.manual-ruta-sep) .manual-ruta-paso::after { content: none !important; }
.manual-content .manual-ruta:has(.manual-ruta-sep) { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.manual-content .manual-ruta:has(.manual-ruta-sep) .manual-ruta-paso { flex: 1 1 0; min-width: 0; }
.manual-content .manual-ruta-tit, .manual-content .manual-ruta-txt { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* 5 pasos o más: cuadrícula que se acomoda sola, sin flechas (el número marca el orden) */
.manual-content .manual-ruta:not(.manual-ruta--compacta):has(> .manual-ruta-paso:nth-of-type(5)) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.manual-content .manual-ruta:not(.manual-ruta--compacta):has(> .manual-ruta-paso:nth-of-type(5)) .manual-ruta-sep { display: none; }
.manual-content .manual-ruta:not(.manual-ruta--compacta):has(> .manual-ruta-paso:nth-of-type(5)) .manual-ruta-paso { text-align: left; padding: 14px 14px 12px; }
.manual-content .manual-ruta:not(.manual-ruta--compacta):has(> .manual-ruta-paso:nth-of-type(5)) .manual-ruta-num { align-self: flex-start; }
/* Tarjeta enlazada: se nota que se puede tocar */
.manual-content a.manual-ruta-paso { position: relative; scroll-margin-top: 100px; }
.manual-content a.manual-ruta-paso::before {
  content: "Ir al paso →"; order: 9; margin-top: auto; padding-top: 6px;
  font-size: 12px; font-weight: 700; color: #a5c4ff; opacity: .75; transition: opacity .15s ease;
}
.manual-content a.manual-ruta-paso:hover::before, .manual-content a.manual-ruta-paso:focus-visible::before { opacity: 1; }
.manual-content a.manual-ruta-paso:focus-visible { outline: 3px solid #7AA8FF; outline-offset: 2px; }
/* «Estás aquí»: el paso que se está leyendo */
.manual-content .manual-ruta-paso.es-actual { border-color: #7AA8FF !important; box-shadow: 0 0 0 2px rgba(122,168,255,.35); }
.manual-content .manual-ruta-paso.es-actual::before { content: "Estás aquí"; opacity: 1; color: #fff; }
.manual-content .manual-ruta-paso.es-hecho .manual-ruta-num { background: #16A34A !important; color: #fff !important; }
@media (max-width: 720px) {
  .manual-content .manual-ruta:has(.manual-ruta-sep),
  .manual-content .manual-ruta:not(.manual-ruta--compacta):has(> .manual-ruta-paso:nth-of-type(5)) { display: flex; flex-direction: column; gap: 8px; }
  .manual-content .manual-ruta:not(.manual-ruta--compacta) .manual-ruta-sep { display: none; }
  .manual-content .manual-ruta:not(.manual-ruta--compacta) .manual-ruta-paso { flex: none; text-align: left; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; }
  .manual-content .manual-ruta:not(.manual-ruta--compacta) .manual-ruta-num { grid-row: 1 / span 3; align-self: center; margin: 0; }
  .manual-content a.manual-ruta-paso::before { grid-column: 2; grid-row: 3; padding-top: 2px; }
  .manual-content .manual-ruta:not(.manual-ruta--compacta) .manual-ruta-tit, .manual-content .manual-ruta:not(.manual-ruta--compacta) .manual-ruta-txt { grid-column: 2; }
}
/* Al saltar a un paso, el título se ilumina un momento para que se vea dónde quedaste */
@keyframes tlmPaso { from { background: rgba(122,168,255,.28); } to { background: transparent; } }
.manual-content .tlm-destacar { animation: tlmPaso 1.6s ease-out; border-radius: 8px; }
/* «Listo · Siguiente paso» al final de cada paso */
.manual-content .tlm-siguiente {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin: 26px 0 8px; padding: 12px 16px; border-radius: 14px;
  background: rgba(37,99,235,.12); border: 1px solid rgba(122,168,255,.35);
}
.manual-content .tlm-siguiente span { color: #cbd5e1; font-size: 14px; font-weight: 600; }
.manual-content .tlm-siguiente a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px;
  background: #2563EB; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important;
}
.manual-content .tlm-siguiente a:hover { background: #1D4ED8; }
@media (prefers-reduced-motion: reduce) { .manual-content .tlm-destacar { animation: none; } }
html[data-theme="light"] .manual-content a.manual-ruta-paso::before { color: #1D4ED8; }
html[data-theme="light"] .manual-content .manual-ruta-paso.es-actual::before { color: #0E1A45; }
html[data-theme="light"] .manual-content .manual-ruta-paso.es-actual { border-color: #2563EB !important; box-shadow: 0 0 0 2px rgba(37,99,235,.18); }
html[data-theme="light"] .manual-content a.manual-ruta-paso:hover { background: #EFF5FF; border-color: #2563EB; }
html[data-theme="light"] .manual-content .tlm-siguiente { background: #EFF5FF; border-color: #C7D9FF; }
html[data-theme="light"] .manual-content .tlm-siguiente span { color: #334155; }
/* La ruta compacta (fichas en una línea) no lleva «Ir al paso»: ya es una fila de enlaces cortos */
.manual-content .manual-ruta--compacta a.manual-ruta-paso::before { display: none; }
.manual-content .manual-ruta--compacta .manual-ruta-paso.es-actual::before { display: none; }
html[data-theme="light"] .manual-content .manual-ruta-num { background: #DBE7FF !important; color: #1D4ED8 !important; }
html[data-theme="light"] .manual-content .manual-ruta-paso.es-clave .manual-ruta-num { background: #2563EB !important; color: #fff !important; }

/* ══ v10.81: barra de progreso del manual (manual-pasos.js) ══════════════════════════════════════
   Fija arriba, debajo de la franja de promoción. Aparece cuando la ruta de pasos queda atrás. */
.tlm-progreso {
  position: fixed; left: 50%; top: calc(var(--tl-promo-h, 0px) + 10px); z-index: 9980;
  width: min(760px, calc(100% - 20px)); transform: translate(-50%, -140%); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; overflow: hidden;
  border-radius: 14px; background: rgba(10,16,32,.94); border: 1px solid rgba(122,168,255,.3);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.6); backdrop-filter: blur(8px);
  transition: transform .3s ease, opacity .3s ease;
}
.tlm-progreso.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.tlm-prog-linea { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(122,168,255,.15); }
.tlm-prog-linea i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563EB, #7AA8FF); transition: width .2s linear; }
.tlm-prog-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tlm-prog-txt b { font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #A5C4FF; }
.tlm-prog-txt span { font-size: 14.5px; font-weight: 700; color: #F1F5F9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlm-progreso button { flex: none; min-height: 38px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.tlm-prog-ant { width: 38px; border: 1px solid rgba(122,168,255,.3); background: transparent; color: #CBD5E1; font-size: 20px !important; line-height: 1; }
.tlm-prog-ant:disabled { opacity: .35; cursor: default; }
.tlm-prog-sig { padding: 0 14px; border: 0; background: #2563EB; color: #fff; }
.tlm-prog-sig:hover { background: #1D4ED8; }
.tlm-prog-ruta { padding: 0 12px; border: 1px solid rgba(122,168,255,.3); background: transparent; color: #A5C4FF; }
.tlm-progreso button:focus-visible { outline: 3px solid #7AA8FF; outline-offset: 2px; }
@media (max-width: 600px) {
  .tlm-progreso { gap: 8px; padding: 7px 8px 9px; border-radius: 12px; }
  .tlm-prog-ruta { display: none; }
  .tlm-prog-txt span { font-size: 13.5px; }
  .tlm-prog-sig { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { .tlm-progreso, .tlm-prog-linea i { transition: none; } }
html[data-theme="light"] .tlm-progreso { background: rgba(255,255,255,.96); border-color: #DCE6F7; box-shadow: 0 14px 34px -16px rgba(14,26,69,.35); }
html[data-theme="light"] .tlm-prog-linea { background: #E2EAF7; }
html[data-theme="light"] .tlm-prog-txt b { color: #1D4ED8; }
html[data-theme="light"] .tlm-prog-txt span { color: #0E1A45; }
html[data-theme="light"] .tlm-prog-ant { border-color: #CBD5E1; color: #334155; }
html[data-theme="light"] .tlm-prog-ruta { border-color: #CBD5E1; color: #1D4ED8; }

/* ══ v10.82: «¿Te funcionó?» al final de cada paso (manual-pasos.js) ══════════════════════════════ */
.manual-content .tlm-siguiente { flex-direction: column; align-items: stretch; gap: 10px; }
.manual-content .tlm-sig-preg { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.manual-content .tlm-sig-t { flex: 1 1 200px; color: #E2E8F0 !important; font-size: 15px !important; font-weight: 700 !important; }
.manual-content .tlm-sig-si, .manual-content .tlm-sig-no {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none !important;
}
.manual-content .tlm-sig-si { border: 1px solid rgba(34,197,94,.45); background: rgba(34,197,94,.12); color: #86EFAC; }
.manual-content .tlm-sig-si:hover { background: rgba(34,197,94,.22); }
.manual-content .tlm-siguiente a.tlm-sig-no { background: transparent !important; border: 1px solid rgba(148,163,184,.4); color: #CBD5E1 !important; padding: 0 14px; }
.manual-content .tlm-siguiente a.tlm-sig-no:hover { border-color: #25D366; color: #fff !important; }
.manual-content .tlm-siguiente a.tlm-sig-ir { align-self: flex-start; }
.manual-content .tlm-sig-gracias { margin: 0 !important; color: #86EFAC !important; font-weight: 700; font-size: 14px; }
.manual-content .tlm-siguiente.es-ok { border-color: rgba(34,197,94,.45); }
.manual-content .tlm-siguiente.es-ok .tlm-sig-si { background: #15803D; border-color: #15803D; color: #fff; }
.manual-content .tlm-sig-si:focus-visible, .manual-content .tlm-sig-no:focus-visible { outline: 3px solid #7AA8FF; outline-offset: 2px; }
/* paso confirmado en la ruta */
.manual-content .manual-ruta-paso.es-ok .manual-ruta-num { background: #15803D !important; color: #fff !important; }
html[data-theme="light"] .manual-content .tlm-sig-t { color: #0E1A45 !important; }
html[data-theme="light"] .manual-content .tlm-sig-si { color: #15803D; background: #F0FDF4; border-color: #86EFAC; }
html[data-theme="light"] .manual-content .tlm-siguiente.es-ok .tlm-sig-si { background: #15803D; color: #fff; }
html[data-theme="light"] .manual-content .tlm-siguiente a.tlm-sig-no { color: #334155 !important; border-color: #CBD5E1; }
html[data-theme="light"] .manual-content .tlm-siguiente a.tlm-sig-no:hover { color: #0E1A45 !important; border-color: #25D366; }
html[data-theme="light"] .manual-content .tlm-sig-gracias { color: #15803D !important; }
html[data-theme="light"] .manual-content .tlm-siguiente.es-ok { border-color: #86EFAC; }
