/* =========================================================
   UNIVERSIDAD HUELLAS DE VIDA — Modalidades
   ========================================================= */
.mode-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.mode-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--c-heading);
  transition: border-color var(--t-base), transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.mode-tab span {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--c-navy-50);
  color: var(--c-navy);
  transition: background-color var(--t-base), color var(--t-base);
}
.mode-tab svg { width: 22px; height: 22px; }
.mode-tab:hover { border-color: var(--c-navy); transform: translateY(-3px); box-shadow: var(--sh-md); }
.mode-tab:hover span { background: var(--c-red); color: #fff; }

.mode-detail { scroll-margin-top: calc(var(--header-h) + 8px); }
.mode-detail--alt { background: var(--bg-alt); }
.mode-detail .split__title { display: flex; align-items: center; gap: 0.9rem; }
.mode-detail__icon {
  width: 56px; height: 56px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--c-red);
  color: #fff;
}
.mode-detail__icon svg { width: 28px; height: 28px; }

.audience {
  display: flex;
  gap: 1rem;
  margin-top: var(--sp-6);
  padding: 1.2rem 1.3rem;
  border-radius: var(--r-md);
  background: var(--c-navy-50);
}
.mode-detail--alt .audience { background: #fff; }
.audience > svg { width: 26px; height: 26px; flex: none; color: var(--c-navy); }
.audience strong { color: var(--c-heading); }
.audience p { margin-top: 0.25rem; font-size: 0.94rem; color: var(--text-muted); line-height: 1.55; }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { padding: 1.05rem 1.2rem; text-align: left; border-bottom: 1px solid var(--c-gray-100); vertical-align: top; }
.compare thead th { background: var(--c-navy); color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; }
.compare tbody th { color: var(--c-heading); font-weight: 700; background: var(--c-gray-50); width: 20%; }
.compare td { color: var(--text-muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td[colspan] { text-align: center; font-style: italic; color: var(--c-purple); }

@media (max-width: 1024px) { .mode-tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .mode-tab { padding: 0.9rem; font-size: 0.92rem; } }

/* ---------- Educación virtual ---------- */
.virtual-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-7); }
.virtual-feature { padding: 1.6rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); }
.virtual-feature h3 { margin-top: 1rem; font-size: 1.08rem; }
.virtual-feature p { margin-top: 0.4rem; font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }
.mode-tabs--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
.compare--two { min-width: 560px; }
.compare--two td[colspan] { font-style: normal; color: var(--c-navy); font-weight: 700; }
@media (max-width: 1024px) { .virtual-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .virtual-features { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .mode-tabs--two { grid-template-columns: 1fr; } }
