:root {
  --bg: #f5f5f7; --card: #fff; --text: #1d1d1f; --muted: #6e6e73;
  --accent: #0071e3; --ok: #34c759; --warn: #ff9500; --bad: #ff3b30;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
       background: var(--bg); color: var(--text); padding-bottom: 76px; }
.container { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card);
          border-top: 1px solid #e5e5ea; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 6px; text-decoration: none; color: var(--muted);
            font-size: 1.05rem; display: flex; flex-direction: column; align-items: center; }
.tabbar a span { font-size: .55rem; margin-top: 2px; }
button, .btn { background: var(--accent); color: #fff; border: 0; border-radius: 10px;
               padding: 12px 18px; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-secondary { background: #e5e5ea; color: var(--text); }
.btn-danger { background: var(--bad); }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #d2d2d7; border-radius: 10px;
                          font-size: 1rem; margin-bottom: 10px; }
.error { color: var(--bad); }
.warning { color: var(--warn); }
.muted { color: var(--muted); font-size: .85rem; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f2; }
.check-item input[type=checkbox] { width: 24px; height: 24px; margin: 0; flex-shrink: 0; }
.login-box { max-width: 360px; margin: 15vh auto; text-align: center; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 8px 6px; text-align: left; border-bottom: 1px solid #f0f0f2; font-size: .9rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { aspect-ratio: 1; border-radius: 8px; background: var(--card); display: flex; flex-direction: column;
           align-items: center; justify-content: center; text-decoration: none; color: var(--text); font-size: .9rem; }
.cal-day.today { outline: 2px solid var(--accent); }
.cal-day.future { opacity: .35; pointer-events: none; }
.cal-dots { font-size: .55rem; line-height: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; margin-bottom: 12px; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: #e5e5ea; color: var(--text);
        text-decoration: none; font-size: .85rem; white-space: nowrap; }
.chip.active { background: var(--accent); color: #fff; }
.ex-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.ex-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #eee; flex-shrink: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; }
.badge-facil { background: var(--accent); }
.badge-moderado { background: var(--ok); }
.badge-modalto { background: var(--warn); }
.badge-maximo { background: var(--bad); }
