/* =============================================
   assets/css/global.css
   Estilos globales compartidos por toda la app
   ============================================= */

:root {
  --purple:      #7C3AED;
  --purple-light:#9F67FF;
  --pink:        #EC4899;
  --dark:        #070710;
  --dark2:       #0f0f1a;
  --sidebar:     #0d0d1a;
  --border:      rgba(255,255,255,.08);
  --text:        #f1f1f1;
  --muted:       #9ca3af;
  --green:       #10b981;
  --blue:        #3b82f6;
  --red:         #ef4444;
  --amber:       #f59e0b;
}

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

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { opacity: .85; }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .2s;
  font-family: inherit;
}
.btn-primary  { background: linear-gradient(135deg,var(--purple),var(--pink)); color: #fff; }
.btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost    { background: transparent; color: var(--muted); }
.btn-submit   { width: 100%; justify-content: center; background: linear-gradient(135deg,var(--purple),var(--pink)); color: #fff; padding: 14px; font-size: 15px; }
.btn:hover    { transform: translateY(-1px); }

/* ── Alertas ── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #FCA5A5; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-info    { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }

/* ── Formularios ── */
.form-group { margin-bottom: 18px; }
label       { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: .2s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--purple); }

/* ── Auth cards ── */
.auth-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.auth-card .logo { text-align: center; margin-bottom: 28px; }
.auth-card .logo a {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg,var(--purple-light),var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-card h2      { font-size: 22px; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.auth-link         { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-premium { background: rgba(124,58,237,.2); color: #c084fc; }
.badge-trial   { background: rgba(59,130,246,.2); color: #93c5fd; }
.badge-expired { background: rgba(239,68,68,.2);  color: #fca5a5; }
.badge-pending { background: rgba(245,158,11,.2); color: #fcd34d; }

/* ── Utilidades ── */
.text-muted  { color: var(--muted); font-size: 14px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.page-header h1 { font-size: 24px; font-weight: 700; }
