/* ============================================================
   CRETA DIGITAL CRM v2 — STYLESHEET
   ============================================================ */

:root {
  --cream:     #f5f0e8;
  --cream-2:   #ede7d9;
  --cream-3:   #e4ddd0;
  --gold:      #c8a96e;
  --gold-light:#dfc491;
  --gold-dim:  #b8945a;
  --gold-pale: rgba(200,169,110,0.12);
  --ink:       #1a1814;
  --ink-mid:   #3d3730;
  --ink-soft:  #7a6e62;
  --white:     #ffffff;
  --shadow:    0 2px 16px rgba(26,24,20,0.07);
  --shadow-md: 0 4px 24px rgba(26,24,20,0.10);
  --shadow-lg: 0 8px 40px rgba(26,24,20,0.14);
  --radius:    14px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  /* estados */
  --c-nuevo-bg:   #e8f4fd; --c-nuevo-tx: #1a6fa8;
  --c-contactado-bg: #fef9ec; --c-contactado-tx: #a07c1a;
  --c-interesado-bg: #f0faf0; --c-interesado-tx: #2a7a3a;
  --c-cerrado-bg: #f0faf5; --c-cerrado-tx: #1a6e4a;

  /* prioridades */
  --c-alta-bg:  rgba(192,57,43,0.1);  --c-alta-tx:  #c0392b;
  --c-media-bg: rgba(200,169,110,0.15); --c-media-tx: #a07c1a;
  --c-baja-bg:  rgba(122,110,98,0.1);  --c-baja-tx:  #5a5248;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(200,169,110,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(200,169,110,0.06) 0%, transparent 50%);
}

/* ---- HEADER ---- */
.header {
  background: var(--ink);
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(200,169,110,0.18);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  color: var(--gold);
  font-size: 1.25rem;
  animation: spin 14s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.logo-text em { font-style: italic; color: var(--gold); font-weight: 400; }
.logo-version {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 2px;
}
.date-badge {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--gold-light);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,169,110,0.2);
  padding: 4px 13px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ---- MAIN ---- */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- PENDIENTES ---- */
.pendientes-section {
  background: rgba(192,57,43,0.06);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  animation: fadeUp 0.4s ease both;
}
.pendientes-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pendientes-icon { color: #c0392b; font-size: 1.1rem; }
.pendientes-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #c0392b;
}
.pendientes-count {
  background: #c0392b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.pendientes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pendiente-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--ink-mid);
}
.pendiente-chip strong { color: var(--ink); font-weight: 600; }
.pendiente-chip .chip-date { color: #c0392b; font-weight: 600; }

/* ---- METRICS ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  animation: fadeUp 0.45s 0.05s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
}
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.metric-gold { background: var(--ink); border-color: var(--ink); }
.metric-gold .metric-value { color: var(--gold-light); }
.metric-gold .metric-label { color: rgba(245,240,232,0.6); }
.metric-gold .metric-icon-sym { color: var(--gold); }
.metric-gold .metric-bar { background: rgba(255,255,255,0.1); }
.metric-gold .metric-fill { background: var(--gold); }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.metric-icon-sym { font-size: 1.3rem; color: var(--gold); line-height: 1; }
.metric-trend { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.trend-up   { background: rgba(42,122,58,0.1); color: #2a7a3a; }
.trend-down { background: rgba(192,57,43,0.1); color: #c0392b; }
.metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.metric-bar { height: 3px; background: var(--cream-2); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

/* ---- CHARTS ---- */
.charts-section {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 14px;
  animation: fadeUp 0.45s 0.1s ease both;
}
.chart-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.chart-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.chart-wrap {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-wrap canvas { max-height: 180px; }

/* ---- ACTIVIDAD ---- */
.actividad-section {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s 0.15s ease both;
}
.actividad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.actividad-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.btn-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.btn-link:hover { color: var(--gold-dim); }
.actividad-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 130px;
  overflow-y: auto;
}
.actividad-list::-webkit-scrollbar { width: 4px; }
.actividad-list::-webkit-scrollbar-thumb { background: var(--cream-2); border-radius: 2px; }
.actividad-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--ink-mid);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--cream);
}
.actividad-item .act-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
}
.actividad-item .act-time {
  margin-left: auto;
  font-size: 0.73rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.actividad-empty { font-size: 0.83rem; color: var(--ink-soft); padding: 4px 8px; }

/* ---- TABS ---- */
.tabs-bar {
  display: flex;
  gap: 8px;
  animation: fadeUp 0.45s 0.2s ease both;
}
.tab-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  cursor: pointer;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}
.tab-btn span { font-size: 1rem; }
.tab-btn:hover { border-color: var(--gold); color: var(--ink); }
.tab-btn.active {
  background: var(--ink);
  color: var(--gold-light);
  border-color: var(--ink);
}
.tab-content { display: none; animation: fadeUp 0.3s ease both; }
.tab-content.active { display: block; }

/* ---- TOOLBAR ---- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.45s 0.22s ease both;
}
.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 11px;
  font-size: 1rem;
  color: var(--ink-soft);
  pointer-events: none;
}
.search-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 32px;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--gold); }
.filter-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-mid);
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--gold); }
.btn-add {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-add:hover { background: var(--gold-dim); transform: translateY(-1px); }
.btn-outline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--white);
  color: var(--ink-mid);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--gold); color: var(--ink); }
.btn-danger:hover { border-color: #c0392b; color: #c0392b; }

/* ---- TABLE ---- */
.table-wrapper {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-x: auto;
  animation: fadeUp 0.45s 0.25s ease both;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 900px;
}
.leads-table thead tr { background: var(--ink); }
.leads-table thead th {
  padding: 13px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
  user-select: none;
}
.leads-table thead th[data-sort] { cursor: pointer; }
.leads-table thead th[data-sort]:hover { color: var(--gold); }
.sort-icon { opacity: 0.5; font-size: 0.7rem; margin-left: 2px; }
.sort-active .sort-icon { opacity: 1; color: var(--gold); }

.leads-table tbody tr {
  border-bottom: 1px solid var(--cream-2);
  transition: background 0.15s;
}
.leads-table tbody tr:last-child { border-bottom: none; }
.leads-table tbody tr:hover { background: #faf7f2; }
.leads-table tbody tr.row-alta { border-left: 3px solid var(--c-alta-tx); }
.leads-table tbody tr.row-vencido { border-left: 3px solid #c0392b; }

.leads-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  color: var(--ink-mid);
  white-space: nowrap;
}
.leads-table tbody td:first-child { font-weight: 600; color: var(--ink); }

/* BADGES */
.badge {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-nuevo      { background: var(--c-nuevo-bg);      color: var(--c-nuevo-tx); }
.badge-contactado { background: var(--c-contactado-bg); color: var(--c-contactado-tx); }
.badge-interesado { background: var(--c-interesado-bg); color: var(--c-interesado-tx); }
.badge-cerrado    { background: var(--c-cerrado-bg);    color: var(--c-cerrado-tx); }
.badge-alta  { background: var(--c-alta-bg);  color: var(--c-alta-tx); }
.badge-media { background: var(--c-media-bg); color: var(--c-media-tx); }
.badge-baja  { background: var(--c-baja-bg);  color: var(--c-baja-tx); }
.badge-vencido { background: rgba(192,57,43,0.12); color: #c0392b; border: 1px solid rgba(192,57,43,0.2); }

/* TABLE ACTIONS */
.actions-cell { display: flex; gap: 5px; align-items: center; }
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--cream-2);
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--ink-mid);
}
.btn-action:hover { border-color: var(--gold); background: var(--gold-pale); }
.btn-action.del:hover { border-color: #c0392b; background: rgba(192,57,43,0.08); color: #c0392b; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 56px 24px; color: var(--ink-soft); }
.empty-icon { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

/* ---- KANBAN ---- */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
  animation: fadeUp 0.35s ease both;
}
.kanban-col {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--ink);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}
.kanban-col-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
}
.kanban-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-nuevo      { background: var(--c-nuevo-tx); }
.dot-contactado { background: var(--c-contactado-tx); }
.dot-interesado { background: var(--c-interesado-tx); }
.dot-cerrado    { background: var(--c-cerrado-tx); }
.kanban-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(200,169,110,0.25);
  color: var(--gold-light);
  padding: 2px 7px;
  border-radius: 20px;
}
.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  transition: background 0.15s;
}
.kanban-cards.drag-over { background: var(--gold-pale); }

.kanban-card {
  background: var(--cream);
  border: 1px solid var(--cream-2);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: grab;
  transition: box-shadow 0.2s, transform 0.15s;
  user-select: none;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card.dragging { opacity: 0.45; transform: scale(0.97); }
.kanban-card.alta { border-left: 3px solid var(--c-alta-tx); }
.kanban-card.vencido { border-left: 3px solid #c0392b; border-left-width: 3px; }
.kcard-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.kcard-negocio {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.kcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.kcard-valor {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dim);
}
.kcard-date {
  font-size: 0.74rem;
  color: var(--ink-soft);
}
.kcard-date.vencido { color: #c0392b; font-weight: 600; }
.kcard-actions { display: flex; gap: 5px; justify-content: flex-end; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,24,20,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  padding: 16px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.22s;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.confirm-modal { max-width: 380px; }
.modal-header {
  background: var(--ink);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
}
.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
}
.modal-close {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close:hover { background: rgba(255,255,255,0.08); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.modal-footer {
  padding: 14px 22px 22px;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--cream-2);
}
.btn-cancel {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: 1px solid var(--cream-2);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-save {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-save:hover { background: var(--gold-dim); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-3); border-radius: 3px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .charts-section { grid-template-columns: 1fr 1fr; }
  .charts-section .chart-card:last-child { grid-column: 1 / -1; }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .charts-section { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { flex-direction: column; }
  .search-input { width: 100%; }
  .filter-select, .btn-add, .btn-outline { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .kanban-board { grid-template-columns: 1fr; }
  .main { padding: 16px 12px 56px; gap: 16px; }
}

/* SHAKE */
@keyframes shake {
  0%,100%{ transform: translateX(0); }
  20%    { transform: translateX(-6px); }
  40%    { transform: translateX(6px); }
  60%    { transform: translateX(-4px); }
  80%    { transform: translateX(4px); }
}
.shake { animation: shake 0.35s ease; border-color: #c0392b !important; }
