/* ==================== VARIABLES Y CONFIGURACIÓN ==================== */
:root {
  /* Colores corporativos por defecto (ORIDMIT) */
  --primary-color: #1e40af;       /* Azul profundo para contraste */
  --primary-hover: #1e3a8a;
  --secondary-color: #f97316;     /* Naranja ORIDMIT */
  --secondary-hover: #ea580c;
  
  /* Paleta Clara y Minimalista */
  --bg-base: #f8fafc;             /* Fondo gris pizarra muy claro */
  --bg-card: #ffffff;             /* Fondo de tarjetas blanco puro */
  --border-color: #e2e8f0;        /* Bordes sutiles slate-200 */
  --border-focus: #94a3b8;
  
  /* Textos de alta legibilidad */
  --text-main: #0f172a;           /* Gris pizarra oscuro (alto contraste) */
  --text-body: #334155;           /* Gris para cuerpo de texto */
  --text-muted: #64748b;          /* Gris atenuado para etiquetas secundarias */
  
  /* Colores funcionales */
  --color-success: #10b981;       /* Verde éxito */
  --color-danger: #ef4444;        /* Rojo error */
  --color-warning: #f59e0b;       /* Naranja alerta */
  
  /* Sombras y formas */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  
  /* Fuentes */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sidebar-width: 260px;
}

/* ==================== RESET GENERAL ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

ul {
  list-style: none;
}

hr.divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 1.5rem 0;
}

/* ==================== COMPONENTES REUTILIZABLES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px; /* Tamaño táctil móvil recomendado */
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}
.btn-primary:hover {
  filter: brightness(0.9);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
}
.btn-secondary:hover {
  filter: brightness(0.9);
}

.btn-light {
  background-color: #ffffff;
  color: var(--text-body);
  border-color: var(--border-color);
}
.btn-light:hover {
  background-color: #f1f5f9;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.btn-icon:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--text-main);
}

.btn-xs {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  min-height: 32px;
}

/* Tarjetas */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Campos de Formulario */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.input-icon-wrapper input {
  padding-left: 40px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.2s ease;
  min-height: 42px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-row {
  display: flex;
  gap: 1rem;
}
.col-6 {
  flex: 1;
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5); /* Backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalSlide 0.3s ease-out;
}

.modal-large {
  max-width: 800px;
}

@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.btn-close-modal {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-card form {
  padding: 1.5rem;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* ==================== ESTILOS DE LOGIN ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
  padding: 1rem;
}

.login-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-box {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quick-login {
  margin-top: 2rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 1rem;
  font-size: 0.85rem;
}

.quick-login span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.quick-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-user {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
}
.tag-user:hover {
  background-color: #e2e8f0;
}


/* ==================== ESTRUCTURA DE LA APP (DASHBOARD) ==================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar en Escritorio */
.sidebar {
  width: var(--sidebar-width);
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-logo-img {
  height: 35px;
  max-width: 130px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.hub-tag {
  font-size: 0.75rem;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 1rem;
}

.sidebar-nav li {
  margin-bottom: 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.nav-link:hover {
  background-color: #f1f5f9;
}

.nav-link.active {
  background-color: rgba(30, 64, 175, 0.08); /* Fondo primario muy transparente */
  color: var(--primary-color);
}

.nav-link.active i {
  color: var(--primary-color);
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info .user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-info .user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-logout {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}
.btn-logout:hover {
  background-color: #fee2e2;
  color: var(--color-danger);
}

/* Área Principal */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  width: calc(100% - var(--sidebar-width));
}

.mobile-header {
  display: none;
}

.mobile-nav-overlay {
  display: none;
}

/* Vistas */
.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.view-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.view-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==================== VIEW: DASHBOARD ==================== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
}

.summary-card .card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(30, 64, 175, 0.08);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-card .card-icon i {
  width: 24px;
  height: 24px;
}

.summary-card:nth-child(2) .card-icon {
  background-color: rgba(249, 115, 22, 0.08);
  color: var(--secondary-color);
}

.summary-card:nth-child(4) .card-icon {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--color-success);
}

.summary-card .card-data {
  display: flex;
  flex-direction: column;
}

.summary-card .card-data .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-card .card-data .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.chart-card, .rank-card {
  padding: 1.5rem;
}

.chart-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-minimal {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  text-align: left;
}

.table-minimal th, .table-minimal td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-minimal th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.table-minimal tbody tr:hover {
  background-color: #f8fafc;
}

.table-minimal td.text-right, .table-minimal th.text-right {
  text-align: right;
}

.ias-badge {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}


/* ==================== VIEW: KANBAN ==================== */
.kanban-header {
  margin-bottom: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.select-wrapper select {
  min-width: 180px;
  background-color: #ffffff;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.kanban-column {
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.kanban-column .column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #cbd5e1;
}

.kanban-column .column-header .title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.kanban-column .column-header .count {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #cbd5e1;
  color: var(--text-muted);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.column-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.task-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.task-card .task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.task-card .task-header .weight-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.weight-1 { background-color: #d1fae5; color: #065f46; } /* Fácil */
.weight-2 { background-color: #fef3c7; color: #92400e; } /* Medio */
.weight-3 { background-color: #fee2e2; color: #991b1b; } /* Difícil */

.task-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.task-card .task-desc-short {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card .progress-bar-wrapper {
  margin-bottom: 0.8rem;
}

.task-card .progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.task-card .bar-outer {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.task-card .bar-inner {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.task-card .task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 0.6rem;
}

.task-card .assignee-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-body);
  font-weight: 500;
}

.task-card .assignee-badge i {
  width: 14px;
  height: 14px;
}

/* Control para mover en Móvil */
.mobile-move-control {
  display: none;
  margin-top: 0.8rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}


/* ==================== VIEW: METODOLOGÍA SSM ==================== */
.ssm-project-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ssm-project-selector-wrapper select {
  min-width: 200px;
}

.tabs-container {
  display: flex;
  flex-direction: column;
}

.tabs-buttons {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: var(--text-main);
}
.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.ssm-intro {
  margin-bottom: 1.5rem;
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.catwoe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.catwoe-box {
  position: relative;
  padding-top: 3.5rem;
}

.catwoe-letter {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(30, 64, 175, 0.07);
}

.catwoe-box h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.catwoe-box textarea {
  resize: vertical;
  min-height: 120px;
}

.catwoe-actions {
  grid-column: 1 / -1;
  text-align: right;
}

/* Procesos Mapeados */
.process-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.process-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.process-card-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.process-time-comparison {
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.time-item {
  text-align: center;
}
.time-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.time-item strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.time-saved-badge {
  text-align: center;
  align-self: center;
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.process-steps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.steps-column h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.step-item {
  font-size: 0.85rem;
  background-color: #f8fafc;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid #cbd5e1;
}

.steps-column:first-child .step-item {
  border-left-color: var(--color-danger);
}
.steps-column:last-child .step-item {
  border-left-color: var(--color-success);
}

.process-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.process-mapping-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}


/* ==================== VIEW: BANCO DE IDEAS ==================== */
.ideas-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.idea-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.idea-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.idea-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 1.2rem;
  flex: 1;
}

.idea-card .idea-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 0.8rem;
}

.idea-card .vote-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-vote {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.btn-vote:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.btn-vote.active-up {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-vote.active-down {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.idea-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-proposed { background-color: #eff6ff; color: #1d4ed8; }
.status-approved { background-color: #d1fae5; color: #065f46; }
.status-rejected { background-color: #f3f4f6; color: #374151; }

.idea-admin-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.8rem;
}


/* ==================== VIEW: REUNIONES ==================== */
.meetings-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.meeting-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meeting-item {
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.meeting-item:hover {
  border-color: var(--primary-color);
  background-color: #f8fafc;
}
.meeting-item.active {
  background-color: rgba(30, 64, 175, 0.04);
  border-color: var(--primary-color);
}

.meeting-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.meeting-item .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.meeting-item .date i {
  width: 14px;
  height: 14px;
}

.meeting-detail-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.meeting-detail-card .meet-agenda {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.attendance-section {
  margin-top: 1.5rem;
}

.attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.attendance-row label {
  font-weight: 500;
  font-size: 0.9rem;
}

.attendance-row select {
  width: auto;
  min-height: 32px;
  padding: 0.2rem 0.4rem;
}

.minutes-textarea {
  margin-top: 1.5rem;
  width: 100%;
  resize: vertical;
  min-height: 150px;
}

.detail-actions {
  margin-top: 1.5rem;
  text-align: right;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-muted);
}
.empty-state i {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}


/* ==================== VIEW: EVALUACIONES ==================== */
.evaluations-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.range-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -0.2rem;
  margin-bottom: 0.4rem;
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-val {
  font-weight: 700;
  font-size: 1.2rem;
  background-color: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.evaluations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 600px;
  overflow-y: auto;
}

.eval-item {
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.eval-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.eval-item-header strong {
  color: var(--text-main);
}

.eval-scores {
  display: flex;
  gap: 0.8rem;
  margin: 0.4rem 0;
}

.eval-score-tag {
  font-size: 0.75rem;
  background-color: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.eval-item p {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-body);
}


/* ==================== VIEW: ADMINISTRACIÓN ==================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.admin-card {
  padding: 1.5rem;
}

.admin-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.admin-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.color-selectors {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-picker-wrapper input[type="color"] {
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
}

.branding-form {
  margin-bottom: 1rem;
}

.file-input {
  min-height: auto;
  border: 1px dashed var(--border-color);
  padding: 0.5rem;
}

.file-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-xs {
  min-height: 28px;
}

.members-assignment-box {
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.members-list-assigned {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.member-assigned-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  background-color: #ffffff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.member-add-row {
  display: flex;
  gap: 0.5rem;
}

.member-add-row select, .member-add-row input {
  min-height: 34px;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
}


/* ==================== RESPONSIVIDAD MÓVIL ==================== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px; /* Ocultar sidebar fija */
  }

  body {
    padding-top: 55px; /* Dejar espacio para cabecera móvil */
  }

  /* Cabecera Móvil */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 55px;
    padding: 0 1rem;
    z-index: 200;
  }

  .sidebar {
    display: none; /* Ocultar barra lateral en móvil */
  }

  /* Overlay de Navegación Móvil */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    z-index: 300;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-overlay.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .mobile-nav-content {
    background-color: #ffffff;
    width: 280px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.25s ease-out;
  }

  @keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .mobile-nav-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-nav-links {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .mobile-nav-link:hover {
    background-color: #f1f5f9;
  }

  .mobile-nav-link.active {
    background-color: rgba(30, 64, 175, 0.08);
    color: var(--primary-color);
  }

  .mobile-nav-links .separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
  }

  .logout-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--color-danger);
    font-weight: 500;
  }

  .mobile-user-info {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
  }
  .mobile-user-info .name {
    font-weight: 600;
    font-size: 0.95rem;
  }
  .mobile-user-info .role {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  /* Contenido */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1.2rem 1rem;
  }

  .view-header h2 {
    font-size: 1.4rem;
  }

  /* Reordenamiento en Dashboard */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  /* Kanban Móvil */
  .kanban-board {
    grid-template-columns: 1fr; /* Apilado vertical */
    gap: 1.5rem;
  }

  .mobile-move-control {
    display: block; /* Mostrar botón de mover para facilitar la vida */
  }

  /* SSM Móvil */
  .process-steps-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .process-mapping-layout {
    grid-template-columns: 1fr;
  }

  /* Reuniones Móvil */
  .meetings-grid {
    grid-template-columns: 1fr;
  }

  /* Evaluaciones Móvil */
  .evaluations-layout {
    grid-template-columns: 1fr;
  }

  /* Formularios */
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ==================== CLASES DE UTILIDAD ==================== */
.hidden {
  display: none !important;
}

.hidden-logo {
  display: none !important;
}

