/* ================================================================
   Equipar — Soporte Stay Page  |  assets/style.css
   ================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cyan: #00C6E6;
  --cyan-dim: #00a8c4;
  --cyan-glow: rgba(0, 198, 230, 0.35);
  --bg: #08090d;
  --bg2: #0e1118;
  --surface: rgba(255, 255, 255, 0.04);
  --text: #e8eaf0;
  --muted: rgba(232, 234, 240, 0.45);
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  position: relative;
  padding: 12px 0;
}

/* grid overlay */
body::before {
  display: none;
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 198, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 198, 230, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* ── MAIN CARD ── */
.card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 0 24px;
  max-width: 680px;
  width: 100%;
}

/* ── LOGO WRAPPER ── */
.logo-wrap {
  width: clamp(64px, 11vmin, 92px);
  perspective: 900px;
  cursor: pointer;
  margin-bottom: clamp(8px, 2vh, 18px);
  /* sin animación idle — solo hover 3D */
}

.logo-wrap img {
  width: 100%;
  display: block;
  transform-style: preserve-3d;
  transition:
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    filter 0.55s ease;
  will-change: transform;
}

.logo-wrap:hover img {
  transform:
    rotateY(18deg) rotateX(-8deg) translateZ(30px) scale(1.06);
  filter: brightness(1.18) saturate(1.4);
}

.foot {
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
}

.foot:hover {
  text-decoration: none;
  color: #13D2E3;
  font-weight: 800;
}

/* ================================================================
   TECH SCENE — Animated Pro Support Tech SVG
   ================================================================ */
.tech-scene {
  width: min(340px, 82vw, 42vh * 1.74);
  max-width: 100%;
  margin: 0 auto clamp(8px, 2vh, 16px);
  position: relative;
}

.tech-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

/* ── Technician Animations ── */
/* Head nod/focus */
.tech-head-anim {
  animation: techHeadNod 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 30% 90%;
}

@keyframes techHeadNod {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(1.8deg) translateY(0.5px);
  }
}

/* Torso breathing */
.tech-torso-anim {
  animation: techTorsoBreathe 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}

@keyframes techTorsoBreathe {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.015);
  }
}

/* Left arm typing */
.tech-arm-l {
  animation: armTypeL 0.35s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: 15% 20%;
}

@keyframes armTypeL {
  0% {
    transform: rotate(-2.5deg) translateY(-0.8px);
  }
  100% {
    transform: rotate(2deg) translateY(0.8px);
  }
}

/* Right arm typing */
.tech-arm-r {
  animation: armTypeR 0.38s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: 15% 15%;
}

@keyframes armTypeR {
  0% {
    transform: rotate(2.2deg) translateY(0.7px);
  }
  100% {
    transform: rotate(-2deg) translateY(-0.7px);
  }
}

/* Keyboard glow */
.kbd-glow {
  animation: kbdPulse 1.2s ease-in-out infinite alternate;
}

@keyframes kbdPulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    stroke-width: 1.4;
  }
}

/* Coffee steam */
.steam-1 {
  animation: steamRise1 2.2s ease-out infinite;
}

.steam-2 {
  animation: steamRise2 2.2s ease-out infinite 0.7s;
}

@keyframes steamRise1 {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  40% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-9px) translateX(2px);
  }
}

@keyframes steamRise2 {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) translateX(-2px);
  }
}

/* Screen terminal cursor */
.term-cursor {
  animation: termCursorBlink 0.9s steps(2, start) infinite;
}

@keyframes termCursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Code lines pulsing */
.cl {
  animation: clPulse 2.6s ease-in-out infinite;
}
.cl-1 { animation-delay: 0.1s; }
.cl-2 { animation-delay: 0.4s; }
.cl-3 { animation-delay: 0.7s; }
.cl-4 { animation-delay: 1.0s; }
.cl-5 { animation-delay: 1.3s; }

@keyframes clPulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* Wave status pulse */
.wave-anim {
  animation: wavePulse 1.6s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% {
    opacity: 0.5;
    stroke-width: 1.2;
  }
  100% {
    opacity: 1;
    stroke-width: 1.7;
  }
}

/* LEDs */
.led-pulse {
  animation: ledBlink 1.4s ease-in-out infinite;
}

.led-g1 {
  animation: ledBlink 1s ease-in-out infinite 0.2s;
}

.led-g2 {
  animation: ledBlink 0.8s ease-in-out infinite 0.5s;
}

.led-g3 {
  animation: ledBlink 1.2s ease-in-out infinite 0.3s;
}

@keyframes ledBlink {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}



/* ── TYPOGRAPHY ── */
.headline {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0;
}

.headline span {
  background: linear-gradient(90deg, var(--cyan) 0%, #4dffd9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── STATUS PILL ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid rgba(0, 198, 230, 0.22);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  backdrop-filter: blur(8px);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 var(--cyan-glow);
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
    box-shadow: 0 0 0 6px transparent;
  }
}

/* ── PROGRESS BAR ── */
.progress-track {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  margin-top: clamp(10px, 2vh, 16px);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--cyan), #4dffd9);
  border-radius: 99px;
  animation: sweep 2.2s ease-in-out infinite;
}

@keyframes sweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(350%);
    opacity: 0;
  }
}

/* ── FOOTER ── */
.footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(232, 234, 240, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 10;
  white-space: nowrap;
}

/* ── AMBIENT BLOBS ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

.blob-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #00C6E6, transparent 70%);
  top: -120px;
  right: -100px;
  animation: blobDrift 12s ease-in-out infinite alternate;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #0055a5, transparent 70%);
  bottom: -80px;
  left: -80px;
  animation: blobDrift 16s ease-in-out infinite alternate-reverse;
}

@keyframes blobDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, 20px) scale(1.08);
  }
}
/* ── INTERACTIVE FX LAYER ── */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 198, 230, 0.16), transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-glow.on { opacity: 1; }

.tech-scene:hover .tech-svg {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 14px rgba(0, 198, 230, 0.35));
}

@media (prefers-reduced-motion: reduce) {
  #fx-canvas, .cursor-glow { display: none; }
}

/* ── CSS ANIMATED BACKGROUND ── */
.bg-fx {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.o1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: #00C6E6; animation: orbA 18s ease-in-out infinite alternate; }
.o2 { width: 40vmax; height: 40vmax; right: -14vmax; bottom: -12vmax; background: #0055a5; animation: orbB 22s ease-in-out infinite alternate; }
.o3 { width: 28vmax; height: 28vmax; left: 40%; top: 30%; background: #4dffd9; opacity: 0.14; animation: orbC 26s ease-in-out infinite alternate; }

@keyframes orbA { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes orbB { to { transform: translate(-16vmax, -10vmax) scale(1.2); } }
@keyframes orbC { to { transform: translate(-14vmax, 8vmax) scale(0.8); } }

.bg-grid {
  position: absolute;
  inset: -60px;
  background-image:
    linear-gradient(rgba(0, 198, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 198, 230, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  filter: blur(0.6px);
  animation: gridMove 14s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

@keyframes gridMove { to { transform: translate(60px, 60px); } }

/* ── GLASS PANEL ── */
.glass {
  position: relative;
  padding: clamp(10px, 2vh, 18px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(0, 198, 230, 0.07) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 198, 230, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 198, 230, 0.15),
    inset 0 0 40px rgba(0, 198, 230, 0.05);
  overflow: hidden;
}

/* moving light sheen across the glass */
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  animation: glassSheen 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glassSheen {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .bg-grid, .glass::before { animation: none; }
}

/* ── SCENE: new technician + dual monitors ── */
.tech-svg .mon {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.tech-scene:hover .mon {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 7px rgba(0, 198, 230, 0.55));
}

.tech-scene:hover .tech-arm-l,
.tech-scene:hover .tech-arm-r {
  animation-duration: 0.18s;
}

.eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.5s infinite;
}

@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
}

.tdot { animation: tdot 1.2s ease-in-out infinite; }
.td2 { animation-delay: 0.2s; }
.td3 { animation-delay: 0.4s; }

@keyframes tdot {
  0%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.prog-fill {
  transform-box: fill-box;
  transform-origin: left center;
  animation: progFill 5s ease-in-out infinite;
}

@keyframes progFill {
  0% { transform: scaleX(0.05); }
  70%, 90% { transform: scaleX(1); }
  100% { transform: scaleX(0.05); }
}

.remote-cursor {
  animation: cursorMove 6s ease-in-out infinite;
}

@keyframes cursorMove {
  0%, 100% { transform: translate(330px, 108px); }
  30% { transform: translate(300px, 124px); }
  55% { transform: translate(342px, 120px); }
  80% { transform: translate(282px, 112px); }
}

@media (prefers-reduced-motion: reduce) {
  .eyes, .tdot, .prog-fill, .remote-cursor { animation: none; }
}

/* cursor path now lives in the monitor's local coordinates */
@keyframes cursorMove {
  0%, 100% { transform: translate(72px, 12px); }
  30% { transform: translate(40px, 36px); }
  55% { transform: translate(78px, 30px); }
  80% { transform: translate(18px, 20px); }
}
