/* ==================== TECH STACK — CARRUSEL INFINITO ==================== */

.tech-stack {
  padding: 1.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
:root.dark .tech-stack {
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(8px);
}

/* Mascaras de fade en los bordes */
.tech-stack::before,
.tech-stack::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.tech-stack::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}
.tech-stack::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}
:root.dark .tech-stack::before {
  background: linear-gradient(to right, #0f172a 0%, transparent 100%);
}
:root.dark .tech-stack::after {
  background: linear-gradient(to left, #0f172a 0%, transparent 100%);
}

.tech-stack__wrapper {
  padding: 0.6rem 3rem; /* vertical padding da espacio al translateY sin recortar */
  /* sin overflow:hidden — .tech-stack lo maneja horizontalmente */
}

/* Contenedor animado — will-change mejora hit-testing del cursor */
.tech-stack__inner {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scroll-ticker 44s linear infinite;
  will-change: transform;
}

@keyframes scroll-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Item individual */
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s, filter 0.2s;
  cursor: default;
}
.tech-item i { font-size: 1.4rem; }

/* Hover: solo sube el item, sin modificar el contenedor */
.tech-item:hover {
  transform: translateY(-4px);
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(211,47,47,0.5));
}

/* ---- Iconos con problemas de color ---- */

/* Python: amarillo (#FFD43B) + azul (#306998) — gradiente que simula el logo oficial */
.tech-item [class*="python-plain"] {
  background: linear-gradient(165deg, #FFD43B 50%, #306998 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Angular: en modo CLARO el icono tiene partes blancas que se camuflan */
:root:not(.dark) .tech-item [class*="angular-plain"] {
  -webkit-text-fill-color: #C3002F !important;
  color: #C3002F !important;
}
