﻿/* ============================================
   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: -30%;
  left: 50%;
  height: clamp(420px, 70vh, 640px);
  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(360px, 58vh, 520px); bottom: -26%; }
}
@media (max-width: 640px) {
  .zb-robot { height: clamp(300px, 50vh, 420px); bottom: -22%; }
  .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; }
}
