﻿/* ============================================
   Z-BOT 3 â€” ASISTENTE CHAT
============================================ */
.zbot-pill {
  background: #fff;
  border: 1px solid rgba(11,20,44,.10);
  color: rgba(11,20,44,.60);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
}

.zbot3-frame {
  position: relative;
  width: clamp(300px, 90vw, 420px);
  height: 500px;
}
.zbot3-robot {
  position: absolute;
  bottom: 0;
  right: 0;
  height: clamp(320px, 88%, 430px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(11,20,44,.18));
  animation: float-y 5.5s ease-in-out infinite;
}
.zbot3-chat {
  position: absolute;
  top: 10px;
  left: 0;
  width: 195px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}
.zbot-bubble {
  background: #fff;
  border: 1px solid rgba(11,20,44,.08);
  border-radius: 16px 16px 16px 4px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #0b142c;
  line-height: 1.5;
  box-shadow: 0 4px 18px rgba(11,20,44,.10);
  animation: bubble-appear 3.8s ease-in-out forwards;
}
.zbot-badge {
  display: inline-block;
  background: #f3580e;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 99px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
@keyframes bubble-appear {
  0%   { opacity: 0; transform: translateY(10px) scale(.92); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* ============================================
   Z-BOT 4 â€” PROYECTOS CARD STRIPS
============================================ */
/* SecciÃ³n full-screen */
.zbot4-section {
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}
.zbot4-hd {
  text-align: center;
  padding: clamp(28px, 4.5vh, 52px) 24px clamp(12px, 1.8vh, 22px);
  flex-shrink: 0;
}

.zbot4-block {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 0;
}

/* Columna izquierda: tiras */
.zbot4-left {
  display: flex;
  gap: 22px;
  padding: 0 28px 0 80px;
  flex-shrink: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.zbot4-strip-wrap {
  width: 235px;
  flex-shrink: 0;
  overflow: hidden;
  height: 100%;
}
.zbot4-strip {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.strip-up   { animation: strip-scroll-up   28s linear infinite; }
.strip-down { animation: strip-scroll-down 28s linear infinite; }
@keyframes strip-scroll-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes strip-scroll-down {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Card cuadrada con media + overlay */
.zbot4-card {
  position: relative;
  width: 235px;
  height: 235px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .25s ease, transform .25s ease;
  cursor: default;
}
.zbot4-card:hover {
  border-color: rgba(243,88,14,.55);
  transform: scale(1.02);
}
.zbot4-card-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,25,55,.85) 0%, rgba(11,20,44,.70) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Cuando el usuario aÃ±ada una imagen: img o video dentro de .zbot4-card-media
   ocuparÃ¡ todo el espacio con object-fit:cover */
.zbot4-card-media img,
.zbot4-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zbot4-card-ph {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(243,88,14,.12);
  border: 1px solid rgba(243,88,14,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(243,88,14,.75);
  position: relative;
  z-index: 1;
}
.zbot4-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(7,12,28,1) 0%, rgba(7,12,28,.75) 55%, transparent 100%);
  z-index: 2;
}
.zbot4-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: #f3580e;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.zbot4-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.zbot4-robot-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.zbot4-robot {
  height: 110%;
  width: 110%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(243,88,14,.18));
  animation: float-y 5s ease-in-out infinite;
  animation-delay: 1s;
  position: relative;
  z-index: 2;
}

/* â”€â”€ EFECTOS TECNOLÃ“GICOS Z-BOT 4 â”€â”€ */

/* Glow radial en la base */
.zbot4-glow-base {
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 55%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(243,88,14,.22) 0%,
    rgba(60,130,255,.10) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  animation: zbot4-glow-pulse 3.5s ease-in-out infinite;
}
@keyframes zbot4-glow-pulse {
  0%, 100% { opacity: .7; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 1; transform: translateX(-50%) scaleX(1.14); }
}

/* Rings expansivos */
.zbot4-ring-fx {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.zbot4-ring-fx span {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(243,88,14,.55);
  width: 80px; height: 80px;
}
.zbot4-ring-fx span:nth-child(1) { animation: zbot4-ring 4.2s ease-out infinite 0s; }
.zbot4-ring-fx span:nth-child(2) { animation: zbot4-ring 4.2s ease-out infinite 1.4s; }
.zbot4-ring-fx span:nth-child(3) { animation: zbot4-ring 4.2s ease-out infinite 2.8s; }
@keyframes zbot4-ring {
  0%   { width: 60px;  height: 60px;  opacity: .9; border-color: rgba(243,88,14,.65); }
  60%  { border-color: rgba(60,130,255,.25); }
  100% { width: 480px; height: 480px; opacity: 0; border-color: rgba(60,130,255,0); }
}

/* Contenedor HUD (cubre toda la zona del robot) */
.zbot4-hud {
  position: absolute;
  inset: 4% 6%;
  pointer-events: none;
  z-index: 3;
}

/* Esquinas HUD */
.zbot4-hud-c {
  position: absolute;
  width: 24px; height: 24px;
  border-style: solid;
  border-color: rgba(243,88,14,.8);
  animation: zbot4-hud-blink 3.8s ease-in-out infinite;
}
.zbot4-hud-tl { top: 0; left: 0;     border-width: 2px 0 0 2px; }
.zbot4-hud-tr { top: 0; right: 0;    border-width: 2px 2px 0 0; animation-delay: .5s; }
.zbot4-hud-bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; animation-delay: 1s; }
.zbot4-hud-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; animation-delay: 1.5s; }
@keyframes zbot4-hud-blink {
  0%, 100% { opacity: .85; }
  50%       { opacity: .25; }
}

/* LÃ­nea de escaneo */
.zbot4-scan-line {
  position: absolute;
  left: -8%; right: -8%;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(60,160,255,.35) 20%,
    rgba(243,88,14,.95) 50%,
    rgba(60,160,255,.35) 80%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(243,88,14,.6), 0 0 18px rgba(60,160,255,.3);
  animation: zbot4-scan 3.8s linear infinite;
}
@keyframes zbot4-scan {
  0%   { top: 96%; opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { top: 0%;   opacity: 0; }
}

/* Etiquetas de datos flotantes */
.zbot4-dl {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(243,88,14,.9);
  background: rgba(7,12,28,.75);
  border: 1px solid rgba(243,88,14,.28);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
  animation: zbot4-dl-pulse 3.5s ease-in-out infinite;
}
.zbot4-dl-1 { top: 8%;  left: 0;   animation-delay: 0s; }
.zbot4-dl-2 { top: 16%; left: 0;   animation-delay: .7s; }
.zbot4-dl-3 { bottom: 14%; right: 0; animation-delay: 1.4s;
  color: rgba(80,210,130,.9); border-color: rgba(80,210,130,.28); }
.zbot4-dl-4 { bottom: 6%;  right: 0; animation-delay: 2.1s;
  color: rgba(80,210,130,.9); border-color: rgba(80,210,130,.28); }
@keyframes zbot4-dl-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

@media (max-width: 1279px) {
  .zbot4-strip-wrap { width: 210px; }
  .zbot4-card { width: 210px; height: 210px; }
  .zbot4-left { padding: 0 20px 0 28px; gap: 18px; }
}
@media (max-width: 1023px) {
  .zbot4-section { height: auto; min-height: 100vh; }
  .zbot4-strip-c { display: none; }
  .zbot4-strip-wrap { width: 210px; }
  .zbot4-card { width: 210px; height: 210px; }
  .zbot4-left { padding: 0 16px 0 20px; gap: 16px; }
}
@media (max-width: 767px) {
  .zbot4-section { height: auto; }
  .zbot4-block { flex-direction: column; }
  .zbot4-left { padding: 16px 16px 0; height: 380px; flex-shrink: 0; }
  .zbot4-robot-wrap { flex: none; height: 320px; width: 100%; }
  .zbot4-robot { height: 100%; width: auto; max-width: 100%; }
  .zbot4-strip-c { display: none; }
}
@media (max-width: 480px) {
  .zbot4-strip-wrap:last-of-type { display: none; }
  .zbot4-strip-wrap { width: calc(50vw - 24px); }
  .zbot4-card { width: 100%; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .strip-up, .strip-down,
  .zbot4-robot, .zbot3-robot { animation: none !important; }
  .zbot-bubble { animation: none !important; opacity: 1 !important; }
  .zbot4-glow-base, .zbot4-ring-fx span,
  .zbot4-scan-line, .zbot4-hud-c, .zbot4-dl { animation: none !important; }
}

