.tef-root,
.tef-root * {
  box-sizing: border-box;
}

.tef-root {
  --tef-green: #9cff2e;
  --tef-bg: #020706;
  width: 100vw;
  min-height: 100vh;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow: auto;
  background:
    radial-gradient(circle at 48% 0%, rgba(156,255,46,.20), transparent 24%),
    radial-gradient(circle at 12% 50%, rgba(22,255,170,.09), transparent 28%),
    radial-gradient(circle at 93% 18%, rgba(255,49,84,.11), transparent 28%),
    linear-gradient(135deg, #021207 0%, #020706 50%, #04040b 100%);
}

.tef-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(156,255,46,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156,255,46,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 0 62%, transparent 100%);
}

.tef-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: clamp(18px, 2.2vw, 38px);
  display: flex;
  flex-direction: column;
}

.tef-header {
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(310px, 420px) 2px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 16px;
}

.tef-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tef-mark {
  width: 62px;
  height: 62px;
  display: grid;
  gap: 7px;
  align-content: center;
  transform: skewY(-16deg);
}

.tef-mark span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #68ff21, #b9ff2a);
  box-shadow: 0 0 18px rgba(156,255,46,.65);
}

.tef-brand h2 {
  margin: 0;
  color: var(--tef-green);
  font-size: clamp(32px, 3.8vw, 58px);
  line-height: .9;
  letter-spacing: .16em;
  font-weight: 900;
  text-shadow: 0 0 22px rgba(156,255,46,.42);
}

.tef-brand p {
  margin: 6px 0 0;
  color: #e8ff28;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(15px, 1.6vw, 26px);
  font-weight: 800;
}

.tef-divider {
  width: 2px;
  height: 74px;
  background: rgba(232,255,40,.72);
  box-shadow: 0 0 22px rgba(232,255,40,.30);
}

.tef-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
}

.tef-intro strong {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(18px, 1.6vw, 26px);
}

.tef-intro span {
  color: rgba(255,255,255,.78);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.35;
}

.tef-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(156,255,46,.34);
  box-shadow:
    0 0 0 1px rgba(156,255,46,.10),
    0 0 45px rgba(156,255,46,.12),
    inset 0 0 60px rgba(156,255,46,.06);
  background: rgba(0, 9, 5, .68);
}

.tef-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tef-table th,
.tef-table td {
  border: 1px solid rgba(var(--tef-rgb, 156,255,46), .42);
  background:
    linear-gradient(135deg, rgba(var(--tef-rgb,156,255,46), .08), transparent 42%),
    rgba(0, 12, 8, .72);
}

.tef-table thead th {
  height: 74px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.tef-element-head {
  --tef-rgb: 156,255,46;
  width: 190px;
  color: var(--tef-green);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: left;
  font-size: 20px;
  font-weight: 900;
}

.tef-scenario-head {
  overflow: visible;
}

.tef-scenario-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tef-color);
}

.tef-scenario-title strong {
  font-size: clamp(16px, 1.18vw, 23px);
  letter-spacing: .055em;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(var(--tef-rgb), .68);
}

.tef-scenario-orb {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border: 2px solid rgba(var(--tef-rgb), .75);
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 18px rgba(var(--tef-rgb), .70),
    inset 0 0 18px rgba(var(--tef-rgb), .18);
  overflow: hidden;
  background: rgba(var(--tef-rgb), .10);
}

.tef-scenario-orb img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1);
}

.tef-row-label {
  --tef-rgb: 156,255,46;
  color: #fff;
  width: 190px;
  text-align: left;
  padding: 12px 14px;
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1.25;
  font-weight: 800;
}

.tef-row-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-right: 11px;
  color: var(--tef-green);
  border: 2px solid currentColor;
  border-radius: 9px;
  box-shadow: 0 0 14px rgba(156,255,46,.54);
  position: relative;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.tef-row-icon::before {
  content: "•";
  font-weight: 900;
}

.tef-icon-story::before { content: "◇"; }
.tef-icon-economy::before { content: "$"; font-size: 15px; }
.tef-icon-budget::before { content: "▣"; }
.tef-icon-ai::before { content: "AI"; font-size: 9px; letter-spacing: .02em; }
.tef-icon-quantum::before { content: "Q"; font-size: 14px; }
.tef-icon-geo::before { content: "◎"; }
.tef-icon-cyber::before { content: "⌁"; font-size: 20px; }
.tef-icon-supply::before { content: "↔"; font-size: 18px; }
.tef-icon-cloud::before { content: "☁"; font-size: 14px; }
.tef-icon-social::before { content: "👥"; font-size: 13px; filter: grayscale(1) brightness(1.8); }
.tef-icon-talent::before { content: "⚙"; font-size: 14px; }
.tef-icon-ciso::before { content: "★"; font-size: 14px; }
.tef-icon-question::before { content: "?"; font-size: 16px; }

.tef-cell {
  padding: 10px 14px;
  color: rgba(255,255,255,.92);
  font-size: clamp(12px, .78vw, 15px);
  line-height: 1.28;
  vertical-align: top;
}

.tef-cell.tef-growth,
.tef-scenario-head.tef-growth {
  --tef-color: #19a8ff;
  --tef-rgb: 25,168,255;
}

.tef-cell.tef-transform,
.tef-scenario-head.tef-transform {
  --tef-color: #bf5af2;
  --tef-rgb: 191,90,242;
}

.tef-cell.tef-constraint,
.tef-scenario-head.tef-constraint {
  --tef-color: #ffd21a;
  --tef-rgb: 255,210,26;
}

.tef-cell.tef-collapse,
.tef-scenario-head.tef-collapse {
  --tef-color: #ff3154;
  --tef-rgb: 255,49,84;
}

.tef-table tbody tr:hover td,
.tef-table tbody tr:hover th {
  background:
    linear-gradient(135deg, rgba(var(--tef-rgb,156,255,46), .14), transparent 45%),
    rgba(4, 18, 12, .82);
}

@media (max-width: 980px) {
  .tef-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tef-divider {
    width: 100%;
    height: 1px;
  }

  .tef-shell {
    padding: 18px;
  }

  .tef-table-wrap {
    max-height: calc(100vh - 190px);
  }
}

/* v1.1: títulos compactos e iconografía por elemento */
.tef-scenario-head {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.tef-scenario-title {
  min-width: 0;
}

.tef-scenario-title strong {
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
}

@media (max-width: 1300px) {
  .tef-scenario-title strong {
    font-size: 20px;
    letter-spacing: .055em;
  }

  .tef-scenario-orb {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
}


/* v1.2: escenarios en español y colores alineados a cada imagen */
.tef-scenario-title strong {
  white-space: nowrap;
}

.tef-scenario-orb {
  border-color: rgba(var(--tef-rgb), .78);
  box-shadow:
    0 0 18px rgba(var(--tef-rgb), .72),
    inset 0 0 18px rgba(var(--tef-rgb), .18);
}

@media (max-width: 1450px) {
  .tef-scenario-title strong {
    font-size: 19px;
    letter-spacing: .035em;
  }
}
