/* ══════════════════════════════════════════════════════════════════
   InverNovaK — Facultades Grid  [invkr_facultades]
   ══════════════════════════════════════════════════════════════════ */

.invkf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 2rem;
}

/* ── Card ──────────────────────────────────────────────────────── */
.invkf-card {
  background: #343D4E;
  border: 1px solid rgba(6, 119, 160, 0.30);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.invkf-card:hover {
  border-color: #0677A0;
  box-shadow: 0 0 0 1px rgba(6, 119, 160, 0.20), 0 4px 20px rgba(6, 119, 160, 0.15);
}
.invkf-card.is-open {
  border-color: #0677A0;
  box-shadow: 0 0 0 1px rgba(6, 119, 160, 0.15), 0 4px 24px rgba(0, 0, 0, .35);
}

/* ── Card header ───────────────────────────────────────────────── */
.invkf-card-hdr {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.125rem;
  cursor: pointer;
  user-select: none;
}

/* ── Icon square ───────────────────────────────────────────────── */
.invkf-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Text block ────────────────────────────────────────────────── */
.invkf-info { flex: 1; min-width: 0; }

.invkf-name {
  font-size: .9375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.invkf-count {
  font-size: .78rem;
  color: rgba(255, 255, 255, .40);
  margin-top: .2rem;
}

/* ── Toggle arrow (círculo con chevron) ────────────────────────── */
.invkf-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}
.invkf-chevron {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 2px solid rgba(255, 255, 255, .55) !important;
  border-bottom: 2px solid rgba(255, 255, 255, .55) !important;
  border-top: none !important;
  border-left: none !important;
  transform: rotate(45deg) translateY(-2px) !important;
  transition: transform .25s ease, border-color .15s ease !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.invkf-card-hdr:hover .invkf-toggle {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(255, 255, 255, .20) !important;
}
.invkf-card-hdr:hover .invkf-chevron {
  border-color: #fff !important;
}
.invkf-card.is-open .invkf-toggle {
  background: rgba(6, 119, 160, .12) !important;
  border-color: rgba(6, 119, 160, .35) !important;
}
.invkf-card.is-open .invkf-chevron {
  transform: rotate(225deg) translateY(2px) !important;
  border-color: rgba(255, 255, 255, .80) !important;
}

/* ── Courses list (accordion) ──────────────────────────────────── */
.invkf-courses {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
  border-top: 0px solid rgba(6, 119, 160, .20);
}
.invkf-card.is-open .invkf-courses {
  max-height: 800px;
  border-top-width: 1px;
}

/* ── Course item ───────────────────────────────────────────────── */
.invkf-course-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.125rem;
  color: rgba(255, 255, 255, .60);
  font-size: .84rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background .15s ease, color .15s ease;
}
.invkf-course-item:last-child { border-bottom: none; }
.invkf-course-item:hover {
  background: rgba(6, 119, 160, .08);
  color: #fff;
}
.invkf-course-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invkf-course-item svg {
  color: rgba(255, 255, 255, .28);
  flex-shrink: 0;
  transition: color .15s ease, transform .15s ease;
}
.invkf-course-item:hover svg {
  color: rgba(255, 255, 255, .70);
  transform: translateX(2px);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .invkf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .invkf-grid { grid-template-columns: 1fr; gap: .75rem; }
  .invkf-card-hdr { padding: 1rem; }
}
