/* ===== HEADINGS GLOBAL ===== */
.kk-title {
  font-size: 30px !important;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

h2, .h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  color: #111827 !important;
}

h3, .h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  color: #0f172a !important;
}

h4, .h4 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

h5, .h5 {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #475569 !important;
}

h6, .h6 {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}
/* HERO */
.kk-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.kk-hero-icon {
  width: 56px;
  height: 56px;
  background: rgba(59,130,246,0.1);
  border-radius: 12px;
  font-size: 22px;
}

.kk-hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kk-hero-description {
  color: #6b7280;
  margin-top: 6px;
}

.kk-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.kk-hero-stats span {
  font-size: 15px;
  color: #9ca3af;
}

.kk-hero-stats strong {
  display: block;
  font-size: 16px;
}

.kk-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.kk-progress-bar {
  height: 8px; /* antes era muy fina */
  border-radius: 999px;
}

.kk-progress-bar .progress-bar {
  border-radius: 999px;
}

.kk-hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
}

.kk-hero {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* BADGE */
.kk-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* ===== PREMIUM TABS ===== */

.kk-tabs {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.kk-tabs .nav-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #f1f5f9;
  border-radius: 12px;
}

.kk-tabs .nav-link {
  border: none !important;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
}

/* hover suave */
.kk-tabs .nav-link:hover {
  color: #0f172a;
  background: rgba(255,255,255,0.6);
}

/* activa */
.kk-tabs .nav-link.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

/* opcional: micro efecto */
.kk-tabs .nav-link:active {
  transform: scale(0.97);
}
/* HERO TITLE */
.kk-hero h1 {
  font-size: 25px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1.2 !important;
}
.kk-hero-description {
  color: #6b7280;   /* gris medio moderno */
  font-size: 14px;
}
.kk-hero-stats span {
  color: #18191a;
}

.kk-hero-stats strong {
  color: #111827;
}
/* ===== GLOBAL ===== */
body {
  background: #f8fafc !important; /* más limpio y moderno */
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
/* ===== CARDS ===== */
.card,
.kk-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* hover sutil */
.card:hover,
.kk-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
/* ===== BUTTONS ===== */
.btn {
  border-radius: 8px !important;
  font-weight: 500;
}

.btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.kk-project-hero-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fffbeb;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.kk-hero-progress {
  width: 100%;
  max-width: 360px;
}

.kk-hero-progress span {
  font-size: 13px;
  color: #64748b;
}

.kk-hero-progress strong {
  font-size: 13px;
  color: #0f172a;
}

.kk-hero-progress .progress {
  height: 10px;
  border-radius: 999px;
}

/* ===== PROGRESS ===== */
.progress {
  background: #e5e7eb;
  border-radius: 999px;
}

.progress-bar {
  background: #3b82f6;
}
/* ===== SPACING ===== */
.container-fluid {
  padding-left: 24px;
  padding-right: 24px;
}
/* ===== OVERVIEW ===== */

.kk-overview {
  margin-top: 16px;
}

.kk-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kk-metric-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kk-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.kk-metric-card span {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}

/* número grande más limpio */
.kk-metric-card strong {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.kk-metric-card small {
  display: block;
  font-size: 13px;
  color: #64748b;
}

/* línea superior sutil (detalle premium) */
.kk-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3b82f6;
  opacity: 0.15;
}

.kk-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.kk-panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.kk-panel-header h3 {
  font-size: 15px;
  font-weight: 650;
  color: #0f172a;
  margin: 0 0 4px;
}

.kk-panel-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.kk-panel-body {
  padding: 20px;
}

.kk-description-text {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.kk-status-list {
  padding: 6px 20px 14px;
}

.kk-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.kk-status-row:last-child {
  border-bottom: 0;
}

.kk-status-row span {
  font-size: 13px;
  color: #64748b;
}

.kk-status-row strong {
  font-size: 14px;
  color: #0f172a;
}

.kk-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kk-member-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1199px) {
  .kk-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .kk-metric-grid {
    grid-template-columns: 1fr;
  }

  .kk-metric-card strong {
    font-size: 28px;
  }
}
.kk-panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.kk-panel-header {
  padding: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.kk-panel-body {
  padding: 20px;
}
.kk-status-row {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kk-status-row strong {
  font-weight: 600;
  color: #111827;
}
.kk-member-pill {
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  transition: all 0.2s;
}

.kk-member-pill:hover {
  background: #e0e7ff;
}
.kk-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* ===== TASKS TAB ===== */

.kk-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.kk-task-toolbar {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}

.kk-filter-select {
  max-width: 220px;
  border-radius: 10px !important;
  font-size: 13px;
}

.kk-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-task-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kk-task-item:hover {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.kk-task-content {
  flex: 1;
  min-width: 0;
}

.kk-task-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.kk-task-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-task-title {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
}

.kk-task-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.kk-task-description {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.kk-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.kk-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.kk-icon-btn:hover {
  background: #eff6ff;
}

.kk-empty-state {
  text-align: center;
  padding: 42px 20px;
}

.kk-empty-state h3 {
  font-size: 16px !important;
  font-weight: 650 !important;
  margin-bottom: 6px;
  color: #0f172a !important;
}

.kk-empty-state p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .kk-task-header,
  .kk-task-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-filter-select {
    max-width: 100%;
  }

  .kk-task-main {
    flex-direction: column;
  }
}

/* ===== DEADLINES ===== */
.kk-deadline-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  margin-bottom: 12px;
  background: #fff;
  transition: all 0.2s;
}

.kk-deadline-item:hover {
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}

.kk-deadline-left {
  display: flex;
  gap: 14px;
}

.kk-deadline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: #f59e0b;
}

.kk-deadline-dot.hard {
  background: #ef4444;
}

.kk-deadline-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.kk-deadline-title-row h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.kk-deadline-description {
  font-size: 13px;
  color: #64748b;
  margin: 6px 0;
}

.kk-deadline-links {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  gap: 10px;
}

.kk-deadline-date {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}

.kk-deadline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kk-btn-light {
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid rgba(15,23,42,0.06);
}
/* ===== PAPERS TAB ===== */

.kk-paper-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-paper-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.kk-paper-item:hover {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.kk-paper-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-paper-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-paper-content {
  min-width: 0;
}

.kk-paper-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.kk-paper-title-row h4 {
  font-size: 14px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 768px) {
  .kk-paper-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-paper-item .kk-btn-light {
    width: fit-content;
  }
}
/* ===== PROJECTS TAB ===== */

.kk-project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.kk-project-item:hover {
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.kk-project-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-project-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fffbeb;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-project-content {
  min-width: 0;
}

.kk-project-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.kk-project-title-row h4 {
  font-size: 14px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 768px) {
  .kk-project-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-project-item .kk-btn-light {
    width: fit-content;
  }
}
/* ===== NOTES TAB ===== */

.kk-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kk-note-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 18px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.kk-note-card:hover {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.kk-note-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.kk-note-main {
  min-width: 0;
}

.kk-note-type {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.kk-note-main h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
  line-height: 1.35;
}

.kk-note-content {
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.kk-note-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.kk-note-footer strong {
  color: #475569;
  font-weight: 600;
}

@media (max-width: 1199px) {
  .kk-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .kk-note-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== DOCUMENTS TAB ===== */

/* grid más limpio y consistente */
.kk-panel-body .document-grid,
.kk-panel-body .row {
  gap: 16px;
}

/* cards de documentos (override suave) */
.document-card,
.kk-panel-body .card {
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

/* hover premium */
.document-card:hover,
.kk-panel-body .card:hover {
  border-color: rgba(59, 130, 246, 0.22) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

/* títulos dentro del documento */
.document-card h5,
.document-card h6 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

/* texto secundario */
.document-card p {
  font-size: 13px;
  color: #64748b;
}
.kk-hero-card .kk-title {
  font-size: 25px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
}
.kk-hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
  margin-bottom: 22px !important;
}

.kk-hero-inner {
  width: 100%;
}

/* ===== RESEARCH LINES INDEX ===== */

.kk-line-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.kk-line-item:hover {
  color: inherit;
  border-color: rgba(34, 197, 94, 0.35) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-line-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-line-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kk-line-content {
  min-width: 0;
}

.kk-line-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-line-title-row h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-line-content p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.kk-line-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.kk-line-meta span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 3px;
}

.kk-line-meta strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
}

.kk-line-arrow {
  color: #2563eb;
  font-weight: 700;
  font-size: 18px;
}

@media (max-width: 768px) {
  .kk-line-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-line-meta {
    justify-content: space-between;
  }
}

/* ===== MODALS ===== */

.modal-content {
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22) !important;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #ffffff;
}

.modal-title {
  font-size: 16px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
}

.modal-body {
  padding: 24px !important;
  background: #ffffff;
}

.modal-footer {
  padding: 18px 24px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #f8fafc;
}

.form-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 8px !important;
}

.form-control,
.form-select {
  min-height: 44px;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  background-color: #ffffff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

textarea.form-control {
  min-height: 120px;
}

.btn-close {
  opacity: 0.6;
}

.btn-close:hover {
  opacity: 1;
}
/* ===== PROJECTS INDEX ===== */

.kk-project-index-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-project-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.kk-project-index-item:hover {
  color: inherit;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-project-index-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-project-index-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fffbeb;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-project-index-content {
  min-width: 0;
}

.kk-project-index-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-project-index-title-row h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-project-index-content p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.kk-project-index-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.kk-project-index-meta span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 3px;
}

.kk-project-index-meta strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .kk-project-index-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-project-index-meta {
    justify-content: space-between;
  }
}
/* ===== LINKED ITEMS ===== */

.kk-linked-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-linked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kk-linked-item:hover {
  color: inherit;
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.kk-linked-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-linked-main h4 {
  font-size: 14px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0 0 5px;
}

.kk-linked-main p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.kk-linked-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .kk-linked-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-linked-actions {
    justify-content: space-between;
  }
}
/* reutilizable entre líneas y proyectos */
.kk-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-task-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: #fff;
  transition: all .2s ease;
}

.kk-task-item:hover {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.kk-task-content {
  flex: 1;
}

.kk-task-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.kk-task-title {
  font-weight: 600;
  color: #0f172a;
}

.kk-task-description {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0;
}

.kk-task-deadline {
  font-size: 12px;
  color: #94a3b8;
}

.kk-task-done {
  text-decoration: line-through;
  opacity: 0.6;
}

.kk-task-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.kk-btn-danger {
  color: #dc2626 !important;
}

.kk-btn-danger:hover {
  background: #fef2f2 !important;
  border-color: rgba(220, 38, 38, 0.18) !important;
}
/* ===== PAPERS INDEX ===== */

.kk-paper-index-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-paper-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.kk-paper-index-item:hover {
  color: inherit;
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-paper-index-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-paper-index-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-paper-index-content {
  min-width: 0;
}

.kk-paper-index-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-paper-index-title-row h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-paper-index-content p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.kk-paper-index-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.kk-paper-index-meta span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 3px;
}

.kk-paper-index-meta strong {
  display: block;
  max-width: 180px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .kk-paper-index-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-paper-index-meta {
    justify-content: space-between;
  }
}
/* HOVER VERDE PARA LÍNEAS */

.kk-line-index-item:hover,
.kk-linked-item:hover {
  border-color: rgba(34, 197, 94, 0.28) !important; /* verde */
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.08);
}
.kk-paper-hero-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.kk-relation-block h4 {
  font-size: 14px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0 0 12px;
}
/* ===== HOME ===== */

.kk-home-hero {
  margin-bottom: 24px;
}

.kk-home-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 650;
}
.kk-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kk-quick-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.kk-quick-card:hover {
  color: inherit;
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-quick-card h4 {
  font-size: 14px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0 0 4px;
}

.kk-quick-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1199px) {
  .kk-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .kk-quick-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== CONFERENCES INDEX ===== */

.kk-conference-index-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-conference-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.kk-conference-index-item:hover {
  color: inherit;
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-conference-index-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-conference-index-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f5f3ff;
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-conference-index-content {
  min-width: 0;
}

.kk-conference-index-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-conference-index-title-row h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-conference-index-content p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.kk-conference-index-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.kk-conference-index-meta span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 3px;
}

.kk-conference-index-meta strong {
  display: block;
  max-width: 180px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .kk-conference-index-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-conference-index-meta {
    justify-content: space-between;
  }
}
.kk-conference-hero-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #f5f3ff;
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
/* SIDEBAR BASE */
/* ===== PREMIUM SIDEBAR ===== */

.kk-sidebar {
  background: #0e1726 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.kk-sidebar-brand {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kk-sidebar-logo {
  display: flex;
  align-items: center;
}

.kk-sidebar-logo img {
  max-height: 42px;
  object-fit: contain;
}

.kk-workspace-switcher {
  padding: 16px;
}

.kk-workspace-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: all 0.2s ease;
}

.kk-workspace-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.32);
}

.kk-workspace-info {
  min-width: 0;
}

.kk-workspace-info span {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kk-workspace-info strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  max-width: 175px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kk-workspace-btn iconify-icon {
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
}

.kk-sidebar-menu-area {
  padding: 4px 12px 24px;
}

.kk-sidebar-menu {
  padding: 0;
}

.kk-sidebar-section-title {
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 18px 10px 8px !important;
}

.kk-sidebar-menu li a {
  position: relative;
  min-height: 42px;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 14px;
  font-weight: 500;
  gap: 11px;
  transition: all 0.2s ease;
}

.kk-sidebar-menu li a:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

.kk-sidebar-menu li a.active {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.18),
    rgba(59, 130, 246, 0.07)
  ) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.kk-sidebar-menu li a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: #3b82f6;
}

.kk-sidebar-menu .menu-icon {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 19px !important;
  transition: all 0.2s ease;
}

.kk-sidebar-menu li a:hover .menu-icon,
.kk-sidebar-menu li a.active .menu-icon {
  color: #60a5fa !important;
  opacity: 1;
}

.kk-sidebar-menu li a span {
  color: inherit !important;
}

.kk-sidebar-pro-badge {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24 !important;
  font-size: 11px;
  font-weight: 700;
}

.kk-sidebar-close {
  color: #ffffff;
}

/* Opcional: scrollbar más limpia */
.kk-sidebar-menu-area::-webkit-scrollbar {
  width: 6px;
}

.kk-sidebar-menu-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* SIDEBAR CONTENEDOR */
.kk-sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER (logo + workspace) NO scrollea */
.kk-sidebar-brand,
.kk-workspace-switcher {
    flex-shrink: 0;
}

/* ZONA SCROLLEABLE */
.kk-sidebar-menu-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}
.kk-sidebar-menu-area::-webkit-scrollbar {
    width: 6px;
}

.kk-sidebar-menu-area::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}

.kk-sidebar-menu-area::-webkit-scrollbar-track {
    background: transparent;
}
/* BOTÓN WORKSPACE - eliminar azul bootstrap */
.kk-workspace-btn:focus,
.kk-workspace-btn:active,
.kk-workspace-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* también para dropdown toggle */
.kk-workspace-btn.show {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
}

/* texto siempre legible */
.kk-workspace-btn,
.kk-workspace-btn * {
    color: #fff !important;
}
/* ===== NOTES INDEX ===== */

.kk-panel-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.kk-panel-note iconify-icon {
  color: #d97706;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-panel-note h4 {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0 0 4px;
}

.kk-panel-note p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.kk-note-context {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
/* ===== DOCUMENTATION INDEX ===== */

.kk-doc-type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-doc-type-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  column-gap: 25px;
  row-gap: 8px;
}

.kk-doc-type-row span {
  color: #64748b;
  font-size: 14px;
}

.kk-doc-type-row strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
}

.kk-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kk-doc-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: all 0.2s ease;
}

.kk-doc-card:hover {
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-doc-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.kk-doc-card-body h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0 0 8px;
}

.kk-doc-card-body p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.kk-doc-source {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 12px;
}

.kk-doc-source span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kk-doc-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.kk-doc-card-footer small {
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 1199px) {
  .kk-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .kk-doc-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== KANBAN PREMIUM ===== */

.kk-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.kk-kanban-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(330px, 1fr));
  gap: 18px;
  align-items: flex-start;
}

.kk-kanban-column {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  min-height: 420px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  width: 100%;
  min-width: 0; /* 🔥 MUY IMPORTANTE */
}

.kk-kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.kk-kanban-column-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kk-kanban-column-title h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-kanban-count {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.kk-kanban-add {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.kk-kanban-add:hover {
  background: #eff6ff;
  color: #2563eb;
}

.kk-kanban-column-body {
  padding: 16px;
}

.kk-kanban-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  transition: all .2s ease;
  cursor: grab;
}

.kk-kanban-card:hover {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-kanban-card:active {
  cursor: grabbing;
}

.kk-kanban-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 8px;
}

.kk-kanban-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 12px;
}

.kk-kanban-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}

.kk-kanban-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.kk-kanban-link-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.kk-kanban-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.kk-kanban-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 13px;
}

.kk-kanban-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kk-kanban-empty {
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}
.kk-kanban-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* responsive */
@media (max-width: 1200px) {
  .kk-kanban-board {
    grid-template-columns: 1fr;
  }
}
.dashboard-main-body {
  overflow-x: hidden;
}
.kk-kanban-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kk-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.kk-priority-alta {
  background: #fee2e2;
  color: #dc2626;
}

.kk-priority-media {
  background: #dbeafe;
  color: #2563eb;
}

.kk-priority-baja {
  background: #dcfce7;
  color: #16a34a;
}

.kk-dot-project {
  background: #475569;
}

.kk-dot-paper {
  background: #2563eb;
}

.kk-dot-line {
  background: #8b5cf6;
}

.kk-kanban-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kk-member-mini {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.kk-kanban-add-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 10px;
  padding: 14px;

  border-radius: 0 0 18px 18px;
  border: 1px dashed rgba(15, 23, 42, 0.12);

  background: transparent;
  color: #64748b;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  transition: all .2s ease;
}

.kk-kanban-add-zone:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  color: #2563eb;
}
.kk-kanban-add-zone {
  outline: none; /* 🔥 quita el borde raro */
  box-shadow: none;
}

.kk-kanban-add-zone:focus,
.kk-kanban-add-zone:active {
  outline: none;
  box-shadow: none;
}
.kk-header-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kk-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.kk-home-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.kk-hero-description {
  color: #64748b;
  font-size: 14px;
  max-width: 520px;
}

/* botón más premium */
.kk-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.kk-primary-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.kk-premium-header {
    position: relative;
    overflow: hidden;
}

.kk-premium-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    pointer-events: none;
}

.kk-stat-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.kk-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.kk-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.kk-funding-card {
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kk-funding-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.kk-funding-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kk-deadline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.kk-deadline-pill.is-urgent {
    color: #b91c1c;
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.14);
}

.kk-funding-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kk-funding-meta > div {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 14px;
}

.kk-funding-meta span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kk-funding-meta strong {
    font-size: 15px;
    color: #0f172a;
}

.kk-funding-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kk-empty-state {
    border-style: dashed;
}

.kk-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.kk-show-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
}

.kk-show-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.kk-show-hero-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.kk-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.kk-detail-card {
    overflow: hidden;
}

.kk-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.kk-detail-item {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 15px;
}

.kk-detail-item-wide {
    grid-column: span 2;
}

.kk-detail-item span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.kk-detail-item strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.45;
}

.kk-description-box {
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 18px;
}

.kk-timeline-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.kk-timeline-point {
    position: relative;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 16px;
}

.kk-timeline-point::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #2563eb;
    margin-bottom: 10px;
}

.kk-timeline-point span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kk-timeline-point strong {
    color: #0f172a;
    font-size: 15px;
}

.kk-side-card {
    position: relative;
}

.kk-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 14px 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    transition: all .18s ease;
}

.kk-link-card:hover {
    background: #eef6ff;
    border-color: rgba(37, 99, 235, 0.18);
    color: #2563eb;
}

.kk-link-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kk-related-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.kk-related-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.kk-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.kk-member-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.kk-member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.09);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .kk-show-hero-inner {
        flex-direction: column;
    }

    .kk-detail-grid,
    .kk-timeline-strip {
        grid-template-columns: 1fr;
    }

    .kk-detail-item-wide {
        grid-column: span 1;
    }

    .kk-show-hero-actions {
        width: 100%;
    }

    .kk-show-hero-actions .btn {
        flex: 1;
    }
}
/* ===== FUNDING CALLS INDEX ===== */

.kk-funding-index-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-funding-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.kk-funding-index-item:hover {
  color: inherit;
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-funding-index-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-funding-index-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-funding-index-content {
  min-width: 0;
}

.kk-funding-index-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-funding-index-title-row h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-funding-index-content p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.kk-funding-index-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.kk-funding-index-meta span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 3px;
}

.kk-funding-index-meta strong {
  display: block;
  max-width: 160px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 992px) {
  .kk-funding-index-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-funding-index-meta {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}
/* ===== FUNDING CALLS SHOW ===== */

.kk-show-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

.kk-show-hero::after {
  display: none !important;
}

.kk-show-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.kk-show-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.kk-deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.kk-deadline-pill.is-urgent {
  color: #dc2626;
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.18);
}

/* Stats: hacerlos como las métricas de proyectos */
.kk-stat-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 118px;
  position: relative;
  overflow: hidden;
}

.kk-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3b82f6;
  opacity: 0.15;
}

.kk-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kk-stat-card h4 {
  font-size: 20px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin-top: 2px !important;
}

/* Detail cards como paneles compactos */
.kk-detail-card,
.kk-side-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
  padding: 20px !important;
}

.kk-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.kk-card-title-row h5,
.kk-side-card h5 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
}

/* Grid de campos más parecido al dashboard */
.kk-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kk-detail-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.kk-detail-item-wide {
  grid-column: span 2;
}

.kk-detail-item span,
.kk-timeline-point span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 5px;
}

.kk-detail-item strong,
.kk-timeline-point strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.kk-description-box {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -20px;
  padding: 18px 20px 20px;
}

.kk-description-box p {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

/* Fechas */
.kk-timeline-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kk-timeline-point {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.kk-timeline-point::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  margin-bottom: 10px;
}

/* Sidebar */
.kk-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: all 0.2s ease;
}

.kk-link-card:hover {
  color: #2563eb;
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.22);
}

.kk-link-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kk-related-row,
.kk-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.kk-related-row {
  justify-content: space-between;
}

.kk-related-row:last-child,
.kk-member-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kk-member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .kk-show-hero-inner {
    flex-direction: column;
  }

  .kk-show-hero-actions {
    width: 100%;
  }

  .kk-show-hero-actions .btn {
    flex: 1;
  }

  .kk-detail-grid,
  .kk-timeline-strip {
    grid-template-columns: 1fr;
  }

  .kk-detail-item-wide {
    grid-column: span 1;
  }
}
/* ===== FUNDING CALLS FORMS ===== */

.kk-form-section {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 20px;
}

.kk-form-section h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0 0 18px;
}

.kk-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kk-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.kk-check-row:hover {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.22);
}

.kk-check-row span {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.kk-form-actions {
  position: sticky;
  bottom: 20px;
}
/* ===== TEAM INDEX ===== */

.kk-team-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-team-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.kk-team-item:hover {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kk-team-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kk-team-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.kk-team-content {
  min-width: 0;
}

.kk-team-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.kk-team-title-row h4 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  margin: 0;
}

.kk-team-content p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.kk-team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.kk-team-tags span {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.kk-team-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.kk-team-meta span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 3px;
}

.kk-team-meta strong {
  display: block;
  max-width: 160px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kk-team-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 992px) {
  .kk-team-item {
    flex-direction: column;
    align-items: stretch;
  }

  .kk-team-meta {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .kk-team-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* ===== TEAM SHOW ===== */

.kk-context-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  height: 100%;
}

.kk-context-card h4 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 2px;
}

.kk-context-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.kk-muted {
  color: #64748b;
}
.kk-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kk-context-card {
  min-width: 0;
}

@media (max-width: 991px) {
  .kk-context-grid {
    grid-template-columns: 1fr;
  }
}
.kk-operativo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Responsive */
@media (max-width: 991px) {
  .kk-operativo-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== PLAN USAGE ===== */

.kk-plan-usage-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 20px;
}

.kk-plan-usage-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kk-plan-usage-main h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.kk-plan-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.kk-plan-progress > div {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .kk-plan-usage-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .kk-plan-usage-main .btn {
    width: 100%;
  }
}
/* ===== PRICING ===== */

.kk-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kk-pricing-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.kk-pricing-card.is-featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
}

.kk-pricing-card.is-current {
  border-color: rgba(34, 197, 94, 0.35);
}

.kk-pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.kk-pricing-top h3 {
  font-size: 24px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  margin: 6px 0 8px;
}

.kk-pricing-top p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.kk-pricing-price {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 24px 0;
}

.kk-pricing-price strong {
  font-size: 38px;
  line-height: 1;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.kk-pricing-price span {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 4px;
}

.kk-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.kk-pricing-features li {
  color: #334155;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.kk-pricing-features li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.kk-pricing-current-plan {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 18px;
  text-align: right;
}

.kk-pricing-current-plan span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.kk-pricing-current-plan strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 750;
}

@media (max-width: 1199px) {
  .kk-pricing-grid {
    grid-template-columns: 1fr;
  }

  .kk-pricing-current-plan {
    text-align: left;
  }
}
.kk-locked {
    opacity: 0.6;
    position: relative;
}

.kk-locked:hover {
    opacity: 0.85;
    cursor: pointer;
}

/* Opcional: iconito de candado */
.kk-locked::after {
    content: "🔒";
    font-size: 12px;
    margin-left: 6px;
}
.kk-sidebar-menu a.kk-sidebar-locked {
    opacity: 0.48;
    filter: grayscale(1);
}

.kk-sidebar-menu a.kk-sidebar-locked:hover {
    opacity: 0.75;
    filter: grayscale(0.4);
}

.kk-sidebar-lock {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.kk-sidebar-menu a.kk-sidebar-locked span:not(.kk-sidebar-lock),
.kk-sidebar-menu a.kk-sidebar-locked .menu-icon {
    color: #94a3b8 !important;
}
.kk-pricing-upgrade-card {
    position: relative;
    padding: 28px;
}

.kk-billing-switch {
    display: inline-flex;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 999px;
    gap: 4px;
}

.kk-billing-option {
    border: 0;
    background: transparent;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.kk-billing-option.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.kk-billing-option span {
    margin-left: 6px;
    color: #16a34a;
    font-size: 12px;
}

.kk-members-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
}

.kk-members-selector h4 {
    margin-bottom: 4px;
    font-size: 18px;
}

.kk-members-selector p {
    margin-bottom: 0;
    color: #64748b;
}

.kk-members-control {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.kk-members-control button {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 22px;
    line-height: 1;
}

.kk-members-control div {
    min-width: 96px;
    text-align: center;
}

.kk-members-control strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
}

.kk-members-control span {
    font-size: 12px;
    color: #64748b;
}
.kk-pricing-change-summary {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.kk-pricing-change-summary strong {
    display: block;
    color: #0f172a;
    margin-bottom: 4px;
}

.kk-pricing-change-summary span {
    display: block;
    color: #64748b;
    font-size: 14px;
}

#upgradeWorkspaceBtn.disabled {
    pointer-events: none;
    opacity: 0.65;
}
.kk-pricing-total-box {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e2e8f0;
}

.kk-pricing-total-box span {
    display: block;
    color: #64748b;
    font-size: 14px;
}

.kk-pricing-total-box strong {
    display: inline-block;
    margin-top: 4px;
    font-size: 34px;
    color: #0f172a;
}

.kk-pricing-total-box small {
    color: #64748b;
}

.kk-pricing-total-box p {
    max-width: 280px;
    margin-bottom: 0;
    color: #475569;
    font-size: 14px;
}

.kk-pricing-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.kk-pricing-actions small {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    text-align: center;
    font-size: 12px;
}

.kk-upgrade-reasons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kk-upgrade-reason {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.kk-upgrade-reason iconify-icon {
    font-size: 22px;
    color: #2563eb;
    flex-shrink: 0;
}

.kk-upgrade-reason strong {
    display: block;
    color: #0f172a;
    margin-bottom: 3px;
}

.kk-upgrade-reason span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.kk-institutional-mini {
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.kk-institutional-mini h4 {
    margin-bottom: 8px;
}

.kk-institutional-mini p {
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .kk-members-selector,
    .kk-pricing-total-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .kk-pricing-features-grid {
        grid-template-columns: 1fr;
    }

    .kk-members-control {
        width: 100%;
        justify-content: space-between;
    }
}