/* Fedelity Club — estilos base neoformistas compartidos */
:root {
  --bg: #e8edf3;
  --ink: #2f3b4e;
  --muted: #7d8b9e;
  --accent: #e07a5f;
  --accent-deep: #c9654c;
  --green: #5a9e7d;
  --shadow-dark: #c4ced9;
  --shadow-light: #ffffff;
  --out: 10px 10px 22px var(--shadow-dark), -10px -10px 22px var(--shadow-light);
  --out-sm: 6px 6px 13px var(--shadow-dark), -6px -6px 13px var(--shadow-light);
  --in: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100svh; }
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; padding: 1.5rem 1.1rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 0.9rem; border-radius: 20px;
  background: var(--bg); box-shadow: var(--out-sm);
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: 0.92rem;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { color: var(--accent); }
.nav { display: grid; gap: 0.4rem; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1rem; border: none; border-radius: 14px;
  color: var(--muted); text-decoration: none; background: transparent;
  font-family: inherit; font-size: 0.84rem; font-weight: 700; text-align: left; cursor: pointer;
  transition: box-shadow 0.25s ease, color 0.25s ease;
}
.nav a:hover, .nav button:hover { color: var(--accent); }
.nav a.active, .nav button.active { color: var(--accent-deep); box-shadow: var(--in); }
.nav .ico { width: 18px; text-align: center; }
.side-foot { margin-top: auto; padding: 1rem; border-radius: 20px; box-shadow: var(--in); font-size: 0.78rem; color: var(--muted); }

.content { padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) 3rem; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; border-radius: 20px; background: var(--bg); box-shadow: var(--out-sm); margin-bottom: 1.75rem;
}
.topbar .title { font-weight: 700; font-size: 0.92rem; }
.topbar .title small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); box-shadow: var(--out-sm); color: var(--accent-deep); font-weight: 800; font-size: 0.78rem;
}
h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 0.95rem; font-weight: 800; }
.page-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.page-head { margin-bottom: 1.5rem; }
.card { background: var(--bg); border-radius: 24px; box-shadow: var(--out); padding: 1.35rem; }
.card + .card { margin-top: 1.5rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.card-head small { font-size: 0.72rem; color: var(--muted); }
.pill { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; box-shadow: var(--in); color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.badge { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; box-shadow: var(--in); color: var(--muted); }
.badge.ok { color: var(--green); }
.badge.warn { color: var(--accent-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: none; border-radius: 999px; padding: 0.85rem 1.4rem;
  background: var(--bg); color: var(--accent-deep);
  font-family: inherit; font-size: 0.82rem; font-weight: 800; text-decoration: none;
  box-shadow: var(--out); cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { box-shadow: var(--in); transform: translateY(0); }
.btn.soft { box-shadow: var(--out-sm); color: var(--muted); }
.btn.soft:hover { color: var(--accent); }
.status { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 15px; box-shadow: var(--in); font-size: 0.8rem; }
.status[hidden] { display: none; }
.status.ok { color: var(--green); }
.status.error-text { color: var(--error, #bd4f3c); }
.note { margin-top: 2rem; text-align: center; font-size: 0.72rem; color: var(--muted); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { padding: 1rem; }
  .nav { grid-template-columns: repeat(4, 1fr); }
  .nav a, .nav button { justify-content: center; padding: 0.7rem 0.3rem; font-size: 0.75rem; }
  .nav .ico { display: none; }
  .side-foot { display: none; }
  .content { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
