/* CSS de casos/terbol.html */

/* ============================================================
   TERBOL CASE — CSS ENCAPSULADO
   Prefijo: .tc- (terbol-case)
   NO afecta clases globales del sitio
============================================================ */

/* --- VARIABLES PROPIAS DEL CASO --- */
.tc-page {
  --tc-green:      #10B981;
  --tc-green-dim:  rgba(16,185,129,0.12);
  --tc-green-glow: rgba(16,185,129,0.20);
  --tc-dark:       #0A0F0C;
  --tc-dark-2:     #111815;
  --tc-dark-card:  rgba(255,255,255,0.04);
  --tc-bdr:        rgba(255,255,255,0.08);
  --tc-bdr-green:  rgba(16,185,129,0.25);
  --tc-white:      #F3F2EE;
  --tc-muted:      rgba(255,255,255,0.45);
  --tc-f:          var(--f);
  --tc-t:          0.3s ease;
}

/* BASE DE PÁGINA */
.tc-page {
  font-family: var(--tc-f);
  -webkit-font-smoothing: antialiased;
  background: var(--bg, #F3F2EE); /* hereda del sitio principal */
  overflow-x: hidden;
}

/* --- PROGRESS BAR --- */
#tc-rdp {
  position: fixed; top: 0; left: 0;
  height: 2px; z-index: 500; width: 0%;
  background: linear-gradient(to right, var(--tc-green), var(--blue));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- REVEALS --- */
.tc-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.tc-reveal.tc-visible { opacity: 1; transform: translateY(0); }
.tc-reveal-l {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.tc-reveal-l.tc-visible { opacity: 1; transform: translateX(0); }
.tc-reveal-r {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.tc-reveal-r.tc-visible { opacity: 1; transform: translateX(0); }
.tc-reveal-s {
  opacity: 0; transform: scale(0.97);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.tc-reveal-s.tc-visible { opacity: 1; transform: scale(1); }

.tc-d1 { transition-delay: 0.10s; }
.tc-d2 { transition-delay: 0.20s; }
.tc-d3 { transition-delay: 0.30s; }
.tc-d4 { transition-delay: 0.42s; }
.tc-d5 { transition-delay: 0.54s; }

/* --- HEADER DEL CASO (sticky sobre el global) --- */
.tc-case-bar {
  position: fixed; top: 64px; left: 0; right: 0;
  z-index: 90;
  display: flex; align-items: center;
  padding: 0 max(1.5rem, (100vw - 1180px) / 2);
  height: 44px;
  background: rgba(10,15,12,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16,185,129,0.15);
  gap: 1rem;
  transition: opacity var(--tc-t);
}
.tc-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.4); letter-spacing: 0.04em;
  transition: color var(--tc-t); text-decoration: none;
}
.tc-back-link:hover { color: var(--tc-green); }
.tc-back-link svg { width: 14px; height: 14px; }
.tc-bar-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.tc-bar-case {
  font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,0.25); letter-spacing: 0.05em;
}
.tc-bar-industry {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: var(--tc-green-dim);
  border: 1px solid var(--tc-bdr-green);
  border-radius: 100px;
  font-size: 0.68rem; font-weight: 700;
  color: var(--tc-green); letter-spacing: 0.08em; text-transform: uppercase;
}
.tc-bar-industry::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--tc-green);
  animation: tcPulse 2s infinite;
}
@keyframes tcPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.3)} }

/* --- HÉROE --- */
.tc-hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 108px; /* header 64 + barra 44 */
  padding-bottom: 80px;
  position: relative; overflow: hidden;
  background: var(--tc-dark);
}

/* Imagen de fondo */
.tc-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.tc-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.2; filter: grayscale(20%);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.tc-hero.tc-loaded .tc-hero-bg img { transform: scale(1); }

/* Overlay degradado */
.tc-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(10,15,12,0.5) 0%,
      rgba(10,15,12,0.1) 30%,
      rgba(10,15,12,0.7) 70%,
      rgba(10,15,12,1) 100%),
    linear-gradient(to right,
      rgba(10,15,12,0.8) 0%,
      rgba(10,15,12,0) 60%);
}

/* Glow verde sutil */
.tc-hero-glow {
  position: absolute; z-index: 1;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--tc-green);
  filter: blur(120px);
  opacity: 0.08;
  top: 10%; right: 5%;
  animation: tcGlowDrift 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tcGlowDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(20px,-30px) scale(1.08); }
  66%     { transform: translate(-15px,20px) scale(0.95); }
}

/* Líneas de conexión decorativas */
.tc-hero-lines {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.tc-hero-lines svg { width: 100%; height: 100%; opacity: 0.12; }

/* Contenido del hero */
.tc-hero-content { position: relative; z-index: 2; width: 100%; }
.tc-hero-inner {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 4rem;
}

/* Eyebrow */
.tc-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  color: var(--tc-green); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.6rem;
  background: var(--tc-green-dim);
}
.tc-eyebrow-pill::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--tc-green);
  animation: tcPulse 2s infinite;
}

/* H1 */
.tc-hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.042em;
  color: #FAFAF7;
  margin-bottom: 1.4rem;
}
.tc-hero-h1 .tc-green { color: var(--tc-green); }

/* Sub */
.tc-hero-sub {
  font-size: 1rem;
  color: var(--tc-muted);
  line-height: 1.78;
  max-width: 44ch;
  margin-bottom: 2.2rem;
}

/* CTAs */
.tc-hero-ctas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px;
  background: var(--tc-green); color: #001a0a;
  font-size: 0.875rem; font-weight: 700;
  transition: all var(--tc-t); text-decoration: none;
}
.tc-btn-primary:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 8px 24px var(--tc-green-glow); }
.tc-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--tc-t); text-decoration: none;
}
.tc-btn-secondary:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.05); }

/* Métricas hero — lado derecho */
.tc-hero-metrics {
  display: flex; flex-direction: column;
  gap: 2rem; align-items: flex-end; padding-bottom: 0.5rem;
}
.tc-hm {
  text-align: right;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tc-hm.tc-visible { opacity: 1; transform: translateY(0); }
.tc-hm-n {
  font-size: clamp(2.2rem,4.5vw,4rem);
  font-weight: 900; color: #FAFAF7;
  letter-spacing: -0.04em; line-height: 1;
}
.tc-hm-n .tc-green { color: var(--tc-green); }
.tc-hm-l {
  font-size: 0.72rem; color: rgba(255,255,255,0.38);
  margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Scroll hint */
.tc-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  opacity: 0.3; animation: tcScrollBounce 2.5s infinite;
  pointer-events: none;
}
.tc-scroll-hint span { font-size: 0.6rem; letter-spacing: 0.14em; color: white; text-transform: uppercase; }
.tc-scroll-hint svg { width: 14px; height: 14px; color: white; }
@keyframes tcScrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(8px); }
}

/* --- SECCIÓN GENÉRICA --- */
.tc-sec {
  padding: 7rem 0;
  position: relative;
}
.tc-sec-w {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}
.tc-sec-w-full {
  width: min(1440px, 100% - 2rem);
  margin-inline: auto;
}

/* Variantes de fondo */
.tc-sec-light  { background: #F3F2EE; }
.tc-sec-warm   { background: #FAFAF7; }
.tc-sec-dark   { background: var(--tc-dark); }
.tc-sec-dark2  { background: var(--tc-dark-2); }
.tc-sec-mid    { background: #1A1A1A; }

/* Eyebrow de sección */
.tc-sec-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1.2rem;
}
.tc-sec-num {
  font-size: 0.68rem; font-weight: 700;
  color: var(--tc-green); letter-spacing: 0.16em;
}
.tc-sec-line {
  height: 1px; width: 36px;
  background: var(--tc-green); opacity: 0.4; flex-shrink: 0;
}
.tc-sec-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--tc-muted);
}
/* Para secciones claras */
.tc-light .tc-sec-label { color: #7A7A72; }
.tc-light .tc-sec-num   { color: var(--blue); }
.tc-light .tc-sec-line  { background: var(--blue); }

/* H2 narrativos */
.tc-h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #2F2F2F;
  margin-bottom: 1.3rem;
}
.tc-h2-light { color: #FAFAF7; }
.tc-h2 em, .tc-h2-light em { font-style: normal; color: var(--tc-green); }

.tc-body { font-size: 0.975rem; color: #7A7A72; line-height: 1.82; max-width: 56ch; }
.tc-body-light { color: var(--tc-muted); }

/* --- RESUMEN EJECUTIVO --- */
.tc-resumen-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 3rem; align-items: start;
}
.tc-resumen-div { background: rgba(47,47,47,0.1); min-height: 100px; }
.tc-resumen-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 5px;
}
.tc-resumen-label::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex-shrink: 0;
}
.tc-resumen-value { font-size: 1rem; font-weight: 700; color: #2F2F2F; margin-bottom: 0.35rem; line-height: 1.3; }
.tc-resumen-desc  { font-size: 0.8rem; color: #7A7A72; line-height: 1.65; }

/* --- SECCIÓN WOW — TIPOGRAFÍA GIGANTE --- */
.tc-wow {
  padding: 0;
  background: var(--tc-dark);
  position: relative; overflow: hidden;
}
.tc-wow-inner {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; padding: 6rem 2rem;
  text-align: center; position: relative; z-index: 2;
}
.tc-wow-text {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -0.05em; color: #FAFAF7;
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.tc-wow-text.tc-visible { opacity: 1; transform: translateY(0); }
.tc-wow-text.tc-green   { color: var(--tc-green); }
.tc-wow-text.tc-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.2);
}
.tc-wow-div {
  width: 1px; height: 80px; background: rgba(255,255,255,0.08); margin: 2rem 0;
  opacity: 0; transition: opacity 1s ease 0.4s;
}
.tc-wow-div.tc-visible { opacity: 1; }
/* Partículas de fondo */
.tc-wow-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.tc-wow-glow {
  position: absolute; border-radius: 50%;
  background: var(--tc-green); filter: blur(100px); opacity: 0.06;
}
.tc-wow-glow-1 { width: 600px; height: 600px; top: -100px; left: -100px; }
.tc-wow-glow-2 { width: 400px; height: 400px; bottom: -80px; right: -60px; }

/* --- TIMELINE --- */
.tc-timeline {
  position: relative;
  padding-left: 0;
  margin-top: 4rem;
}
.tc-timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--tc-green) 20%, var(--tc-green) 80%, transparent);
  transform: translateX(-50%);
}
.tc-tl-items { display: flex; flex-direction: column; gap: 0; }
.tc-tl-item {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  align-items: start; gap: 0; position: relative;
  padding-bottom: 4rem;
}
.tc-tl-item:last-child { padding-bottom: 0; }
/* Nodo central */
.tc-tl-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 0.3rem;
}
.tc-tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--tc-dark);
  border: 2px solid var(--tc-green);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
  transition: all var(--tc-t);
  flex-shrink: 0;
}
.tc-tl-item:hover .tc-tl-dot { background: var(--tc-green); box-shadow: 0 0 16px rgba(16,185,129,0.4); }
.tc-tl-year {
  font-size: 0.68rem; font-weight: 700; color: var(--tc-green);
  letter-spacing: 0.1em; text-align: center; white-space: nowrap;
}
/* Contenido izquierdo / derecho */
.tc-tl-left  { padding-right: 2.5rem; text-align: right; }
.tc-tl-right { padding-left: 2.5rem;  text-align: left;  }
.tc-tl-item:nth-child(even) .tc-tl-left  { order: 3; padding-right: 0; padding-left: 2.5rem;  text-align: left;  }
.tc-tl-item:nth-child(even) .tc-tl-right { order: 1; padding-left: 0;  padding-right: 2.5rem; text-align: right; }
.tc-tl-item:nth-child(even) .tc-tl-node  { order: 2; }
.tc-tl-phase {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tc-green); margin-bottom: 0.4rem;
}
.tc-tl-title {
  font-size: 1.1rem; font-weight: 700; color: #FAFAF7; margin-bottom: 0.5rem; line-height: 1.25;
}
.tc-tl-desc { font-size: 0.82rem; color: var(--tc-muted); line-height: 1.7; margin-bottom: 0.8rem; }
.tc-tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tc-tl-item:nth-child(even) .tc-tl-tags { justify-content: flex-end; }
.tc-tl-tag {
  padding: 3px 10px; background: var(--tc-green-dim);
  border: 1px solid var(--tc-bdr-green); border-radius: 100px;
  font-size: 0.68rem; font-weight: 600; color: var(--tc-green);
}

/* --- SECCIÓN PIXEL --- */
.tc-pixel-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; border-radius: 20px; overflow: hidden; margin-top: 3.5rem;
}
.tc-pixel-side {
  padding: 4rem 3rem;
  position: relative; overflow: hidden;
}
.tc-pixel-before { background: #111111; }
.tc-pixel-after  { background: var(--tc-dark-2); border-left: 1px solid var(--tc-bdr-green); }
.tc-pixel-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.tc-pixel-badge-before { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #ef4444; }
.tc-pixel-badge-before::before { content:''; width:5px;height:5px;border-radius:50%;background:#ef4444; }
.tc-pixel-badge-after  { background: var(--tc-green-dim); border: 1px solid var(--tc-bdr-green); color: var(--tc-green); }
.tc-pixel-badge-after::before  { content:''; width:5px;height:5px;border-radius:50%;background:var(--tc-green);animation:tcPulse 2s infinite; }
.tc-pixel-h3 {
  font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 700;
  color: #FAFAF7; line-height: 1.2; margin-bottom: 1rem;
}
.tc-pixel-desc { font-size: 0.88rem; color: var(--tc-muted); line-height: 1.75; }
/* Lista de caos */
.tc-chaos-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.tc-chaos-item {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
}
.tc-chaos-item::before { content:''; width:4px;height:4px;border-radius:50%;background:#ef4444;flex-shrink:0; }
/* Lista de orden */
.tc-order-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.tc-order-item {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  padding: 0.6rem 0.8rem;
  background: var(--tc-green-dim); border-radius: 8px;
  transition: all var(--tc-t);
}
.tc-order-item:hover { background: rgba(16,185,129,0.18); }
.tc-order-item::before { content:''; width:4px;height:4px;border-radius:50%;background:var(--tc-green);flex-shrink:0; }
/* Línea divisora central */
.tc-pixel-center-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10; pointer-events: none;
}
.tc-pixel-center-badge {
  padding: 8px 18px; background: #FAFAF7; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; color: #1E1E1E; letter-spacing: 0.06em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3); white-space: nowrap;
}

/* --- RESULTADOS CINEMATOGRÁFICOS --- */
.tc-results-wrap { margin-top: 4rem; }
.tc-result-big {
  display: flex; align-items: flex-end;
  padding: 4rem 0; position: relative;
  border-bottom: 1px solid rgba(47,47,47,0.1);
}
.tc-result-big:last-child { border-bottom: none; }
.tc-result-n {
  font-size: clamp(5rem,12vw,11rem);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.06em;
  color: #2F2F2F; flex-shrink: 0;
  transition: color var(--tc-t);
}
.tc-result-big:hover .tc-result-n { color: var(--blue); }
.tc-result-meta { padding-left: 3rem; padding-bottom: 0.8rem; }
.tc-result-label {
  font-size: clamp(1rem,2vw,1.5rem); font-weight: 700; color: #2F2F2F; margin-bottom: 0.5rem;
}
.tc-result-desc { font-size: 0.88rem; color: #7A7A72; line-height: 1.7; max-width: 44ch; }
.tc-result-bar {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--blue); border-radius: 2px; width: 0%;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.tc-result-big.tc-visible .tc-result-bar { width: 100%; }

/* --- ECOSISTEMA VISUAL --- */
.tc-ecosystem {
  position: relative;
  background: var(--tc-dark);
  overflow: hidden;
}
.tc-eco-canvas {
  width: 100%; height: 480px;
  position: relative; margin-top: 3.5rem;
}
/* Nodos del ecosistema */
.tc-eco-node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: default;
}
.tc-eco-node-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tc-dark-card);
  border: 1px solid var(--tc-bdr);
  transition: all 0.35s ease;
  position: relative;
}
.tc-eco-node:hover .tc-eco-node-circle {
  background: var(--tc-green-dim);
  border-color: var(--tc-bdr-green);
  transform: scale(1.1);
  box-shadow: 0 0 24px var(--tc-green-glow);
}
.tc-eco-node-circle svg { width: 24px; height: 24px; color: var(--tc-green); }
.tc-eco-node-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); text-align: center; transition: color var(--tc-t);
}
.tc-eco-node:hover .tc-eco-node-label { color: var(--tc-green); }
/* Nodo central especial */
.tc-eco-center .tc-eco-node-circle {
  width: 100px; height: 100px;
  background: var(--tc-green-dim); border-color: var(--tc-bdr-green);
  box-shadow: 0 0 30px var(--tc-green-glow);
}
.tc-eco-center .tc-eco-node-circle svg { width: 36px; height: 36px; }
.tc-eco-center .tc-eco-node-label { color: var(--tc-green); font-size: 0.75rem; }
/* SVG de líneas de conexión */
.tc-eco-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.tc-eco-line {
  stroke: var(--tc-green); stroke-width: 1;
  stroke-dasharray: 6 4; opacity: 0.25;
  animation: tcLineDash 3s linear infinite;
}
@keyframes tcLineDash { to { stroke-dashoffset: -40; } }

/* Posiciones de nodos */
.tc-eco-node { z-index: 1; }
.tc-eco-n1 { left: 50%; top: 50%; transform: translate(-50%,-50%); }   /* centro */
.tc-eco-n2 { left: 8%;  top: 50%; transform: translateY(-50%); }       /* izq */
.tc-eco-n3 { right: 8%; top: 50%; transform: translateY(-50%); }       /* der */
.tc-eco-n4 { left: 50%; top: 6%;  transform: translateX(-50%); }       /* arriba */
.tc-eco-n5 { left: 50%; bottom: 6%; transform: translateX(-50%); }     /* abajo */
.tc-eco-n6 { left: 20%; top: 15%; }                                     /* sup izq */
.tc-eco-n7 { right: 20%; top: 15%; }                                    /* sup der */
.tc-eco-n8 { left: 20%;  bottom: 15%; }                                 /* inf izq */
.tc-eco-n9 { right: 20%; bottom: 15%; }                                 /* inf der */

/* --- APRENDIZAJES --- */
.tc-ap-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem;
}
.tc-ap-item {
  padding: 1.8rem 2rem;
  background: #FAFAF7; border: 1px solid rgba(47,47,47,0.1);
  border-radius: 14px; display: flex; gap: 1.1rem; align-items: flex-start;
  transition: all var(--tc-t);
}
.tc-ap-item:hover {
  border-color: rgba(95,121,238,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(47,47,47,0.1);
}
.tc-ap-ico {
  width: 36px; height: 36px;
  background: rgba(95,121,238,0.08); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.tc-ap-ico svg { width: 17px; height: 17px; }
.tc-ap-title { font-size: 0.88rem; font-weight: 700; color: #2F2F2F; margin-bottom: 4px; }
.tc-ap-desc  { font-size: 0.78rem; color: #7A7A72; line-height: 1.65; }

/* --- CTA FINAL --- */
.tc-cta {
  padding: 9rem 0; background: var(--tc-dark);
  text-align: center; position: relative; overflow: hidden;
}
.tc-cta::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.tc-cta-inner { position: relative; z-index: 1; width: min(1180px,100% - 3rem); margin-inline: auto; }
.tc-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); margin-bottom: 1.8rem;
}
.tc-cta-eyebrow::before,.tc-cta-eyebrow::after {
  content: ''; display: block; height: 1px; width: 32px; background: rgba(255,255,255,0.12);
}
.tc-cta-h {
  font-size: clamp(2.2rem,5vw,5rem);
  font-weight: 900; color: #FAFAF7;
  line-height: 1.05; letter-spacing: -0.045em;
  max-width: 16ch; margin: 0 auto 1.2rem;
}
.tc-cta-h em { font-style: normal; color: var(--tc-green); }
.tc-cta-sub {
  font-size: 1rem; color: var(--tc-muted);
  max-width: 44ch; margin: 0 auto 2.8rem; line-height: 1.78;
}
.tc-cta-acts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* --- NAV ENTRE CASOS --- */
.tc-nav-casos {
  padding: 2.5rem 0;
  background: var(--tc-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tc-nav-grid {
  width: min(1180px,100% - 3rem); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.tc-nav-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: var(--tc-dark-card); border: 1px solid var(--tc-bdr);
  border-radius: 12px; transition: all var(--tc-t); text-decoration: none;
}
.tc-nav-link:hover { background: var(--tc-green-dim); border-color: var(--tc-bdr-green); }
.tc-nav-link.tc-next { flex-direction: row-reverse; text-align: right; }
.tc-nav-arrow { color: rgba(255,255,255,0.25); flex-shrink: 0; }
.tc-nav-arrow svg { width: 18px; height: 18px; }
.tc-nav-dir { font-size: 0.65rem; color: rgba(255,255,255,0.28); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.tc-nav-name { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.75); }
.tc-nav-ind  { font-size: 0.72rem; color: rgba(255,255,255,0.32); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .tc-hero-inner { grid-template-columns: 1fr; }
  .tc-hero-metrics { flex-direction: row; justify-content: flex-start; align-items: flex-start; margin-top: 1.5rem; flex-wrap: wrap; gap: 1.25rem 2rem; }
  /* Bug 4: títulos narrativos no deben gritar en mobile; los <br> de desktop se sueltan */
  .tc-h2 { font-size: clamp(1.6rem, 6.5vw, 2.4rem); }
  /* títulos: solo reducimos tamaño en mobile, los <br> se mantienen para evitar palabras pegadas */
  .tc-tl-item { grid-template-columns: 1fr 48px 1fr; }
  .tc-pixel-grid { grid-template-columns: 1fr; }
  .tc-arq-grid { grid-template-columns: 1fr !important; }
  .tc-pixel-center-text { display: none; }
  .tc-eco-canvas { height: 380px; }
}
@media (max-width: 768px) {
  .tc-hero { padding-top: 120px; }
  .tc-case-bar { top: 64px; }
  .tc-bar-industry { display: none; }
  .tc-bar-case { margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tc-hero-h1 { font-size: clamp(2.2rem,9vw,3.5rem); }
  .tc-sec { padding: 4.5rem 0; }
  .tc-timeline-line { display: none; }
  .tc-tl-item { grid-template-columns: 1fr; gap: 0; }
  .tc-tl-item:nth-child(even) .tc-tl-left,
  .tc-tl-item:nth-child(even) .tc-tl-right { order: 1; padding: 0; text-align: left; }
  .tc-tl-item:nth-child(even) .tc-tl-node { order: 0; }
  .tc-tl-node { flex-direction: row; margin-bottom: 0.8rem; }
  .tc-tl-left,.tc-tl-right { padding: 0; text-align: left; }
  .tc-result-n { font-size: clamp(4rem,15vw,7rem); }
  .tc-result-meta { padding-left: 1.5rem; }
  .tc-ap-grid { grid-template-columns: 1fr; }
  .tc-resumen-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tc-resumen-div { display: none; }
  /* --- ECOSISTEMA: reflow mobile (constelación -> columna), estilo intacto --- */
  .tc-eco-canvas {
    height: auto; margin-top: 2.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.75rem;
  }
  .tc-eco-svg { display: none; }            /* líneas de conexión no aplican en columna */
  .tc-eco-node {
    position: static !important;
    left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important;
    width: 100%;
  }
  /* nodo central arriba, protagonista */
  .tc-eco-center { order: -1; }
  .tc-eco-center .tc-eco-node-circle { width: 84px; height: 84px; }
  /* los 8 nodos de herramientas en grilla 2 columnas, horizontales (icono + label) */
  .tc-eco-node:not(.tc-eco-center) {
    flex-direction: row; justify-content: flex-start; gap: 14px;
    width: 100%; max-width: 320px;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--tc-bdr);
    border-radius: 14px;
  }
  .tc-eco-node:not(.tc-eco-center) .tc-eco-node-label { text-align: left; }
  .tc-eco-node-circle { width: 48px; height: 48px; flex-shrink: 0; }
  .tc-eco-node-circle svg { width: 20px; height: 20px; }
  .tc-nav-grid { grid-template-columns: 1fr; }
  .tc-wow-text { font-size: clamp(2.5rem,10vw,5rem); }
}
@media (max-width: 480px) {
  .tc-hero-metrics { flex-direction: column; align-items: flex-start; }
  .tc-hero-ctas { flex-direction: column; align-items: flex-start; }
  .tc-cta-acts { flex-direction: column; align-items: center; }
  /* todos los nodos visibles, ya en columna; central full, resto 1 por fila estable */
  .tc-eco-node:not(.tc-eco-center) { max-width: 100%; }
}
