/* ── BITÁCORA ──
   [v2026.10.26-1] cfg-ayuda.css
   2026-10-26 | NUEVO. La ayuda de Configuración (cfg-ayuda.js [v2026.10.26-1]): el «?» junto al título de cada paso y las
     piezas de los ejemplos (cfg-ayuda-ejemplos.js), .cfy-*: la barra de pasos, campos, chips, interruptores, filas, avisos,
     ventanas y la página en chico. Lo común del panel está en hvy-ayuda.css.
───────────────────────────────────────────────────────── */
/* El «?» junto al título del paso: más visible que el de los detalles, porque es la entrada a la ayuda. */
.paso-cab-t + .cfg-ayuda-mini { width: 20px; height: 20px; font-size: 11px; margin: 0 0 0 8px; opacity: .8; vertical-align: 3px; }
.paso-cab-t:has(+ .cfg-ayuda-mini) { display: inline-block; vertical-align: middle; }
.paso-cab-t + .cfg-ayuda-mini + .paso-cab-d { margin-top: 2px; }

/* ── Ejemplos ── */
.cfy { --m: #9961FF; --az: #1e2a5e; --mu: #7D84C1; --bo: #dfe3f3; font-size: 11px; color: var(--az); display: flex;
  flex-direction: column; gap: 7px; }
.cfy b { font-weight: 700; }
.cfy-oculto { display: none !important; }
.cfy-chico { font-size: 10px; color: var(--mu); }
.cfy-verde { color: #1D8A63; }
.cfy-rojo { color: #e24b4a; }
.cfy-gris { color: #9aa0bf; }
.cfy-sub { font-size: 9.5px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.cfy-grupo { font-size: 9.5px; font-weight: 700; color: var(--mu); letter-spacing: .05em; margin-top: 4px; }
.cfy-crece { flex: 1; min-width: 0; }
.cfy-fila { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cfy-entre { justify-content: space-between; }
.cfy-der-fila { justify-content: flex-end; }
.cfy-flecha { color: #c4b5fd; text-align: center; font-size: 10px; }
.cfy-grid2, .cfy-grid3 { display: grid; gap: 6px; }
.cfy-grid2 { grid-template-columns: 1fr 1fr; }
.cfy-grid3 { grid-template-columns: repeat(3, 1fr); }
.cfy-pulso { box-shadow: 0 0 0 3px rgba(153,97,255,.35); }
.cfy-nuevo { animation: cfy-entra .4s ease; }
@keyframes cfy-entra { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* La barra de pasos */
.cfy-pasos { display: flex; align-items: flex-start; background: #fff; border: 1px solid var(--bo); border-radius: 10px; padding: 8px 6px; }
.cfy-paso { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 0 0 auto; width: 54px; background: none;
  border: 0; padding: 0; font-family: inherit; color: inherit; cursor: default; }
button.cfy-paso { cursor: pointer; }
.cfy-circ { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--m); color: var(--m); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; transition: all .3s; }
.cfy-plbl { font-size: 8.5px; color: var(--mu); text-align: center; line-height: 1.15; }
.cfy-paso.en .cfy-circ { background: var(--m); color: #fff; }
.cfy-paso.en .cfy-plbl { color: var(--az); font-weight: 700; }
.cfy-paso.ok .cfy-circ { background: #1D8A63; border-color: #1D8A63; color: #fff; }
.cfy-paso.lock .cfy-circ { background: #eef0f6; border-color: #cfd4e6; color: #f59e0b; }
.cfy-linea { flex: 1; height: 2px; background: #e4e0f7; margin-top: 10px; transition: background .3s; }
.cfy-linea.ok { background: #1D8A63; }
.cfy-mapa-desc { min-height: 16px; color: #4b5563; }
.cfy-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #4b5563; }
.cfy-leyenda > span { display: inline-flex; align-items: center; gap: 4px; }
.cfy-circ-m { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--m); color: var(--m); font-size: 7.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.cfy-circ-m.en { background: var(--m); color: #fff; }
.cfy-circ-m.ok { background: #1D8A63; border-color: #1D8A63; color: #fff; }
.cfy-circ-m.lock { background: #eef0f6; border-color: #cfd4e6; color: #f59e0b; }
.cfy-cab-n { font-size: 8.5px; font-weight: 700; color: var(--m); letter-spacing: .09em; text-transform: uppercase; }
.cfy-cab-t { font-size: 13px; }
.cfy-q { display: inline-flex; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #c4b5fd; color: #8b5cf6; font-size: 8px;
  align-items: center; justify-content: center; vertical-align: 2px; }

/* Campos */
.cfy-campo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfy-campo--crece { flex: 1; }
.cfy-campo--chico { width: 80px; }
.cfy-et { font-size: 9.5px; font-weight: 600; color: var(--mu); }
.cfy-lk { color: #f59e0b; font-size: 8px; }
.cfy-in { display: block; min-height: 15px; padding: 4px 7px; border: 1px solid #C9D9FF; border-radius: 7px; background: #fff;
  color: var(--az); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, box-shadow .2s; }
.cfy-in.vacio { color: #b6bcd6; }
.cfy-in.error { border-color: #e24b4a; background: #fff7f7; }
.cfy-in.ok { border-color: #1D8A63; }
.cfy-in.foco { border-color: var(--m); box-shadow: 0 0 0 3px rgba(153,97,255,.2); }
.cfy-nota { font-size: 9.5px; color: var(--mu); }
.cfy-nota.error { color: #e24b4a; }
.cfy-nota.ok { color: #1D8A63; }

/* Chips, interruptores, botones, insignias */
.cfy-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cfy-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid #C9D9FF;
  background: #fff; color: var(--mu); font-size: 10px; transition: all .25s; }
.cfy-chip.on { background: #f3edff; border-color: var(--m); color: #6d3fd6; font-weight: 600; }
.cfy-chip.propia, .cfy-chip.propia.on { background: #fff7e6; border-color: #f59e0b; color: #b45309; }
.cfy-chip.gris { opacity: .45; }
.cfy-chip .cfy-av { width: 14px; height: 14px; font-size: 6.5px; }
.cfy-mini-chips .cfy-chip { padding: 1px 5px; font-size: 8.5px; }
.cfy-sw-fila { display: inline-flex; align-items: center; gap: 6px; }
.cfy-sw { position: relative; width: 26px; height: 15px; border-radius: 999px; background: #d4d8e8; flex-shrink: 0; transition: background .25s; }
.cfy-sw > span { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left .25s; }
.cfy-sw.on { background: var(--m); }
.cfy-sw.on > span { left: 13px; }
.cfy-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 0; background: var(--m); color: #fff;
  font-family: inherit; font-size: 10.5px; font-weight: 600; cursor: default; transition: all .25s; }
.cfy-btn.sec { background: #fff; color: var(--m); border: 1px solid #C9D9FF; }
.cfy-btn.off { opacity: .45; }
.cfy-btn.rojo { background: #e24b4a; }
.cfy-btn.verde { background: #1D8A63 !important; }
.cfy-btn.grad { background: linear-gradient(90deg, #9961FF, #5b8dee); }
.cfy-badge { display: inline-block; padding: 1px 6px; border-radius: 5px; background: #eef0fb; color: #4f5aa8; font-size: 9px; font-weight: 700;
  white-space: nowrap; }
.cfy-badge.ok { background: #e3f5ec; color: #1D8A63; }
.cfy-badge.warn { background: #fff4e0; color: #b45309; }
.cfy-badge.gris { background: #f0f1f5; color: #7a809c; }
.cfy-badge.lock { background: #fff4e0; color: #b45309; }
.cfy-badge.lock::before { content: '\f023'; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; margin-right: 3px; }
.cfy-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: #f0f1f8; flex-wrap: wrap; }
.cfy-tab { padding: 3px 9px; border-radius: 6px; color: var(--mu); font-size: 10px; display: inline-flex; align-items: center; gap: 4px; }
.cfy-tab.on { background: #fff; color: var(--az); font-weight: 700; box-shadow: 0 1px 3px rgba(30,42,94,.12); }
.cfy-tab em { font-style: normal; font-size: 8.5px; background: #e6e8f5; border-radius: 6px; padding: 0 4px; }
.cfy-punto { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; display: inline-block; }
.cfy-tabs-desc { display: flex; flex-direction: column; gap: 3px; color: #4b5563; }
.cfy-av { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff;
  font-size: 7.5px; font-weight: 700; flex-shrink: 0; vertical-align: middle; margin-right: 4px; }
.cfy-acc { display: inline-flex; gap: 2px; }
.cfy-ic { width: 20px; height: 20px; border: 0; background: none; padding: 0; font-size: 10px; cursor: default; }
.cfy-num { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--m); color: #fff; font-size: 8.5px; font-weight: 700; margin-right: 6px; flex-shrink: 0; transition: background .3s; }
.cfy-colores { display: flex; gap: 5px; }
.cfy-colores span, .cfy-muestra { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d4d8e8;
  vertical-align: middle; transition: background .3s; }
.cfy-colores span.on { box-shadow: 0 0 0 2px var(--az); }

/* Tarjetas, listas, avisos y ventanas */
.cfy-card, .cfy-res, .cfy-pane { background: #fff; border: 1px solid var(--bo); border-radius: 10px; padding: 8px; display: flex;
  flex-direction: column; gap: 6px; }
.cfy-card-t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11.5px; }
.cfy-card-t > i { color: var(--m); }
.cfy-der { margin-left: auto; }
.cfy-pane.cerrado { opacity: .7; }
.cfy-pane.cerrado .cfy-der { transform: rotate(-90deg); }
.cfy-renglon { height: 7px; border-radius: 4px; background: #eef0f8; }
.cfy-renglon.corto { width: 60%; }
.cfy-lista { display: flex; flex-direction: column; gap: 4px; }
.cfy-item { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid #eceff8; border-radius: 8px; background: #fff; }
.cfy-item.tenue { opacity: .55; }
.cfy-asa { color: #b6bcd6; font-size: 10px; }
.cfy-aviso { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; font-size: 10.5px; line-height: 1.4; }
.cfy-aviso > i { margin-top: 2px; }
.cfy-aviso.info { background: #f1f4ff; color: #3b4a8f; }
.cfy-aviso.ok { background: #e9f7f0; color: #17694c; }
.cfy-aviso.warn, .cfy-aviso.lock { background: #fff6e5; color: #8a5300; }
.cfy-aviso.error { background: #fdeeee; color: #a12a29; }
.cfy-modal { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 22px rgba(30,42,94,.18); border: 1px solid var(--bo);
  display: flex; flex-direction: column; gap: 6px; animation: cfy-entra .3s ease; }
.cfy-modal-t { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.cfy-modal-t i { color: #f59e0b; }
.cfy-modal-x { color: #4b5563; line-height: 1.5; }
.cfy-modal-b { display: flex; justify-content: flex-end; gap: 6px; }

/* Paso 1 */
.cfy-ctx { padding: 6px 8px; background: #f7f5ff; border-radius: 8px; }
.cfy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cfy-stats > div { background: #fff; border: 1px solid var(--bo); border-radius: 8px; padding: 5px 7px; font-size: 9px; color: var(--mu);
  text-transform: uppercase; letter-spacing: .04em; display: flex; flex-direction: column; }
.cfy-stats b { font-size: 15px; color: var(--az); }
.cfy-tabla { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bo); border-radius: 8px; overflow: hidden; }
.cfy-tabla th { font-size: 8.5px; text-transform: uppercase; color: var(--mu); text-align: left; padding: 4px 5px; background: #f7f8fc; }
.cfy-tabla td { padding: 4px 5px; border-top: 1px solid #eef0f6; font-size: 10px; white-space: nowrap; }
.cfy-tabla tr.tenue td { opacity: .55; }
.cfy-bloque { display: flex; align-items: center; padding: 7px 8px; border-radius: 9px; border: 1px solid var(--bo); background: #fff; transition: all .3s; }
.cfy-bloque.foco { border-color: var(--m); box-shadow: 0 0 0 3px rgba(153,97,255,.15); }
.cfy-bloque.futuro { opacity: .5; }
.cfy-bloque.ok .cfy-num { background: #1D8A63; }
.cfy-ficha { display: flex; flex-direction: column; gap: 5px; }
.cfy-cands { display: flex; flex-direction: column; gap: 4px; }
.cfy-cand { display: flex; align-items: center; gap: 4px; padding: 5px 7px; border: 1px solid var(--bo); border-radius: 8px; transition: all .25s; }
.cfy-cand.on { border-color: var(--m); background: #f7f3ff; }
.cfy-cand span { display: flex; flex-direction: column; }
.cfy-cand small { color: var(--mu); font-size: 9px; }
.cfy-foto { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cfy-foto .cfy-av { width: 42px; height: 42px; font-size: 13px; margin: 0; }
.cfy-foto small { font-size: 9px; color: var(--m); }
.cfy-minis { display: flex; gap: 4px; flex-wrap: wrap; }
.cfy-mini { position: relative; width: 44px; height: 44px; border-radius: 7px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: rgba(30,42,94,.45); font-size: 12px; }
.cfy-mini em { position: absolute; bottom: 2px; left: 2px; right: 2px; font-style: normal; font-size: 7px; background: rgba(0,0,0,.5); color: #fff;
  border-radius: 3px; text-align: center; }
.cfy-mini.add { border: 1.5px dashed #c4b5fd; color: var(--m); width: 70px; text-align: center; }
.cfy-mini.add small { font-size: 7.5px; line-height: 1.1; }

/* Paso 2 */
.cfy-res-f { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px dashed #eef0f6; }
.cfy-res-f > span:first-child { color: var(--mu); }
.cfy-res-f.tot { font-weight: 700; border-bottom: 0; }
.cfy-caja { background: #fff; border: 1px solid var(--bo); border-radius: 8px; padding: 6px 8px; }
.cfy-pordia { display: flex; flex-direction: column; gap: 3px; }
.cfy-pd-f { display: flex; align-items: center; gap: 5px; }
.cfy-pd-f b { width: 30px; }
.cfy-pd-f .cfy-in { padding: 2px 6px; }
.cfy-linea-t { position: relative; height: 26px; background: #f3f4fa; border-radius: 7px; overflow: hidden; }
.cfy-lt-b { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600;
  white-space: nowrap; overflow: hidden; }
.cfy-lt-b.cita { background: #B8CEF0; color: #1a2f5e; }
.cfy-lt-b.pausa { background: repeating-linear-gradient(45deg, #e4e6f0, #e4e6f0 4px, #f3f4fa 4px, #f3f4fa 8px); color: var(--mu); }
.cfy-lt-b.libre { color: #1D8A63; }
.cfy-dia { display: flex; flex-direction: column; border: 1px solid var(--bo); border-radius: 8px; overflow: hidden; background: #fff; }
.cfy-dia-h { display: flex; gap: 8px; align-items: center; height: 18px; padding: 0 6px; border-top: 1px solid #f0f1f6; font-size: 9px; color: var(--mu); }
.cfy-dia-h:first-child { border-top: 0; }
.cfy-dia-h.raya { background: repeating-linear-gradient(45deg, #f1eefe, #f1eefe 5px, #fff 5px, #fff 10px); }
.cfy-dia-h em { font-style: normal; color: #6d3fd6; font-weight: 600; }
.cfy-burbuja { align-self: flex-start; max-width: 85%; padding: 6px 9px; border-radius: 10px 10px 10px 2px; background: #f1f4ff; animation: cfy-entra .3s ease; }

/* Paso 3 */
.cfy-cita { font-style: italic; color: #4b5563; }
.cfy-tarjeta-pub { display: flex; gap: 6px; padding: 7px; border-radius: 9px; background: #fff; border: 1px solid var(--bo); }
.cfy-tarjeta-pub > div { display: flex; flex-direction: column; }
.cfy-tarjeta-pub small { color: var(--mu); font-size: 9px; }
.cfy-tarjeta-pub em { font-size: 9.5px; color: #4b5563; }
.cfy-mapita { height: 46px; border-radius: 7px; background: linear-gradient(135deg, #dfeee0, #e8f0fb); display: flex; align-items: center;
  justify-content: center; color: #e24b4a; font-size: 16px; }

/* Paso 4 */
.cfy-tarjetas { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cfy-tj { display: flex; flex-direction: column; gap: 2px; padding: 7px; border: 1px solid var(--bo); border-radius: 9px; background: #fff; transition: all .25s; }
.cfy-tj > i { color: var(--m); }
.cfy-tj small { color: var(--mu); font-size: 9px; }
.cfy-tj.on { border-color: var(--m); background: #f7f3ff; box-shadow: 0 0 0 2px rgba(153,97,255,.15); }
.cfy-calc { padding: 5px 8px; border-radius: 7px; background: #f7f5ff; }
.cfy-gente { display: inline-flex; align-items: center; }
.cfy-gente .cfy-av { margin-right: -4px; border: 1.5px solid #fff; }
.cfy-gente small { margin-left: 7px; color: var(--mu); }
.cfy-ticket { border: 1px dashed #c9cde3; border-radius: 8px; padding: 6px 8px; background: #fbfbfe; display: flex; flex-direction: column; gap: 3px; }
.cfy-precio { width: 62px; text-align: right; }
.cfy-cod { display: block; }
.cfy-hora { font-style: normal; display: inline-block; padding: 1px 5px; margin: 2px 2px 0 0; border-radius: 5px; background: #f3edff; color: #6d3fd6; font-size: 9px; }

/* Paso 5 y la página en chico */
.cfy-split { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-items: start; }
.cfy-split-izq { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cfy-split-der { min-width: 0; }
.cfy-pag { position: relative; border: 1px solid var(--bo); border-radius: 10px; overflow: hidden; background: #f7f7fb; display: flex;
  flex-direction: column; align-items: center; gap: 3px; padding-bottom: 7px; transition: background .3s; }
.cfy-pag-hero { width: 100%; height: 34px; background: linear-gradient(90deg, #5362c7, #9961FF); transition: background .4s; }
.cfy-pag-foto { width: 26px; height: 26px; margin-top: -14px; border-radius: 50%; background: #fff; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15); font-size: 8px; font-weight: 700; color: var(--m); display: flex; align-items: center; justify-content: center; }
.cfy-pag-t { font-size: 10.5px; text-align: center; padding: 0 4px; transition: color .4s; }
.cfy-pag-s { font-size: 8.5px; color: var(--mu); }
.cfy-pag-card { width: calc(100% - 14px); box-sizing: border-box; background: rgba(255,255,255,.85); border-radius: 7px; padding: 4px 6px;
  display: flex; flex-direction: column; font-size: 9px; }
.cfy-pag-card span { color: var(--mu); }
.cfy-pag-btn { display: inline-block; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: #172838; color: #fff; font-size: 8.5px;
  font-weight: 600; transition: background .4s; align-self: center; }
.cfy-plants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cfy-plant { display: flex; flex-direction: column; gap: 3px; align-items: center; font-size: 9px; color: var(--mu); }
.cfy-plant.on { color: var(--az); font-weight: 700; }
.cfy-plant-m { width: 100%; height: 58px; border-radius: 7px; border: 1.5px solid var(--bo); background: #fff; padding: 4px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; }
.cfy-plant.on .cfy-plant-m { border-color: var(--m); box-shadow: 0 0 0 2px rgba(153,97,255,.18); }
.cfy-plant-m i { display: block; width: 100%; height: 6px; border-radius: 2px; background: #eceef7; }
.cfy-plant-m i.h { background: #c9b8ff; height: 10px; }
.cfy-plant-m i.h.alto { height: 22px; }
.cfy-plant-m i.c { width: 40%; }
.cfy-plant-m i.b { width: 50%; background: #9961FF; margin: 0 auto; }
.cfy-plant-m i.l { width: 58%; height: 46px; }
.cfy-plant-m i.r { width: 34%; height: 46px; background: #e0d6ff; }
.cfy-plant-m i.g { width: calc(50% - 2px); height: 14px; }
.cfy-wa { border-radius: 10px; overflow: hidden; background: #e7ffdb; border: 1px solid #cfe9c1; }
.cfy-wa-img { position: relative; height: 62px; background: linear-gradient(90deg, #5362c7, #9961FF); display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; }
.cfy-wa-foto { position: absolute; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--m); font-size: 8px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cfy-wa-franja { width: 100%; background: #5362c7; color: #fff; text-align: center; font-size: 8px; font-weight: 700; padding: 3px 0; letter-spacing: .04em; }
.cfy-wa-txt { padding: 5px 7px; font-size: 9.5px; }

/* Orden recomendado */
.cfy-orden { display: flex; flex-direction: column; gap: 2px; }
.cfy-orden-p { display: grid; grid-template-columns: 18px 110px 1fr; align-items: center; gap: 6px; padding: 5px 8px; background: #fff;
  border: 1px solid var(--bo); border-radius: 8px; }
.cfy-orden-p > i { color: var(--m); }
.cfy-orden-p span { color: #4b5563; }

@media (max-width: 480px) {
  .cfy-grid3 { grid-template-columns: 1fr 1fr; }
  .cfy-split { grid-template-columns: 1fr; }
  .cfy-plants { grid-template-columns: 1fr 1fr; }
  .cfy-orden-p { grid-template-columns: 18px 1fr; }
  .cfy-orden-p span { grid-column: 2; }
}
