/* ================================================================
   AJUSTES DE INTERFAZ (se carga al final)
   ----------------------------------------------------------------
   Compacta el estado y el contador del panel y ajusta el panel de
   analisis cuando se muestra dentro de la ventana modal.
   ================================================================ */

/* ---- Estado: una linea, compacto y autocolapsable cuando es exito ---- */
#status {
  font-size: 0.6rem;
  line-height: 1.3;
  padding: 0.26rem 0.5rem;
  margin: 0.1rem 0;
  border-radius: var(--r-sm);
  min-height: 0;
  max-height: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}
#status:empty { display: none; }

#status.success { animation: statusAutoHide 0.45s ease 6s forwards; }

@keyframes statusAutoHide {
  to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; }
}

/* ---- Contador: pildoras mas discretas ---- */
#contador { gap: 0.3rem; }
#contador .stat-pill { padding: 0.2rem 0.45rem; border-radius: var(--r-full); gap: 0.25rem; }
#contador .stat-pill-label { font-size: 0.5rem; letter-spacing: 0.2px; }
#contador .stat-pill-value { font-size: 0.72rem; }

/* ---- Panel de analisis dentro de la ventana modal ---- */
.modal-analisis-content { max-width: 680px; }

#analisis-modal-body #analisis-panel {
  display: flex !important;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  width: 100%;
}

#analisis-modal-body #analisis-panel .btn-analizar { width: 100%; }
#analisis-modal-body #analisis-panel label { margin-top: 0.15rem; }

/* ---- Recorrido: el velo se recorta; la tarjeta queda siempre visible ---- */
.tour-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.tour-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
