/* =========================================================
   Componentes: botones, etiquetas, burbujas de ícono y tarjetas de objeto
   (los usa la landing y también la app)
   ========================================================= */

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 216, .22); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--coral-bg); color: var(--coral); }
.btn--danger:hover { background: #FAD3CE; }
.btn--sm { padding: 7px 14px; font-size: .92rem; }
.btn--lg { padding: 14px 26px; font-size: 1.08rem; }
.btn--xl { padding: 17px 32px; font-size: 1.15rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Pastillas de estado y chips ---------- */
.pill, .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 700;
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Tonos reutilizables: .t-verde, .t-azul, ... */
.t-verde { background: var(--verde-bg); color: var(--verde); }
.t-azul { background: var(--azul-bg); color: var(--azul); }
.t-coral { background: var(--coral-bg); color: var(--coral); }
.t-amarillo { background: var(--amarillo-bg); color: var(--amarillo); }
.t-lila { background: var(--lila-bg); color: var(--lila); }
.t-rosa { background: var(--rosa-bg); color: var(--rosa); }
.t-gris { background: var(--gris-bg); color: var(--gris); }

/* ---------- Burbuja de ícono ---------- */
.bubble {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
}
.bubble .icon { width: 24px; height: 24px; }
.bubble--sm { width: 36px; height: 36px; border-radius: 11px; }
.bubble--sm .icon { width: 19px; height: 19px; }
.bubble--lg { width: 58px; height: 58px; border-radius: 18px; }
.bubble--lg .icon { width: 30px; height: 30px; }

/* ---------- Tarjeta de objeto (vista previa) ---------- */
.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.item-card__head { display: flex; align-items: center; gap: 14px; }
.item-card__title { font-size: 1.1rem; }
.item-card__code { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.item-card__head .pill { margin-left: auto; }
.item-card__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  margin: 16px 0 0; padding-top: 16px; border-top: 1px dashed var(--line);
}
.item-card__facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.item-card__facts dd { margin: 0; color: var(--ink); font-weight: 700; font-size: .95rem; }
