/**
 * Estilos preestablecidos — transformación fuerte por data-ti-preset
 */

.teducas-indutech-panel[data-ti-preset] {
  transition: background-color 0.35s ease;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SELECTOR DE ESTILOS — botón en cabecera + modal (demo)
   ═══════════════════════════════════════════════════════════════ */

.ti-preset-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ti-preset-trigger-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.ti-color-theme-trigger {
  margin-right: 0.35rem;
}

.teducas-indutech-panel.is-demo .ti-header .ti-user {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ti-preset-modal-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ti-switcher-border, var(--ti-border, #e2e8f0));
}

.ti-preset-modal-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ti-switcher-title, var(--ti-heading, #1a365d));
  text-align: center;
}

.ti-color-theme-card.is-active {
  background: var(--ti-switcher-card-active-bg, var(--ti-primary, #1a365d));
  border-color: var(--ti-switcher-card-active-border, var(--ti-primary, #1a365d));
  color: var(--ti-switcher-card-active-text, #fff);
}

/* Cabecera oscura (Brutal): botones ghost legibles */
.teducas-indutech-panel[data-ti-preset="impact"] .ti-header .ti-btn.ti-btn-ghost,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-header .ti-preset-trigger {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--ti-ghost-text, #fff);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-header .ti-btn.ti-btn-ghost:hover,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-header .ti-preset-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--ti-accent, #f6c90e);
  color: var(--ti-ghost-hover-text, #fff);
}

/* Cabecera clara: título y pestañas siguen el tema de color */
.teducas-indutech-panel[data-ti-preset]:not([data-ti-preset="impact"]) .ti-title {
  color: var(--ti-heading, var(--ti-text, #1a365d));
}

.teducas-indutech-panel[data-ti-preset]:not([data-ti-preset="impact"]):not([data-ti-preset="sidebar"]) .ti-nav button:not(.is-active):not(:hover) {
  color: var(--ti-text, #2d3748);
}

.teducas-indutech-panel[data-ti-preset]:not([data-ti-preset="impact"]):not([data-ti-preset="sidebar"]) .ti-nav button:not(.is-active):hover {
  background: var(--ti-nav-hover-bg, var(--ti-primary, #1a365d));
  border-color: var(--ti-nav-hover-border, var(--ti-primary, #1a365d));
  color: var(--ti-nav-hover-text, #fff);
}

.teducas-indutech-panel > .ti-preset-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  margin: 0;
  pointer-events: none;
}

.teducas-indutech-panel > .ti-preset-modal:not([hidden]) {
  pointer-events: auto;
}

.ti-preset-modal[hidden] {
  display: none !important;
}

.ti-preset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.ti-preset-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  margin: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--ti-switcher-bg, var(--ti-card-bg, #fff));
  border: 2px solid var(--ti-switcher-border, var(--ti-border, #e2e8f0));
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.ti-preset-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--ti-card-muted-bg, #edf2f7);
  color: var(--ti-text, #1a202c);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.ti-preset-modal-close:hover {
  background: var(--ti-primary, #1a365d);
  color: var(--ti-nav-active-text, #fff);
}

body.ti-preset-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .ti-preset-trigger-label {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ti-preset-modal-dialog {
    padding: 1.15rem 1rem 1.25rem;
  }
}

.ti-preset-switcher-head {
  margin-bottom: 1rem;
  text-align: center;
}

.ti-preset-switcher-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ti-switcher-desc, var(--ti-muted, #718096));
}

.ti-preset-switcher-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ti-switcher-title, var(--ti-heading, #1a365d));
}

.ti-preset-switcher-desc {
  margin: 0 auto;
  max-width: 36em;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ti-switcher-desc, var(--ti-muted, #718096));
}

.ti-preset-switcher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .ti-preset-switcher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .ti-preset-switcher-grid {
    grid-template-columns: 1fr;
  }
}

.ti-preset-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--ti-switcher-card-border, var(--ti-border, #e2e8f0));
  border-radius: 10px;
  background: var(--ti-switcher-card-bg, var(--ti-card-muted-bg, #f7fafc));
  color: var(--ti-switcher-card-text, var(--ti-text, #1a202c));
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ti-preset-card:hover:not(.is-active) {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  background: var(--ti-switcher-card-hover-bg, var(--ti-switcher-card-bg, #f7fafc));
  border-color: var(--ti-switcher-card-hover-border, var(--ti-accent, #3182ce));
  color: var(--ti-switcher-card-hover-text, var(--ti-switcher-card-text, #1a202c));
}

.ti-preset-card.is-active {
  background: var(--ti-switcher-card-active-bg, var(--ti-primary, #1a365d));
  border-color: var(--ti-switcher-card-active-border, var(--ti-primary, #1a365d));
  color: var(--ti-switcher-card-active-text, #fff);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.ti-preset-card-icon {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.85;
}

.ti-preset-card-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Miniaturas de vista previa */
.ti-preset-preview {
  display: block;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}

.ti-preset-preview-bar {
  display: block;
  height: 14px;
  background: #cbd5e0;
}

.ti-preset-preview-nav {
  display: block;
  height: 10px;
  margin: 6px 8px;
  background: #a0aec0;
  border-radius: 4px;
  width: 55%;
}

.ti-preset-preview-cards {
  display: flex;
  gap: 4px;
  padding: 0 8px 8px;
}

.ti-preset-preview-cards span {
  flex: 1;
  height: 28px;
  background: #fff;
  border-radius: 3px;
}

.ti-preset-preview--classic .ti-preset-preview-bar { background: var(--ti-primary, #1a365d); }
.ti-preset-preview--classic .ti-preset-preview-cards span { border: 1px solid #cbd5e0; border-radius: 2px; }

.ti-preset-preview--rounded {
  background: linear-gradient(160deg, #edf2f7 0%, #fff 100%);
  border-radius: 12px;
}
.ti-preset-preview--rounded .ti-preset-preview-bar { display: none; }
.ti-preset-preview--rounded .ti-preset-preview-nav {
  width: 80%;
  margin: 10px auto 6px;
  border-radius: 999px;
  height: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ti-preset-preview--rounded .ti-preset-preview-cards span {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  border: none;
}

.ti-preset-preview--impact {
  background: #1a202c;
  border-radius: 2px;
}
.ti-preset-preview--impact .ti-preset-preview-bar {
  height: 18px;
  background: var(--ti-accent, #f6c90e);
}
.ti-preset-preview--impact .ti-preset-preview-nav {
  width: 100%;
  margin: 0;
  border-radius: 0;
  height: 8px;
  background: #4a5568;
}
.ti-preset-preview--impact .ti-preset-preview-cards span {
  border-radius: 0;
  border-left: 3px solid var(--ti-accent, #f6c90e);
  background: #2d3748;
}

.ti-preset-preview--sidebar {
  display: flex;
  flex-direction: row;
  background: var(--ti-card-muted-bg, #edf2f7);
}

.ti-preset-preview--sidebar .ti-preset-preview-bar,
.ti-preset-preview--sidebar .ti-preset-preview-nav {
  display: none;
}

.ti-preset-preview--sidebar::before {
  content: '';
  display: block;
  width: 34%;
  min-height: 100%;
  background: linear-gradient(180deg, var(--ti-primary, #1a365d) 0%, var(--ti-secondary, #2c5282) 100%);
}

.ti-preset-preview--sidebar .ti-preset-preview-cards {
  flex: 1;
  flex-direction: column;
  padding: 8px;
  gap: 5px;
}

.ti-preset-preview--sidebar .ti-preset-preview-cards span {
  height: 12px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ti-preset-card.is-active .ti-preset-preview {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CORPORATIVO (classic) — intranet tradicional
   ═══════════════════════════════════════════════════════════════ */

.teducas-indutech-panel[data-ti-preset="classic"] {
  padding: 0;
}

.teducas-indutech-panel[data-ti-preset="classic"] .ti-header {
  border-bottom: 1px solid var(--ti-border, #e2e8f0);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.teducas-indutech-panel[data-ti-preset="classic"] .ti-nav {
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.teducas-indutech-panel[data-ti-preset="classic"] .ti-nav button {
  border-radius: 8px;
  border: 1px solid var(--ti-border, #e2e8f0);
  background: var(--ti-card-bg, #fff);
  color: var(--ti-text, #2d3748);
  padding: 0.45rem 0.95rem;
}

.teducas-indutech-panel[data-ti-preset="classic"] .ti-nav button.is-active,
.teducas-indutech-panel[data-ti-preset="classic"] .ti-nav button.is-active:hover {
  background: var(--ti-nav-active-bg, var(--ti-primary, #1a365d));
  border-color: var(--ti-nav-active-bg, var(--ti-primary, #1a365d));
  color: var(--ti-nav-active-text, #fff);
}

.teducas-indutech-panel[data-ti-preset="classic"] .ti-card,
.teducas-indutech-panel[data-ti-preset="classic"] .ti-chart-box,
.teducas-indutech-panel[data-ti-preset="classic"] .ti-table-wrap,
.teducas-indutech-panel[data-ti-preset="classic"] .ti-form,
.teducas-indutech-panel[data-ti-preset="classic"] .ti-toolbar {
  border-radius: 12px;
  border: 1px solid var(--ti-border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.teducas-indutech-panel[data-ti-preset="classic"] .ti-card-value {
  font-size: 1.65rem;
}

.teducas-indutech-panel[data-ti-preset="classic"] table.ti-table thead th {
  background-color: var(--ti-table-header-bg, var(--ti-primary, #1a365d));
  color: var(--ti-table-header-text, #ffffff);
  -webkit-text-fill-color: currentColor;
}

.teducas-indutech-panel[data-ti-preset="classic"] .ti-btn {
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   SOFT UI (rounded) — app moderna, flotante
   ═══════════════════════════════════════════════════════════════ */

.teducas-indutech-panel[data-ti-preset="rounded"] {
  padding: 0;
  background: var(--ti-panel-bg, #edf2f7);
}

.teducas-indutech-panel[data-ti-preset="rounded"] > .ti-main {
  padding-top: 0.5rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-brand {
  flex-direction: column;
  align-items: center;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-user {
  margin-top: 0.75rem;
  justify-content: center;
  width: 100%;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-nav {
  justify-content: center;
  background: var(--ti-card-bg, #fff);
  padding: 0.4rem;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin: 0 auto 2rem;
  max-width: 100%;
  border: 1px solid var(--ti-border, #e2e8f0);
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-nav button {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ti-text, #2d3748);
  padding: 0.55rem 1.2rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-nav button:not(.is-active):hover {
  background: var(--ti-nav-hover-bg, var(--ti-primary, #1a365d));
  color: var(--ti-nav-hover-text, #fff);
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-nav button.is-active {
  background: var(--ti-nav-active-bg, var(--ti-primary, #1a365d));
  color: var(--ti-nav-active-text, #fff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-cards {
  gap: 1.25rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-card,
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-chart-box,
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-form,
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-area-item,
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-course-card,
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-toolbar {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 1.35rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-card {
  text-align: center;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-card-value {
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-card-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-charts {
  gap: 1.75rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-table-wrap {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.teducas-indutech-panel[data-ti-preset="rounded"] table.ti-table thead th {
  background-color: var(--ti-table-header-bg, transparent);
  color: var(--ti-table-header-text, var(--ti-label, #4a5568));
  -webkit-text-fill-color: currentColor;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ti-border, #e2e8f0);
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-table tbody tr:hover td {
  background: var(--ti-card-muted-bg, #f7fafc);
  border-radius: 8px;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-field select,
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-toolbar input:not([type="checkbox"]):not([type="radio"]),
.teducas-indutech-panel[data-ti-preset="rounded"] .ti-toolbar select {
  border-radius: 12px;
  padding: 0.7rem 1rem;
  border: none;
  background: var(--ti-card-muted-bg, #f7fafc);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-btn {
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-badge {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-users-note {
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.teducas-indutech-panel[data-ti-preset="rounded"] .ti-main h2 {
  text-align: center;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   BRUTAL (impact) — contraste fuerte, editorial
   ═══════════════════════════════════════════════════════════════ */

.teducas-indutech-panel[data-ti-preset="impact"] {
  padding: 0;
  overflow: visible;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-header {
  background: var(--ti-primary, #1a365d);
  color: var(--ti-nav-active-text, #fff);
  margin: 0 0 0;
  padding: 1.35rem 1.5rem;
  border-bottom: 4px solid var(--ti-accent, #3182ce);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-title,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-subtitle,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-user span {
  color: var(--ti-nav-active-text, #fff);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-subtitle {
  opacity: 0.85;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-logout {
  color: var(--ti-accent, #63b3ed);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-avatar {
  border-color: var(--ti-accent, #3182ce);
  border-width: 3px;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-title {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-nav {
  background: var(--ti-card-bg, #fff);
  margin: 0;
  padding: 0 1rem;
  gap: 0;
  border-bottom: 3px solid var(--ti-border, #e2e8f0);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-nav button {
  border: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  background: transparent;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--ti-muted, #718096);
  white-space: nowrap;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-nav button.is-active,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-nav button.is-active:hover {
  color: var(--ti-accent, #3182ce);
  border-bottom-color: var(--ti-accent, #3182ce);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-table th,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-table td {
  border-color: var(--ti-border, #e2e8f0);
}

.teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-header .ti-title,
.teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-header .ti-subtitle {
  color: var(--ti-heading, var(--ti-text, #1a365d));
}

.teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-header .ti-subtitle {
  color: var(--ti-muted, #718096);
}

.teducas-indutech-panel[data-ti-preset="impact"] > .ti-main {
  padding-top: var(--ti-shell-padding-y, 1.25rem);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-main h2 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  border-left: 5px solid var(--ti-accent, #3182ce);
  padding-left: 0.75rem;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-cards {
  gap: 1rem;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-card,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-chart-box,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-form,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-area-item {
  border-radius: 0;
  border: 2px solid var(--ti-border, #e2e8f0);
  border-left: 6px solid var(--ti-accent, #3182ce);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-card-label,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-toolbar > .ti-field > label,
.teducas-indutech-panel[data-ti-preset="impact"] .ti-field > label:not(.ti-check-item) {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 800;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-card-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-table-wrap {
  border-radius: 0;
  border: 2px solid var(--ti-border, #e2e8f0);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.teducas-indutech-panel[data-ti-preset="impact"] table.ti-table thead th {
  background-color: var(--ti-table-header-bg, var(--ti-primary, #1a365d));
  color: var(--ti-table-header-text, #ffffff);
  -webkit-text-fill-color: currentColor;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ti-accent, #3182ce);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-table tbody tr:nth-child(even) td {
  background: var(--ti-card-muted-bg, #f7fafc);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-table tbody td {
  border-bottom: 1px solid var(--ti-border, #e2e8f0);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-btn {
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-btn-primary {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(0, 0, 0, 0.15);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-btn-ghost {
  border-width: 2px;
  font-weight: 700;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-badge {
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-width: 2px;
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-users-note {
  border-radius: 0;
  border-width: 2px;
  border-left-width: 6px;
  border-left-color: var(--ti-accent, #3182ce);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-toolbar {
  border-radius: 0;
  border-width: 2px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.teducas-indutech-panel[data-ti-preset="impact"] .ti-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.teducas-indutech-panel[data-ti-preset="impact"] .ti-field select {
  border-radius: 0;
  border-width: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   PRESET: LATERAL — menú vertical + contenido principal
   ═══════════════════════════════════════════════════════════════ */

.teducas-indutech-panel[data-ti-preset="sidebar"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  align-items: stretch;
  overflow: visible;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  grid-template-rows: auto minmax(480px, 1fr);
  grid-template-areas:
    "head head"
    "side body";
}

.teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-header {
  grid-area: head;
  margin: 0;
  padding: 1.35rem clamp(1.5rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--ti-border, #e2e8f0);
  background: var(--ti-card-bg, #fff);
}

.teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-nav {
  grid-area: side;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.25rem;
  margin: 0;
  padding: 1.25rem 0.85rem 2rem;
  background: var(--ti-primary, #1a365d);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  align-self: stretch;
  min-height: 100%;
  min-width: 0;
}

.teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-main {
  grid-area: body;
  margin: 0;
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 3vw, 2.75rem);
  background: var(--ti-panel-bg, #f7fafc);
  min-height: 480px;
  overflow-x: auto;
}

.teducas-indutech-panel[data-ti-preset="sidebar"] .ti-nav button {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 0 10px 10px 0;
  border-left: 3px solid transparent;
  padding: 0.7rem 1rem;
  color: var(--ti-nav-sidebar-text, rgba(255, 255, 255, 0.88));
  background: transparent;
}

.teducas-indutech-panel[data-ti-preset="sidebar"] .ti-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--ti-accent, #3182ce);
  color: var(--ti-nav-sidebar-text-hover, #fff);
}

.teducas-indutech-panel[data-ti-preset="sidebar"] .ti-nav button.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-left-color: var(--ti-accent, #f6c90e);
  color: var(--ti-nav-active-text, #fff);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.teducas-indutech-panel[data-ti-preset="sidebar"] .ti-card,
.teducas-indutech-panel[data-ti-preset="sidebar"] .ti-chart-box,
.teducas-indutech-panel[data-ti-preset="sidebar"] .ti-toolbar {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.teducas-indutech-panel[data-ti-preset="sidebar"] .ti-table-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.teducas-indutech-panel[data-ti-preset="sidebar"] table.ti-table thead th {
  background-color: var(--ti-table-header-bg, var(--ti-card-muted-bg, #edf2f7));
  color: var(--ti-table-header-text, var(--ti-label, #4a5568));
  -webkit-text-fill-color: currentColor;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .teducas-indutech-panel[data-ti-preset="sidebar"] {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "head"
      "side"
      "body";
  }

  .teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.55rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--ti-border, #e2e8f0);
    position: static;
    -webkit-overflow-scrolling: touch;
  }

  .teducas-indutech-panel[data-ti-preset="sidebar"] .ti-nav button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 8px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .teducas-indutech-panel[data-ti-preset="sidebar"] .ti-nav button.is-active,
  .teducas-indutech-panel[data-ti-preset="sidebar"] .ti-nav button:hover {
    border-left: none;
    border-bottom-color: var(--ti-accent, #f6c90e);
  }

  .teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-header {
    padding: 1.15rem 1.25rem;
  }

  .teducas-indutech-panel[data-ti-preset="sidebar"] > .ti-main {
    padding: 1.35rem 1.25rem 1.75rem;
  }
}
