/* Ayuda del panel (2026-10-18, maqueta 6qptP1WLiaNSis3TSF9iC4): "Próximo paso" del Resumen
 * (sec-resumen.js), Configuración → Funciones (sec-funciones.js) y "Sumar funciones" del menú
 * (torneo.js). Tokens de panel.css. */

/* ─── Próximo paso ─────────────────────────────────────────────────────────────────────── */
.pp { padding: 12px 14px 12px 16px; border-radius: var(--r-grande); border-color: var(--border-hi); }
.pp.listo { border-color: var(--border); }
.pp-cabeza { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pp-icono { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft-pressed); color: var(--cyan); }
.pp-icono svg { width: 16px; height: 16px; transform: rotate(180deg); }
.pp.listo .pp-icono { background: var(--bg-card-pressed); color: var(--text-dim); }
.pp.listo .pp-icono svg { transform: none; }
.pp-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-texto .t-fuerte { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-cabeza .boton { flex-shrink: 0; border-radius: var(--r-pill); padding-left: 16px; padding-right: 16px; }
.pp-mas { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 8px 12px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-dim); font-weight: 600; font-size: 14px; cursor: pointer; }
.pp-mas:hover { color: var(--text); background: var(--bg-card-pressed); }
.pp-mas svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.pp-mas[aria-expanded="true"] svg { transform: rotate(90deg); }

.pp-lista { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.pp-fila { display: flex; align-items: center; gap: 14px; padding: 12px 0 12px 52px; border-top: 1px solid var(--border); }
.pp-marca { width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--border-hover); flex-shrink: 0; display: grid; place-items: center; }
.pp-marca.primera { border-color: var(--cyan); }
.pp-fila.hecho .pp-marca { border: 0; background: var(--border-fuerte); color: var(--text-dim); }
.pp-marca svg { width: 12px; height: 12px; stroke-width: 3; }
.pp-fila-texto { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 14px; }
.pp-fila-texto .t-fuerte { flex: 1; min-width: 0; }
.pp-fila.hecho .t-fuerte { color: var(--text-muted); font-weight: 400; text-decoration: line-through; }
.pp-fila .boton { flex-shrink: 0; border-radius: var(--r-pill); padding-left: 16px; padding-right: 16px; }

/* Hoja del celular (la base es .movil-hoja de panel.css) */
.pp-hoja { gap: 6px; }
.pp-hoja-cabeza { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 8px; }
.pp-hoja .pp-lista { margin: 0; }
.pp-hoja .pp-fila { padding-left: 4px; gap: 12px; }
.pp-hoja .pp-fila-texto { flex-direction: column; align-items: flex-start; gap: 1px; }

@media (max-width: 900px) {
  /* Una línea: lo urgente y "+N". Toda la línea abre la hoja; el botón de acción va adentro. */
  .pp { cursor: pointer; padding: 12px 12px 12px 14px; }
  .pp-cabeza { gap: 12px; }
  .pp-icono { width: 32px; height: 32px; }
  .pp-cabeza .boton { display: none; }
  .pp-texto .t-fuerte { font-size: 15.5px; }
  .pp-mas { background: var(--bg-card-pressed); padding: 5px 9px 5px 10px; font-size: 13px; }
}

/* ─── Configuración → Funciones ────────────────────────────────────────────────────────── */
.funciones { max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.funciones-basico { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.funciones-basico .t-fuerte { font-size: 16px; }
.funciones-grupo { display: flex; flex-direction: column; gap: 12px; }
.funciones-grupo > .t-subtitulo { padding: 0 4px; }
.funciones-lista { padding: 0; }
.funciones-fila { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); cursor: pointer; }
.funciones-fila:first-child { border-top: 0; }
.funciones-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.funciones-texto .t-fuerte { font-size: 15.5px; }
.funciones-fila input { position: absolute; opacity: 0; pointer-events: none; }
.funciones-pista { position: relative; width: 46px; height: 28px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--border-fuerte); transition: background .15s; }
.funciones-pista::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-dim); transition: transform .15s, background .15s; }
.funciones-fila input:checked + .funciones-pista { background: var(--cyan); }
.funciones-fila input:checked + .funciones-pista::after { transform: translateX(18px); background: var(--on-accent); }
.funciones-fila input:focus-visible + .funciones-pista { box-shadow: 0 0 0 3px var(--foco-fuerte); }
.funciones-fila input:disabled + .funciones-pista { opacity: .6; }

/* ─── Menú: "Sumar funciones" ──────────────────────────────────────────────────────────── */
.nav a.nav-sumar { color: var(--text-dim); }
.nav a.nav-sumar.activo { color: var(--cyan); }

/* ─── Botón "Guías" (guias.js; reemplaza al "i" del manual en el panel del torneo) ────────── */
.btn-guias { height: 40px; flex: none; margin: 0; padding: 0 16px 0 11px; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-pill); cursor: pointer; background: var(--bg-card); border: 1px solid var(--border-fuerte); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; transition: color .15s, border-color .15s; }
.btn-guias:hover, .btn-guias[aria-expanded="true"] { color: var(--cyan); border-color: var(--border-hi); }
.btn-guias svg { width: 19px; height: 19px; display: block; }
.btn-guias.redondo { width: 36px; height: 36px; padding: 0; justify-content: center; color: var(--text-dim); }

/* ─── Lista de guías ───────────────────────────────────────────────────────────────────── */
.guias-lista.flotante { position: fixed; z-index: 90; width: 380px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 8px 8px 10px; border-radius: var(--r-enorme); background: var(--bg-flotante); border: 1px solid var(--border-fuerte); box-shadow: 0 18px 48px var(--sombra-fuerte); display: flex; flex-direction: column; animation: aparecer .12s ease-out; }
.guias-lista.movil-hoja { gap: 4px; }
.guias-cabeza { padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.guias-items { display: flex; flex-direction: column; }
.guias-grupo { display: flex; flex-direction: column; }
.guias-grupo-titulo { padding: 10px 14px 2px; }
.guias-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 14px; border: 0; border-radius: var(--r-medio); background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.guias-item:hover, .guias-item:focus-visible { background: var(--bg-fila-hover); outline: none; }
.guias-num { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft-pressed); color: var(--cyan); }
.guias-num::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.guias-item.hecha .guias-num { background: var(--border-fuerte); color: var(--text-dim); }
.guias-item.hecha .guias-num::before { display: none; }
.guias-num svg { width: 13px; height: 13px; stroke-width: 3; }
.guias-item-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.guias-item.hecha .t-fuerte { color: var(--text-muted); }
.guias-flecha { display: grid; place-items: center; color: var(--text-muted); flex-shrink: 0; }
.guias-flecha svg { width: 16px; height: 16px; transform: rotate(180deg); }
.guias-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px 4px; margin-top: 6px; border-top: 1px solid var(--border); font-size: 14px; }
.guias-pie .link { font-size: 14px; }

/* ─── Recorrido ────────────────────────────────────────────────────────────────────────── */
.tour { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.tour-muro { position: fixed; background: rgba(0,0,0,0.72); pointer-events: auto; }
.tour.buscando .tour-muro { transition: none; }
.tour-agujero { position: fixed; display: none; border-radius: var(--r-medio); box-shadow: 0 0 0 2px var(--cyan), 0 0 0 6px rgba(29,182,217,0.25); pointer-events: none; }
.tour-globo { position: fixed; pointer-events: auto; box-sizing: border-box; padding: 16px 18px 14px; border-radius: 20px; background: var(--bg-flotante); border: 1px solid var(--border-hi); box-shadow: 0 16px 40px var(--sombra-fuerte); display: flex; flex-direction: column; gap: 5px; color: var(--text); }
.tour-globo::before { content: ''; position: absolute; top: -7px; left: calc(var(--flecha, -100px) - 6px); width: 12px; height: 12px; background: var(--bg-flotante); border-left: 1px solid var(--border-hi); border-top: 1px solid var(--border-hi); transform: rotate(45deg); }
.tour-globo.arriba::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.tour-titulo { font-size: 18px; font-weight: 700; line-height: 23px; }
.tour-texto { margin-top: 1px; }
.tour-botones { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.tour-acciones { display: flex; align-items: center; gap: 4px; }
.tour-puntos { display: flex; align-items: center; gap: 5px; }
.tour-puntos span { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--border-hover); }
.tour-puntos span.activo { width: 18px; background: var(--cyan); }
.tour-omitir { border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: var(--r-pill); cursor: pointer; }
.tour-omitir:hover { color: var(--text); }
.tour-globo .boton { border-radius: var(--r-pill); padding-left: 18px; padding-right: 18px; }
html[data-tema="claro"] .tour-muro { background: rgba(10,10,10,0.55); }
