/* Design System - Factorial HR Style */
:root {
  --primary-red: #E51943;
  --primary-red-hover: #C91538;
  --secondary-teal: #007C85;
  --secondary-teal-hover: #006670;
  --dark: #25253D;
  --dark-light: #3D3D5C;
  --white: #ffffff;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F7;
  --gray-200: #E5E5EA;
  --gray-300: #D1D1D6;
  --gray-400: #A1A1A6;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-sm: 0 1px 2px rgba(37, 37, 61, 0.05);
  --shadow-md: 0 2px 8px rgba(37, 37, 61, 0.08);
  --shadow-lg: 0 4px 16px rgba(37, 37, 61, 0.12);
  --shadow-xl: 0 8px 24px rgba(37, 37, 61, 0.16);

  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--gray-50);
  min-height: 100vh;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-red), var(--secondary-teal));
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
}

.logo-subtitle {
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-500);
  margin-left: 4px;
}

.nav {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary-teal);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-teal-hover);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--dark);
  background: var(--gray-100);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Main Content */
.main {
  padding: 32px 0;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-header {
  padding: 24px 24px 0;
}

.card-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-header p {
  color: var(--gray-500);
}

/* Forms */
.form {
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(0, 124, 133, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio Group */
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.radio-label:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.radio-label input {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.radio-label input:checked + .radio-custom {
  border-color: var(--secondary-teal);
}

.radio-label input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--secondary-teal);
  border-radius: 50%;
}

.radio-label input:checked ~ .radio-text {
  color: var(--secondary-teal);
  font-weight: 500;
}

.tipo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--gray-200);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.tipo-icon.bug { background: #FEE2E2; color: var(--error); }
.tipo-icon.friccion { background: #FEF3C7; color: var(--warning); }
.tipo-icon.idea { background: #D1FAE5; color: var(--success); }

/* Admin Panel */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  min-width: 160px;
}

/* Tickets List */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.ticket-card:hover {
  box-shadow: var(--shadow-md);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  cursor: pointer;
}

.ticket-main {
  flex: 1;
}

.ticket-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}

.badge-tipo {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-tipo.duda { background: #E0F2FE; color: #0369A1; }
.badge-tipo.bug { background: #FEE2E2; color: #DC2626; }
.badge-tipo.friccion { background: #FEF3C7; color: #D97706; }
.badge-tipo.idea { background: #D1FAE5; color: #059669; }

.badge-bloque {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-estado {
  background: var(--gray-200);
  color: var(--gray-600);
}

.badge-estado.pendiente { background: #FEF3C7; color: #D97706; }
.badge-estado.respondido { background: #DBEAFE; color: #2563EB; }
.badge-estado.escalado { background: #F3E8FF; color: #7C3AED; }
.badge-estado.cerrado { background: #D1FAE5; color: #059669; }

.ticket-preview {
  font-size: 14px;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-info {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
}

.ticket-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ticket-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--gray-200);
}

.ticket-card.expanded .ticket-body {
  display: block;
}

.ticket-feedback {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.ticket-section {
  margin-top: 16px;
}

.ticket-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.status-select {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
}

/* Validation Form */
.validation-form {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.validation-form h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

.validation-form .form-group {
  margin-bottom: 12px;
}

.validation-form label {
  font-size: 13px;
}

.validation-form input,
.validation-form textarea,
.validation-form select {
  font-size: 13px;
  padding: 8px 12px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.prioridad-select {
  display: flex;
  gap: 8px;
}

.prioridad-btn {
  padding: 6px 16px;
  font-size: 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.prioridad-btn.alta { border-color: #DC2626; color: #DC2626; }
.prioridad-btn.alta.active { background: #DC2626; color: white; }
.prioridad-btn.media { border-color: #D97706; color: #D97706; }
.prioridad-btn.media.active { background: #D97706; color: white; }
.prioridad-btn.baja { border-color: #059669; color: #059669; }
.prioridad-btn.baja.active { background: #059669; color: white; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 37, 61, 0.5);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 400px;
  margin: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.modal .form {
  padding: 24px;
}

.error-message {
  background: #FEE2E2;
  color: #DC2626;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  z-index: 2000;
  animation: slideUp 0.3s ease;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Container Full */
.container-full {
  max-width: 100%;
  padding: 0 24px;
}

/* Admin Header Updated */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Legend */
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-color.duda { background: #0EA5E9; }
.legend-color.bug { background: #EF4444; }
.legend-color.friccion { background: #F59E0B; }
.legend-color.idea { background: #10B981; }

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  min-height: calc(100vh - 200px);
}

.kanban-column {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.kanban-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kanban-count {
  background: var(--gray-300);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

/* Kanban Card */
.kanban-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  border-left: 4px solid var(--gray-300);
}

.kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Card colors by type */
.kanban-card.duda {
  border-left-color: #0EA5E9;
  background: linear-gradient(to right, #F0F9FF, var(--white));
}

.kanban-card.bug {
  border-left-color: #EF4444;
  background: linear-gradient(to right, #FEF2F2, var(--white));
}

.kanban-card.friccion {
  border-left-color: #F59E0B;
  background: linear-gradient(to right, #FFFBEB, var(--white));
}

.kanban-card.idea {
  border-left-color: #10B981;
  background: linear-gradient(to right, #ECFDF5, var(--white));
}

.kanban-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.kanban-card-tipo {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
}

.kanban-card.duda .kanban-card-tipo { background: #0EA5E9; color: white; }
.kanban-card.bug .kanban-card-tipo { background: #EF4444; color: white; }
.kanban-card.friccion .kanban-card-tipo { background: #F59E0B; color: white; }
.kanban-card.idea .kanban-card-tipo { background: #10B981; color: white; }

.kanban-card-bloque {
  font-size: 11px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 3px;
}

.kanban-card-content {
  font-size: 13px;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.kanban-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray-500);
}

.kanban-card-persona {
  font-weight: 500;
}

.kanban-card-date {
  color: var(--gray-400);
}

/* Modal Large */
.modal-large {
  max-width: 600px;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 14px;
  color: var(--dark);
}

.detail-feedback {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-md);
  white-space: pre-wrap;
  line-height: 1.6;
}

.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  margin-top: 20px;
}

.detail-actions .btn {
  flex: 1;
}

/* Move buttons */
.move-btn {
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.move-btn:hover {
  background: var(--gray-100);
}

.move-btn.active {
  background: var(--secondary-teal);
  color: white;
  border-color: var(--secondary-teal);
}

/* KPI Header */
.kpi-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg {
  width: 24px;
  height: 24px;
}

.kpi-icon.open {
  background: #DBEAFE;
  color: #2563EB;
}

.kpi-icon.time {
  background: #F3E8FF;
  color: #7C3AED;
}

.kpi-icon.sla {
  background: #FEE2E2;
  color: #DC2626;
}

.kpi-icon.completed {
  background: #D1FAE5;
  color: #059669;
}

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.kpi-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Box */
.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--dark);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary-teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 124, 133, 0.1);
}

.search-input::placeholder {
  color: var(--gray-400);
}

/* View Selector */
.view-selector {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gray-500);
  transition: var(--transition);
}

.view-btn svg {
  width: 18px;
  height: 18px;
}

.view-btn:hover {
  color: var(--dark);
}

.view-btn.active {
  background: var(--white);
  color: var(--secondary-teal);
  box-shadow: var(--shadow-sm);
}

/* Legend Bar */
.legend-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 4px;
}

/* Content Views */
.content-view {
  min-height: calc(100vh - 380px);
}

/* Table View */
.table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
}

.tickets-table th,
.tickets-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.tickets-table th {
  background: var(--gray-50);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tickets-table tbody tr {
  transition: var(--transition);
}

.tickets-table tbody tr:hover {
  background: var(--gray-50);
}

.tickets-table tbody tr:last-child td {
  border-bottom: none;
}

.table-tipo {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.table-tipo.duda { background: #E0F2FE; color: #0369A1; }
.table-tipo.bug { background: #FEE2E2; color: #DC2626; }
.table-tipo.friccion { background: #FEF3C7; color: #D97706; }
.table-tipo.idea { background: #D1FAE5; color: #059669; }

.table-feedback {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-estado {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}

.table-estado.pendiente { background: #FEF3C7; color: #D97706; }
.table-estado.respondido { background: #DBEAFE; color: #2563EB; }
.table-estado.escalado { background: #F3E8FF; color: #7C3AED; }
.table-estado.cerrado { background: #D1FAE5; color: #059669; }

/* Timeline View */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
}

.timeline-item.duda::before { background: #0EA5E9; }
.timeline-item.bug::before { background: #EF4444; }
.timeline-item.friccion::before { background: #F59E0B; }
.timeline-item.idea::before { background: #10B981; }

.timeline-date {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
}

.timeline-item.duda .timeline-card { border-left-color: #0EA5E9; }
.timeline-item.bug .timeline-card { border-left-color: #EF4444; }
.timeline-item.friccion .timeline-card { border-left-color: #F59E0B; }
.timeline-item.idea .timeline-card { border-left-color: #10B981; }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timeline-tipo {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.timeline-item.duda .timeline-tipo { background: #E0F2FE; color: #0369A1; }
.timeline-item.bug .timeline-tipo { background: #FEE2E2; color: #DC2626; }
.timeline-item.friccion .timeline-tipo { background: #FEF3C7; color: #D97706; }
.timeline-item.idea .timeline-tipo { background: #D1FAE5; color: #059669; }

.timeline-estado {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.timeline-content {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 8px;
}

.timeline-meta {
  font-size: 12px;
  color: var(--gray-500);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1200px) {
  .kpi-header {
    grid-template-columns: repeat(2, 1fr);
  }

  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .kpi-header {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left {
    flex-wrap: wrap;
  }

  .toolbar-right {
    justify-content: space-between;
  }

  .search-box {
    max-width: none;
    width: 100%;
  }

  .filter-select {
    flex: 1;
    min-width: 0;
  }

  .legend-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tickets-table {
    display: block;
    overflow-x: auto;
  }
}
