/*
 * ONBOARDING DEL PANEL: botones de la barra de arriba y guía (tour).
 * Los colores, bordes y sombras salen de css/tema-brutalista.css (var(--brut-...)); acá no hay colores sueltos.
 */

/* ---------- Barra de arriba: «🔗 Copiar link» y «? Guía» ---------- */
.btn-link, .btn-guia { padding: 0 14px; min-height: 44px; font-family: var(--brut-mono); font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--brut-ink); }
.btn-link { background: var(--brut-papel); }
.btn-guia { background: var(--brut-lila); }
/* En celulares chicos los botones de arriba bajan de renglón (nunca se corta ni aparece scroll de costado) */
@media (max-width: 767px) {
  .barra-acciones { width: 100%; }
}

/* ---------- Guía del panel (tour) ---------- */
#tour-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
#tour-layer.active { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
#tour-spotlight {
  position: absolute; top: 0; left: 0; width: 0; height: 0;
  border: 3px solid var(--brut-amarillo);
  box-shadow: 0 0 0 9999px var(--brut-velo-tour), 0 0 0 6px var(--brut-ink);
  transition: top .34s cubic-bezier(.22, 1, .36, 1), left .34s cubic-bezier(.22, 1, .36, 1), width .34s cubic-bezier(.22, 1, .36, 1), height .34s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
#tour-spotlight.tour-sin-trans { transition: none; }
@keyframes pulsoMarco {
  0%, 100% { outline: 3px solid var(--brut-amarillo); outline-offset: 3px; }
  50% { outline: 3px solid var(--brut-rosa); outline-offset: 7px; }
}
#tour-spotlight.tour-pulso { animation: pulsoMarco 1.5s ease-in-out infinite; }
#tour-popover {
  position: absolute; width: 310px; max-width: calc(100% - 24px); overflow: hidden;
  background: var(--brut-papel); color: var(--brut-ink);
  border: var(--brut-borde-grueso); box-shadow: var(--brut-sombra-grande);
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px;
}
#tour-popover:focus { outline: none; }
.tour-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-badge { background: var(--brut-amarillo); }
.tour-omitir { min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--brut-ink); font-weight: 800; font-size: 14px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tour-barra { display: flex; gap: 4px; }
.tour-barra span { flex: 1; height: 12px; border: var(--brut-borde); background: var(--brut-crema); }
.tour-barra .tb-hecho { background: var(--brut-verde); }
.tour-barra .tb-actual { background: var(--brut-rosa); }
.tour-contenido { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.tour-cab, .tour-barra, .tour-botones { flex: 0 0 auto; }
.tour-titulo { margin: 0; font-size: 18px; line-height: 1.2; }
.tour-texto { margin: 0; font-size: 15px; line-height: 1.45; }
.tour-consejo { margin: 0; padding: 8px 10px; background: var(--brut-amarillo-suave); border: var(--brut-borde-punteado); font-size: 14px; line-height: 1.4; }
.tour-botones { display: flex; gap: 10px; }
.tour-btn { flex: 1; min-height: 48px; padding: 0 10px; font-family: var(--brut-mono); font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--brut-ink); }
.tour-btn-atras { background: var(--brut-papel); flex: 0 0 38%; }
.tour-btn-sig { background: var(--brut-verde); }
/* Sobre el cartel claro el aro de foco es el de siempre; el marco oscuro de la guía no lo tapa */
#tour-popover :focus-visible { outline: 3px solid var(--brut-foco); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  #tour-layer, #tour-spotlight { transition: none !important; }
  #tour-spotlight.tour-pulso { animation: none !important; }
}

/* ---------- Lista de arranque («Empezá acá») ---------- */
.checklist { background: var(--brut-amarillo-suave); border: var(--brut-borde-grueso); box-shadow: var(--brut-sombra-grande); }
.chk-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chk-cab h2 { margin: 0; font-size: 20px; }
.chk-contador { background: var(--brut-amarillo); font-size: 14px; }
.chk-barra { display: flex; gap: 4px; margin-bottom: 12px; }
.chk-barra span { flex: 1; height: 14px; border: var(--brut-borde); background: var(--brut-crema); }
.chk-barra .tb-hecho { background: var(--brut-verde); }
.chk-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chk-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px; background: var(--brut-papel); border: var(--brut-borde); }
.chk-item.hecho { background: var(--brut-crema-2); }
.chk-marca { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: var(--brut-papel); border: var(--brut-borde); font-weight: 900; font-size: 18px; line-height: 1; }
.chk-item.hecho .chk-marca { background: var(--brut-verde); }
.chk-texto { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.chk-item.hecho .chk-texto { color: var(--brut-gris-texto); }
.chk-boton { flex: none; min-height: 44px; min-width: 76px; padding: 0 12px; background: var(--brut-lila); color: var(--brut-ink); font-family: var(--brut-mono); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.chk-felicitacion { margin: 0; padding: 14px 8px; text-align: center; font-family: var(--brut-fuente-titulo); font-weight: 900; font-size: 20px; line-height: 1.25; text-transform: uppercase; background: var(--brut-verde); border: var(--brut-borde); }
.checklist[data-estado="listo"] { background: var(--brut-verde); }

/* ---------- Reservas de prueba ---------- */
.etq-prueba { margin-left: 6px; padding: 1px 6px; background: var(--brut-lila); font-size: 11px; letter-spacing: .06em; vertical-align: middle; }
.nota-prueba { margin: 0; }
.btn-prueba { width: 100%; text-align: center; white-space: normal; padding-top: 6px; padding-bottom: 6px; }
/* Con la guía abierta, la página tiene espacio de sobra abajo: así el último bloque también se puede subir y el cartel queda debajo */
html.tour-activo body { padding-bottom: 60vh; }
