/* ============================================================
   Control diario Sups KODA - Design System
   Minimalismo riguroso. Mobile-first. Tipografia Inter.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* === Color tokens =================================
     Paleta neutral con un solo acento. Inspirada en Linear/Vercel. */
  --c-bg:           #fafafa;
  --c-surface:      #ffffff;
  --c-surface-2:    #f5f5f5;
  --c-border:       #ebebeb;
  --c-border-strong:#d4d4d4;

  --c-text:         #0a0a0a;
  --c-text-muted:   #737373;
  --c-text-subtle:  #a3a3a3;

  --c-accent:       #0a0a0a;        /* el acento real ES el negro - max contraste, max minimalismo */
  --c-accent-soft:  #f5f5f5;
  --c-link:         #2563eb;

  --c-success:      #15803d;
  --c-warning:      #b45309;
  --c-danger:       #b91c1c;

  /* Paleta para charts (categoricos): neutrales + 1 accent.
     Ordenada para que las barras mas importantes destaquen. */
  --chart-1:        #0a0a0a;
  --chart-2:        #525252;
  --chart-3:        #a3a3a3;
  --chart-4:        #d4d4d4;
  --chart-5:        #2563eb;
  --chart-6:        #15803d;

  /* === Typography scale ============================
     Modular scale 1.125 (musical second). Base 14px. */
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-xs:          11px;     /* labels, chips */
  --fs-sm:          12.5px;   /* meta, captions */
  --fs-base:        14px;     /* body */
  --fs-md:          15px;     /* form inputs */
  --fs-lg:          17px;     /* section titles */
  --fs-xl:          22px;     /* page title */
  --fs-2xl:         28px;     /* KPI value */
  --fs-3xl:         34px;     /* hero numbers */

  --lh-tight:       1.2;
  --lh-normal:      1.5;
  --lh-relaxed:     1.6;

  /* === Spacing scale =============================== */
  --s-1:            4px;
  --s-2:            8px;
  --s-3:            12px;
  --s-4:            16px;
  --s-5:            20px;
  --s-6:            24px;
  --s-8:            32px;
  --s-10:           40px;
  --s-12:           48px;
  --s-16:           64px;

  /* === Radii ====================================== */
  --r-sm:           4px;
  --r-md:           6px;
  --r-lg:           8px;
  --r-xl:           12px;
  --r-full:         9999px;

  /* === Elevation ================================== */
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:      0 12px 32px rgba(0,0,0,0.10);

  /* === Motion ===================================== */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:         120ms;
  --t-base:         180ms;
}

/* ============================================================
   Reset minimal
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--c-text); text-decoration: none; }
a:hover { color: var(--c-link); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--lh-tight); }
p { margin: 0; }

/* Numero tabular para tablas y KPIs */
.tnum, table td.num, .kpi-value, .stat-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ============================================================
   Layout primitives
   ============================================================ */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.app-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s-3) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 600; font-size: var(--fs-base); letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  background: var(--c-accent); color: #fff;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.nav { display: flex; gap: var(--s-1); }
.nav a {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--c-text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav a:hover { background: var(--c-surface-2); color: var(--c-text); }
.nav a.active { background: var(--c-surface); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-border); }

main { flex: 1; }

.container       { max-width: 640px;  margin: 0 auto; padding: var(--s-8) var(--s-5) var(--s-16); }
.container-wide  { max-width: 1280px; margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-16); }

@media (max-width: 600px) {
  .container, .container-wide { padding-left: var(--s-4); padding-right: var(--s-4); padding-top: var(--s-5); }
  .app-header-inner { padding: var(--s-3) var(--s-4); }
  :root { --fs-2xl: 24px; --fs-xl: 19px; }
}

/* ============================================================
   Page header (titulo + meta)
   ============================================================ */
.page-head { margin-bottom: var(--s-8); }
.page-head h1 {
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
  margin-bottom: var(--s-2);
}
.page-head p {
  color: var(--c-text-muted);
  font-size: var(--fs-base);
  max-width: 56ch;
}

/* ============================================================
   FORM
   ============================================================ */
.form-section {
  margin: var(--s-10) 0 var(--s-5);
}
.form-section:first-of-type { margin-top: var(--s-6); }
.form-section .eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-subtle);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.form-section h2 {
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}
.form-section .section-desc {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-border);
}

/* Cada campo: minimal, sin caja pesada */
.field {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border);
}
.field:last-child { border-bottom: none; }

.field-label {
  display: flex; align-items: center; gap: var(--s-1);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--s-1);
  letter-spacing: -0.005em;
}
.field-label .req {
  color: var(--c-danger);
  font-weight: 400;
}
.field-help {
  display: block;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-3);
  white-space: pre-line;
}

/* Inputs base */
.field input[type=text],
.field input[type=email],
.field input[type=number],
.field input[type=date],
.field input[type=password],
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: var(--fs-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--c-text-subtle);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-text);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.08);
}
.field textarea { min-height: 88px; resize: vertical; line-height: var(--lh-normal); }
.field input::placeholder, .field textarea::placeholder { color: var(--c-text-subtle); }

/* Checkbox group */
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-1);
}
.opts label {
  display: flex; align-items: flex-start; gap: var(--s-2);
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  background: var(--c-surface);
}
.opts label:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.opts label:has(input:checked) {
  border-color: var(--c-text); background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-text);
}
.opts input { margin-top: 3px; accent-color: var(--c-text); }

/* Confirmacion fullwidth (un solo checkbox) */
.opts.single { grid-template-columns: 1fr; }

/* Errores */
.field.error input, .field.error select, .field.error textarea {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.10);
}
.field.error .opts label { border-color: var(--c-danger); }
.field-error {
  display: none;
  color: var(--c-danger);
  font-size: var(--fs-sm);
  margin-top: var(--s-2);
}
.field.error .field-error { display: block; }

/* Botones */
.actions {
  display: flex; justify-content: flex-end; gap: var(--s-2);
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 9px 16px;
  font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--c-accent); color: #fff;
}
.btn-primary:hover:not(:disabled) { background: #262626; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: var(--c-surface); color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn-ghost:hover { background: var(--c-surface-2); }
.btn-block { width: 100%; }

/* Toast */
#toast { position: fixed; bottom: var(--s-5); left: 50%; transform: translateX(-50%); z-index: 100; pointer-events: none; }
.toast {
  pointer-events: auto;
  background: var(--c-text); color: #fff;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 200ms var(--ease);
  max-width: 92vw;
}
.toast.error { background: var(--c-danger); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Pantalla de exito */
.success {
  max-width: 440px; margin: var(--s-16) auto;
  text-align: center; padding: var(--s-8);
}
.success .check {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-5);
  background: var(--c-text); color: #fff;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: 24px;
}
.success h2 { font-size: var(--fs-xl); margin-bottom: var(--s-2); letter-spacing: -0.015em; }
.success p { color: var(--c-text-muted); margin-bottom: var(--s-6); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.dash-head h1 { font-size: var(--fs-xl); letter-spacing: -0.015em; }
.dash-head .meta { color: var(--c-text-muted); font-size: var(--fs-sm); margin-top: 2px; }

/* Filtros: barra horizontal compacta */
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-5);
}
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filter-field label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-text-subtle); font-weight: 600;
  padding-left: 2px;
}
.filter-field input, .filter-field select {
  padding: 7px 10px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  background: var(--c-surface);
  -webkit-appearance: none; appearance: none;
  width: 100%;
}
.filter-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px;
}
.filter-actions { display: flex; gap: var(--s-2); align-items: flex-end; }
.filter-actions .btn { padding: 7px 14px; font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filter-actions { grid-column: 1 / -1; justify-content: stretch; }
  .filter-actions .btn { flex: 1; }
}
@media (max-width: 480px) {
  .filters { grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: var(--s-3); }
}

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); } }

.kpi {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-4);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.kpi-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-subtle);
  font-weight: 600;
}
.kpi-value {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 2px;
  color: var(--c-text);
  word-break: break-word;
}
.kpi-sub {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* Charts grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr; } }

.chart-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  min-width: 0;
}
.chart-card.full { grid-column: 1 / -1; }
.chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--s-4);
  gap: var(--s-3);
}
.chart-head h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}
.chart-head .hint { font-size: var(--fs-xs); color: var(--c-text-subtle); }
.chart-canvas { position: relative; height: 260px; }
.chart-card.full .chart-canvas { height: 320px; }
@media (max-width: 600px) { .chart-canvas, .chart-card.full .chart-canvas { height: 240px; } }

/* Tabla */
.section-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.section-head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
}
.section-head h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}
.section-head .count {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  background: var(--c-surface-2);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-weight: 500;
}

.table-wrap { width: 100%; }

/* Tabla desktop */
.t-desktop { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.t-desktop th, .t-desktop td {
  padding: 11px var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.t-desktop tr:last-child td { border-bottom: none; }
.t-desktop th {
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-text-subtle);
  background: var(--c-surface);
  position: sticky; top: 0;
}
.t-desktop tbody tr {
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.t-desktop tbody tr:hover { background: var(--c-surface-2); }
.t-desktop td.num { text-align: right; }
.t-desktop td.muted { color: var(--c-text-muted); }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 500;
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.tag.web { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.tag.gforms { background: #faf5ff; color: #6b21a8; border-color: #e9d5ff; }

/* Tabla mobile = lista de cards */
.t-mobile { display: none; }
.t-mobile-row {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.t-mobile-row:hover, .t-mobile-row:active { background: var(--c-surface-2); }
.t-mobile-row:last-child { border-bottom: none; }
.t-mobile-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-1); gap: var(--s-2); }
.t-mobile-top .name { font-weight: 600; font-size: var(--fs-base); letter-spacing: -0.005em; }
.t-mobile-top .date { font-size: var(--fs-xs); color: var(--c-text-muted); white-space: nowrap; }
.t-mobile-meta { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--s-2); }
.t-mobile-stats { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.t-mobile-stat { font-size: var(--fs-xs); }
.t-mobile-stat .l { color: var(--c-text-subtle); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.t-mobile-stat .v { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .t-desktop { display: none; }
  .t-mobile { display: block; }
}

.empty {
  padding: var(--s-12) var(--s-5);
  text-align: center;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}

/* ============================================================
   Modal de detalle
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  display: none;
  align-items: flex-start; justify-content: center;
  z-index: 200;
  overflow-y: auto;
  padding: var(--s-5);
  animation: fadeIn 150ms var(--ease);
}
.modal.open { display: flex; }
.modal-panel {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  max-width: 720px; width: 100%;
  margin: var(--s-8) auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 220ms var(--ease);
  overflow: hidden;
}
.modal-head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-3);
}
.modal-head h2 { font-size: var(--fs-lg); letter-spacing: -0.01em; margin-bottom: 2px; }
.modal-head .meta { font-size: var(--fs-sm); color: var(--c-text-muted); }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--c-text-muted);
  font-size: 18px;
  transition: background var(--t-fast) var(--ease);
}
.modal-close:hover { background: var(--c-surface-2); color: var(--c-text); }
.modal-body { padding: var(--s-5) var(--s-6) var(--s-6); }
.modal-body dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-3) var(--s-5);
  margin: 0;
}
.modal-body dt {
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-text-subtle);
  padding-top: 2px;
}
.modal-body dd {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--c-text);
  white-space: pre-line;
  line-height: var(--lh-relaxed);
}
.modal-body dd.num { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .modal-body dl { grid-template-columns: 1fr; gap: var(--s-1) 0; }
  .modal-body dd { padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-border); }
  .modal-body dd:last-child { border-bottom: none; }
  .modal-head, .modal-body { padding-left: var(--s-5); padding-right: var(--s-5); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   Login
   ============================================================ */
.login-wrap {
  min-height: calc(100vh - 56px);
  display: grid; place-items: center;
  padding: var(--s-5);
}
.login-card {
  width: 100%; max-width: 360px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-6) var(--s-5);
  box-shadow: var(--shadow-sm);
}
.login-card h2 { font-size: var(--fs-lg); margin-bottom: 4px; letter-spacing: -0.01em; }
.login-card p { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.login-card .field { padding: 0 0 var(--s-3); border: none; }
.login-card .field-error { margin-top: var(--s-2); }

/* Banner de usuario logueado (form) */
.user-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: 10px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.user-banner .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-banner .who .name { font-weight: 600; color: var(--c-text); }
.user-banner .who .email { color: var(--c-text-muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-banner .logout {
  background: none; border: none; color: var(--c-text-muted);
  font-size: var(--fs-xs); font-weight: 500;
  padding: 4px 8px; border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.user-banner .logout:hover { background: var(--c-surface-2); color: var(--c-text); }
