*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--f);
  background: var(--off);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--f); cursor: pointer; }
input, select, textarea { font-family: var(--f); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-42); }

/* ── Typography ── */
.eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 6px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.text-sm  { font-size: .82rem; }
.text-xs  { font-size: .74rem; }
.text-muted { color: var(--ink-60); }
.text-rose  { color: var(--rose); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-info    { color: var(--info); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 3px 14px var(--rose-28);
}
.btn-primary:hover { background: var(--rose-h); transform: translateY(-1px); box-shadow: 0 6px 20px var(--rose-28); }
.btn-ghost {
  background: transparent;
  color: var(--ink-60);
  border: 1.5px solid var(--gray-1);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1.5px solid rgba(239,68,68,0.18);
}
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .78rem; }
.btn-lg { padding: 13px 26px; font-size: .9rem; }
.btn-icon {
  padding: 8px;
  border-radius: var(--r-md);
  background: transparent;
  border: none;
  color: var(--ink-42);
  transition: all var(--dur) var(--ease);
}
.btn-icon:hover { background: var(--gray-1); color: var(--ink); }
.btn-icon svg { width: 16px; height: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Layout utilities ── */
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Spacing ── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── Avatar ── */
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--rose-08);
  border: 1.5px solid var(--rose-15);
  color: var(--rose);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--gray-1);
  margin: 20px 0;
}

/* ── Responsive helpers ── */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
