/* ── Variables ── */
:root {
  --brand:     #8B1C72;
  --brand-dk:  #6a1457;
  --brand-lt:  #f5e8f2;
  --danger:    #c0392b;
  --danger-lt: #fdecea;
  --success:   #1a7a4a;
  --success-lt:#e8f5ee;
  --border:    #e0e0e0;
  --bg:        #f4f0f3;
  --white:     #ffffff;
  --text:      #1e1e1e;
  --muted:     #777;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(139,28,114,0.09);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ── Header ── */
.app-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%);
  color: #fff;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; }
.logo-sub  { font-size: 11px; opacity: 0.8; letter-spacing: 0.3px; }

.btn-header {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-header:hover { background: rgba(255,255,255,0.25); }

/* ── Utilidades ── */
.empty-msg {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 20px;
}
.empty-msg.error { color: var(--danger); }

/* ── Form msg ── */
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 600;
}
.form-msg.success { background: var(--success-lt); color: var(--success); border: 1px solid #a8d5bc; }
.form-msg.error   { background: var(--danger-lt);  color: var(--danger);  border: 1px solid #f5b7b1; }
