/* Marcas en esferas 3D — circular, destello, respeta tema claro/oscuro */
.tech-arsenal {
  --ta-bg: color-mix(in srgb, var(--bg) 92%, var(--accent));
  --ta-fg: var(--fg);
  --ta-muted: var(--muted);
  --ta-border: color-mix(in srgb, var(--accent) 28%, var(--border));
  --sphere-face: color-mix(in srgb, var(--card) 78%, #0a0a0a);
  --sphere-ground: color-mix(in srgb, var(--accent) 45%, transparent);
  --sphere-shadow: color-mix(in srgb, var(--fg) 18%, transparent);
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 4rem;
  border-block: 1px solid var(--ta-border);
  background:
    radial-gradient(900px 320px at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--ta-bg);
  color: var(--ta-fg);
}

html.dark .tech-arsenal {
  --ta-bg: color-mix(in srgb, var(--bg) 88%, #000);
  --sphere-face: #14181f;
  --sphere-shadow: rgba(0, 0, 0, 0.45);
  --sphere-ground: rgba(234, 179, 8, 0.42);
}

.tech-arsenal__inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.tech-arsenal__sello {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ta-fg);
  font-weight: 700;
  font-family: Outfit, system-ui, sans-serif;
  opacity: 0.92;
}

.tech-arsenal__sub {
  margin: 0 auto 2.5rem;
  max-width: 38rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ta-muted);
  font-weight: 400;
}

/* Marcas decorativas */
.tech-arsenal__mark {
  position: absolute;
  z-index: 1;
  color: color-mix(in srgb, var(--accent) 35%, transparent);
  pointer-events: none;
}
.tech-arsenal__mark--pistol svg {
  width: 4.5rem;
  height: auto;
  opacity: 0.9;
}
.tech-arsenal__mark--impact svg {
  width: 2.75rem;
  height: 2.75rem;
}
.tech-arsenal__mark--tl {
  top: 1.1rem;
  left: 1.25rem;
  transform: rotate(-12deg);
}
.tech-arsenal__mark--br {
  right: 1.25rem;
  bottom: 1.1rem;
  transform: rotate(168deg);
  color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.tech-arsenal__mark--tr {
  top: 1.4rem;
  right: 18%;
}
.tech-arsenal__mark--bl {
  left: 16%;
  bottom: 1.35rem;
}
.tech-arsenal__mark--mid {
  top: 42%;
  left: 6%;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .tech-arsenal__mark--pistol svg { width: 3.25rem; }
  .tech-arsenal__mark--tr,
  .tech-arsenal__mark--bl,
  .tech-arsenal__mark--mid { display: none; }
}

/* Marquee */
.tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  align-items: flex-end;
  padding: 0.5rem 0 0.25rem;
  animation: tech-scroll 40s linear infinite;
}
.tech-sphere {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 6.5rem;
}

/* Contenedor SIEMPRE circular */
.tech-sphere-ball {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: var(--sphere-face);
  box-shadow:
    inset -12px -14px 22px rgba(0, 0, 0, 0.42),
    inset 10px 10px 18px rgba(255, 255, 255, 0.18),
    0 14px 28px var(--sphere-shadow);
  transition: transform 0.35s ease;
}

/* Logo recortado en círculo (uniforma cuadrados) */
.tech-sphere-ball img,
.tech-sphere-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}

.tech-sphere-fallback {
  position: relative;
  z-index: 1;
  max-width: 82%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  color: var(--accent-bright);
  font-family: Outfit, system-ui, sans-serif;
}

.tech-sphere-label {
  margin-top: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ta-fg);
  font-weight: 600;
  font-family: Outfit, system-ui, sans-serif;
  white-space: nowrap;
  opacity: 0.9;
}

/* Destello / brillo 3D por encima del logo */
.tech-sphere-ball::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 28%,
    transparent 48%
  );
}

.tech-sphere-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.38), transparent 36%),
    radial-gradient(circle at 70% 78%, rgba(0, 0, 0, 0.22), transparent 48%);
}

.tech-sphere-ground {
  position: absolute;
  bottom: 1.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.25rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--sphere-ground), transparent 72%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.tech-sphere:hover .tech-sphere-ball {
  transform: translateY(-7px) scale(1.05);
}

@keyframes tech-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.75rem;
  }
}
