/* Juanito Bot · estilos comunes (portada, acceso y panel) */
:root {
  --tg: #2aabee;
  --tg-600: #1e93d6;
  --tg-700: #1679b4;
  --tg-50: #eaf6fd;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body { font-family: var(--bs-font-sans-serif); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--tg-700); }
.text-muted-2 { color: var(--muted) !important; }
::selection { background: rgba(42, 171, 238, .25); }

/* Botones */
.btn { border-radius: 12px; font-weight: 600; padding: .65rem 1.2rem; }
.btn-tg { background: var(--tg); border-color: var(--tg); color: #fff; box-shadow: 0 8px 20px rgba(42, 171, 238, .3); }
.btn-tg:hover, .btn-tg:focus-visible { background: var(--tg-600); border-color: var(--tg-600); color: #fff; }
.btn-soft { background: var(--tg-50); border-color: transparent; color: var(--tg-700); }
.btn-soft:hover { background: #d7eefb; color: var(--tg-700); }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn:focus-visible { outline: 3px solid rgba(42, 171, 238, .45); outline-offset: 2px; box-shadow: none; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--tg) 0%, var(--tg-700) 100%); box-shadow: 0 6px 16px rgba(42, 171, 238, .35);
}

/* Tarjetas */
.card-soft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 999px;
  background: var(--tg-50); color: var(--tg-700); font-size: .8rem; font-weight: 600; margin: 2px; white-space: nowrap;
}
.chip-muted { background: #f1f5f9; color: var(--muted); }

/* Maqueta de una notificación de Telegram (portada) */
.tg-phone {
  background: #dfe8ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23c9d6e0'/%3E%3C/svg%3E");
  border-radius: 24px; padding: 18px; box-shadow: var(--shadow-lg); border: 6px solid #fff; max-width: 420px; margin-inline: auto;
}
.tg-head { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.tg-head .brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.tg-head small { color: var(--muted); }
.tg-bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.tg-bubble b { color: var(--ink); }
.tg-bubble code { color: var(--tg-700); background: var(--tg-50); padding: 1px 6px; border-radius: 6px; }
.tg-time { display: block; text-align: right; font-size: .72rem; color: #94a3b8; margin-top: 4px; }
.tg-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.tg-buttons span { background: rgba(255, 255, 255, .78); backdrop-filter: blur(4px); border-radius: 10px; text-align: center; padding: 8px 6px; font-size: .82rem; font-weight: 600; color: var(--tg-700); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
