/* ============================================
   ZENTEK360 — Estilos Corporativos
   Fuentes: Inter (web) + League Spartan (logo)
   Paleta: #0b142c | #f3580e | #d8d7f5 | #b0aab3 | #ffffff
============================================ */

/* ── Reset y base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #f3580e #e8eaf0;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #e8eaf0; }
::-webkit-scrollbar-thumb { background: #f3580e; border-radius: 2px; }

body {
  font-family: 'Inter', sans-serif;
  color: #0b142c;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Keyframes ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: .5; transform: scale(.85); }
  50%       { opacity: 1;  transform: scale(1); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes bar-fill {
  from { width: 0; }
}

/* ── Scroll Reveal ── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.rv.on {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }
.d5 { transition-delay: .50s; }
.d6 { transition-delay: .60s; }

/* ── Marquee ── */
.mq-track {
  animation: marquee 38s linear infinite;
  display: flex;
  width: max-content;
}
.mq-track:hover { animation-play-state: paused; }

/* ── Cards Servicios ── */
.svc-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(11, 20, 44, .12);
}
.svc-card .svc-icon {
  transition: background .3s ease;
}
.svc-card:hover .svc-icon {
  background: #f3580e;
}
.svc-card:hover .svc-icon svg {
  stroke: #fff;
}
.svc-card:hover .svc-icon svg path,
.svc-card:hover .svc-icon svg rect,
.svc-card:hover .svc-icon svg circle {
  stroke: #fff;
}

/* ── Cards Sectores ── */
.sector-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(11, 20, 44, .10);
  border-color: #f3580e;
}

/* ── Timeline connector ── */
.tl-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #f3580e, #d8d7f5);
  margin-top: 27px;
}
.tl-step { flex: 1; }

/* ── Barras animadas ── */
.bar-animated {
  animation: bar-fill 1.6s ease-out forwards;
}

/* ── Diferenciadores ── */
.diff-card {
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 20, 44, .09);
  border-color: #d8d7f5;
}

/* ── Nav scroll shadow ── */
#main-nav.scrolled {
  box-shadow: 0 1px 0 rgba(11, 20, 44, .07), 0 4px 20px rgba(11, 20, 44, .06);
}

/* ── Animaciones flotantes hero ── */
.float-slow { animation: float-y 6s ease-in-out infinite; }
.float-mid  { animation: float-y 4.5s ease-in-out infinite; animation-delay: .8s; }

/* ── Pulse dot ── */
.pulse { animation: pulse-dot 2s ease-in-out infinite; }

/* ============================================
   SHOWCASE ORBITAL Z-BOT
============================================ */
.zb-showcase {
  position: relative;
  background:
    radial-gradient(circle at 50% 62%, rgba(243,88,14,.12), transparent 55%),
    linear-gradient(180deg, #0b142c 0%, #0a1126 55%, #0b142c 100%);
  overflow: hidden;
  height: 100vh;               /* sección normal a pantalla completa, sin pin de scroll */
  min-height: 600px;
}
.zb-pin {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(48px, 8vh, 92px);
  overflow: hidden;
}

/* Encabezado */
.zb-head { text-align: center; padding: 0 24px; z-index: 6; pointer-events: none; }
.zb-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #f3580e; margin-bottom: 14px;
}
.zb-title {
  font-family: 'League Spartan', sans-serif; font-weight: 900;
  font-size: clamp(28px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.01em;
  color: #fff; margin-bottom: 14px;
}
.zb-title span { color: #f3580e; }
.zb-sub {
  font-size: 15px; color: rgba(216,215,245,.55); max-width: 440px; margin: 0 auto;
  line-height: 1.7; font-weight: 300;
}

/* Escenario */
.zb-stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;   /* recorta el cuerpo del robot que sale por abajo */
}

/* Resplandor / pedestal */
.zb-glow {
  position: absolute;
  bottom: 9%; left: 50%; transform: translateX(-50%);
  width: min(560px, 80vw); height: 190px;
  background: radial-gradient(ellipse at center, rgba(243,88,14,.55) 0%, rgba(243,88,14,.10) 45%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.zb-rings {
  position: absolute;
  bottom: 7%; left: 50%; transform: translate(-50%, 0) rotateX(74deg);
  width: min(600px, 86vw); height: min(600px, 86vw);
  pointer-events: none;
}
.zb-rings span {
  position: absolute; inset: 0; margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(243,88,14,.28);
  box-shadow: 0 0 18px rgba(243,88,14,.12) inset;
}
.zb-rings span:nth-child(1) { width: 100%;  height: 100%;  animation: zb-spin 26s linear infinite; }
.zb-rings span:nth-child(2) { width: 70%;   height: 70%;   border-color: rgba(120,170,255,.22); animation: zb-spin 18s linear infinite reverse; }
.zb-rings span:nth-child(3) { width: 42%;   height: 42%;   border-color: rgba(243,88,14,.35); animation: zb-spin 12s linear infinite; }
@keyframes zb-spin { to { transform: rotate(360deg); } }

/* Robot central — solo la cabeza asoma desde el fondo */
.zb-robot {
  position: absolute;
  bottom: -42%;
  left: 50%;
  height: clamp(580px, 98vh, 880px);
  width: auto;
  z-index: 30;
  filter: drop-shadow(0 -18px 50px rgba(243,88,14,.28)) drop-shadow(0 30px 45px rgba(0,0,0,.55));
  animation: zb-robot-float 5.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes zb-robot-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-16px); }
}

/* Órbita de productos */
.zb-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.zb-prod {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(230px, 26vw, 380px);
  margin: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: auto;      /* clicable aunque la órbita esté en pointer-events:none */
  cursor: pointer;
}
.zb-prod.is-front img { box-shadow: 0 22px 60px rgba(243,88,14,.35), 0 0 0 1px rgba(243,88,14,.45); }
.zb-prod img { transition: box-shadow .25s ease; }
.zb-prod img {
  display: block; width: 100%; height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 55px rgba(0,0,0,.55);
}
.zb-prod figcaption {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff; white-space: nowrap;
  background: rgba(243,88,14,.95);
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(243,88,14,.4);
  opacity: 0; transition: opacity .3s ease;
}
.zb-prod.is-front figcaption { opacity: 1; }

/* Indicador de scroll */
.zb-scrollhint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(216,215,245,.45); z-index: 5;
}
.zb-mouse {
  width: 18px; height: 28px; border: 2px solid rgba(216,215,245,.4); border-radius: 10px;
  position: relative; display: inline-block;
}
.zb-mouse::after {
  content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; border-radius: 2px; background: #f3580e;
  animation: zb-wheel 1.6s ease-in-out infinite;
}
@keyframes zb-wheel { 0%,100% { opacity: 0; top: 5px; } 40% { opacity: 1; top: 11px; } }

/* Mascota guía (CTA) */
.zb-guide { z-index: 5; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }

/* Responsive */
@media (max-width: 1023px) {
  .zb-prod { width: clamp(180px, 34vw, 260px); }
  .zb-prod figcaption { bottom: -24px; font-size: 11px; }
  .zb-robot { height: clamp(480px, 80vh, 700px); bottom: -38%; }
}
@media (max-width: 640px) {
  .zb-robot { height: clamp(380px, 68vh, 520px); bottom: -30%; }
  .zb-prod { width: clamp(155px, 46vw, 210px); }
}

/* ── Lightbox de productos ── */
.zb-lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px;
  background: rgba(7, 12, 26, .82);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .28s ease;
}
.zb-lb[hidden] { display: none; }
.zb-lb.is-open { opacity: 1; }
.zb-lb-fig {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-height: 82vh;
  transform: scale(.92); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.zb-lb.is-open .zb-lb-fig { transform: scale(1); }
.zb-lb-fig img {
  max-height: 78vh; max-width: min(92vw, 560px); width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
}
.zb-lb-fig figcaption {
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff;
  text-transform: uppercase;
}
.zb-lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.zb-lb-close:hover { background: #f3580e; transform: rotate(90deg); }
.zb-lb-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f3580e; color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 11px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.zb-lb-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(243,88,14,.4); }
@media (max-width: 640px) {
  .zb-lb-fig img { max-height: 70vh; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .zb-robot, .zb-rings span, .zb-mouse::after, .float-slow, .float-mid { animation: none !important; }
  .zb-lb, .zb-lb-fig { transition: none !important; }
}
