/* ==========================================================================
   BIBLIOTECA INDUSTRIAL AVANZADA DE ASSETS SCADA VECTORIALES
   Procesos Industriales, Termodinámica, Refrigeración, Hornos y Actuadores
   Animaciones GPU Vectoriales a 60 FPS, Paramétricas y Ultra-Livianas
   ========================================================================== */

.scada-asset-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

/* 1. SILO / TANQUE DE ALMACENAMIENTO */
.scada-silo-container {
  position: relative;
  width: 120px;
  height: 180px;
  border: 3px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px 12px 24px 24px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scada-silo-fluid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.scada-silo-wave {
  position: absolute;
  top: -6px;
  left: 0;
  width: 200%;
  height: 12px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 30%, transparent 70%);
  animation: scadaWave 2.5s infinite linear;
}

.scada-silo-scale {
  position: absolute;
  top: 10px;
  right: 6px;
  bottom: 10px;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 0.625rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* 2. BANDA TRANSPORTADORA */
.scada-conveyor-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 60px;
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}

.scada-conveyor-belt {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 4px dashed #64748b;
  border-radius: 24px;
}

.scada-conveyor-belt.running {
  animation: scadaBeltMove 1.2s infinite linear;
}

.scada-conveyor-roller {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #94a3b8 30%, #334155 70%);
  border: 2px solid #0f172a;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scada-conveyor-roller.running {
  animation: scadaSpin 1.2s infinite linear;
}

/* 3. TURBINA / EXTRACTOR INDUSTRIAL */
.scada-fan-housing {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  border: 4px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 0 10px rgba(0,0,0,0.8);
}

.scada-fan-blades {
  width: 90px;
  height: 90px;
  transition: transform 0.1s linear;
}

.scada-fan-blades.running {
  animation: scadaSpin 0.6s infinite linear;
}

.scada-fan-center {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #cbd5e1;
  border: 2px solid #334155;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* 4. MOTOR TRIFÁSICO INDUSTRIAL CON EJE GIRATORIO */
.scada-motor-housing {
  width: 160px;
  height: 110px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 70%, #0f172a 100%);
  border: 2px solid #64748b;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

.scada-motor-fins {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  right: 45px;
  background: repeating-linear-gradient(90deg, #334155, #334155 4px, #1e293b 4px, #1e293b 10px);
  border-radius: 4px;
  border: 1px solid #475569;
}

.scada-motor-shaft {
  position: absolute;
  right: -18px;
  width: 20px;
  height: 20px;
  background: linear-gradient(180deg, #cbd5e1 0%, #64748b 100%);
  border-radius: 50%;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 3;
}

.scada-motor-shaft.running {
  animation: scadaSpin 0.3s infinite linear;
}

/* 5. QUEMADOR INDUSTRIAL / LLAMA DE COMBUSTIÓN (BURNER) */
.scada-burner-box {
  width: 140px;
  height: 150px;
  background: #0f172a;
  border: 3px solid #334155;
  border-radius: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 15px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  overflow: hidden;
}

.scada-flame-core {
  width: 46px;
  height: 70px;
  background: radial-gradient(ellipse at bottom, #ffffff 10%, #facc15 35%, #f97316 65%, #ef4444 90%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  filter: drop-shadow(0 0 15px #f97316);
  transform-origin: bottom center;
  transition: all 0.3s ease;
}

.scada-flame-core.active {
  animation: scadaFlameFlicker 0.4s infinite alternate ease-in-out;
}

.scada-flame-core.off {
  opacity: 0;
  height: 0;
}

/* 6. HORNO INDUSTRIAL DE ALTA TEMPERATURA */
.scada-oven-chamber {
  width: 170px;
  height: 140px;
  background: #18181b;
  border: 4px solid #3f3f46;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.9);
}

.scada-oven-glow {
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.7) 0%, rgba(249, 115, 22, 0.4) 50%, transparent 85%);
  transition: opacity 0.5s ease;
}

.scada-oven-resistor {
  width: 80%;
  height: 70%;
  border: 3px dashed #ef4444;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 0 10px #ef4444;
  animation: scadaGlowPulse 1.5s infinite alternate ease-in-out;
}

/* 7. SERPENTÍN / INTERCAMBIADOR DE CALOR (HEAT EXCHANGER COIL) */
.scada-coil-container {
  width: 160px;
  height: 120px;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.scada-coil-path {
  width: 100%;
  height: 100%;
}

/* 8. CÁMARA DE REFRIGERACIÓN / COMPRESOR FRIGORÍFICO */
.scada-fridge-chamber {
  width: 160px;
  height: 140px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, rgba(3, 105, 161, 0.3) 100%);
  border: 3px solid #0284c7;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.3), inset 0 0 15px rgba(56, 189, 248, 0.2);
}

.scada-frost-icon {
  font-size: 2.25rem;
  filter: drop-shadow(0 0 8px #38bdf8);
}

.scada-frost-icon.freezing {
  animation: scadaFrostPulse 2s infinite ease-in-out;
}

/* 9. PARADA DE EMERGENCIA TIPO HONGO */
.scada-estop-body {
  width: 90px;
  height: 90px;
  background: #facc15;
  border-radius: 16px;
  border: 3px solid #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 0 #a16207, 0 10px 15px rgba(0,0,0,0.4);
  transition: all 0.1s ease;
  user-select: none;
}

.scada-estop-body:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #a16207, 0 4px 8px rgba(0,0,0,0.4);
}

.scada-estop-mushroom {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 35% 35%, #ef4444 0%, #b91c1c 70%, #7f1d1d 100%);
  border-radius: 50%;
  border: 2px solid #7f1d1d;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 8px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.scada-estop-body.tripped .scada-estop-mushroom {
  background: radial-gradient(circle at 50% 50%, #7f1d1d 0%, #450a0a 100%);
  transform: scale(0.92);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.9);
}

/* 10. INTERRUPTOR DE PALANCA HEAVY-DUTY */
.scada-toggle-switch {
  width: 70px;
  height: 120px;
  background: #1e293b;
  border: 3px solid #64748b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  cursor: pointer;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 4px 8px rgba(0,0,0,0.3);
  position: relative;
}

.scada-toggle-lever {
  width: 14px;
  height: 50px;
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 50%, #475569 100%);
  border-radius: 7px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.6);
  transform-origin: bottom center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scada-toggle-switch.on .scada-toggle-lever {
  transform: rotate(-25deg);
}

.scada-toggle-switch.off .scada-toggle-lever {
  transform: rotate(25deg);
}

.scada-toggle-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #334155;
  box-shadow: none;
  transition: all 0.2s ease;
}

.scada-toggle-switch.on .scada-toggle-led {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e;
}

/* 11. TUBERÍA CON VÁLVULA SOLENOIDE */
.scada-pipe-assembly {
  width: 100%;
  max-width: 260px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scada-pipe-tube {
  width: 100%;
  height: 20px;
  background: linear-gradient(180deg, #64748b 0%, #334155 50%, #1e293b 100%);
  border: 1px solid #475569;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.scada-pipe-flow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(56, 189, 248, 0.6) 15px, rgba(56, 189, 248, 0.6) 30px);
}

.scada-pipe-flow.flowing {
  animation: scadaFlow 0.8s infinite linear;
}

.scada-valve-body {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #ea580c;
  border: 2px solid #9a3412;
  border-radius: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.scada-valve-body.open {
  background: #16a34a;
  border-color: #15803d;
}

/* Animaciones GPU */
@keyframes scadaSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scadaBeltMove {
  0% { background-position: 0 0; }
  100% { background-position: 30px 0; }
}

@keyframes scadaFlow {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(0); }
}

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

@keyframes scadaFlameFlicker {
  0% { transform: scaleY(0.9) scaleX(0.95); opacity: 0.9; }
  50% { transform: scaleY(1.1) scaleX(1.05) skewX(2deg); opacity: 1; }
  100% { transform: scaleY(0.95) scaleX(0.98) skewX(-2deg); opacity: 0.95; }
}

@keyframes scadaGlowPulse {
  0% { opacity: 0.6; box-shadow: 0 0 10px #ef4444; }
  100% { opacity: 1; box-shadow: 0 0 25px #f97316; }
}

@keyframes scadaFrostPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 12px #38bdf8); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ==========================================================================
   NUEVOS ACTIVOS VECTORIALES: MEDICINA, LUCES, HOTELES, CASAS & ENERGÍA
   ========================================================================== */

/* 1. MONITOR MÉDICO HOSPITALARIO (ECG) */
.scada-med-monitor {
  width: 220px;
  background: #020617;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.scada-med-monitor.med-alarm {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.med-monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--landing-mono);
  font-size: 0.5625rem;
  color: #94a3b8;
  margin-bottom: 6px;
}
.med-status-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}
.med-status-badge.badge-ok { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.med-status-badge.badge-danger { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.med-ecg-screen {
  position: relative;
  height: 60px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  overflow: hidden;
}
.med-ecg-svg {
  width: 100%;
  height: 100%;
}
.med-ecg-sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.4) 50%, #10b981 100%);
  animation: ecgSweep 2s infinite linear;
}
@keyframes ecgSweep {
  0% { left: -20px; }
  100% { left: 100%; }
}
.med-vitals-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.med-vital-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px;
  text-align: center;
  font-family: var(--landing-mono);
}
.vital-label { font-size: 0.5rem; color: #94a3b8; display: block; }
.vital-val { font-size: 0.9375rem; font-weight: 900; }
.vital-hr .vital-val { color: #10b981; }
.vital-spo2 .vital-val { color: #00f0ff; }
.vital-temp .vital-val { color: #f59e0b; }

/* 2. BOMBA DE INFUSIÓN MÉDICA */
.scada-med-pump {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pump-reservoir {
  width: 36px;
  height: 90px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px 6px 14px 14px;
  position: relative;
  overflow: hidden;
}
.pump-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.6) 0%, rgba(3, 105, 161, 0.8) 100%);
}
.pump-device-body {
  width: 140px;
  background: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}
.pump-roller {
  width: 32px;
  height: 32px;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  margin: 6px auto 0;
  position: relative;
}
.pump-roller.rolling { animation: scadaSpin 1.5s infinite linear; }
.roller-spoke {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: #38bdf8;
  transform: translateY(-50%);
}
.roller-spoke.r-2 { transform: translateY(-50%) rotate(90deg); }

/* 3. LUMINARIA INTELIGENTE DALI */
.scada-light-fixture {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  height: 120px;
}
.light-mount {
  width: 40px;
  height: 6px;
  background: #475569;
  border-radius: 3px;
}
.light-pendant {
  width: 3px;
  height: 24px;
  background: #64748b;
}
.light-head {
  width: 60px;
  height: 24px;
  background: #1e293b;
  border-radius: 12px 12px 6px 6px;
  border: 1px solid #475569;
  position: relative;
}
.light-head.light-on {
  box-shadow: 0 0 25px var(--light-glow-color);
  border-color: var(--light-glow-color);
}
.light-beam {
  position: absolute;
  top: 24px;
  left: -20px;
  right: -20px;
  height: 65px;
  background: radial-gradient(ellipse at 50% 0%, var(--light-glow-color, #fef08a) 0%, transparent 70%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 4. CERRADURA HOTELERA */
.scada-hotel-lock {
  display: flex;
  align-items: center;
  position: relative;
}
.lock-plate {
  width: 60px;
  height: 120px;
  background: linear-gradient(145deg, #334155 0%, #0f172a 100%);
  border: 2px solid #64748b;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}
.lock-rfid-pad {
  font-size: 1.25rem;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  padding: 4px 8px;
}
.lock-handle-pivot {
  position: relative;
  width: 14px;
  height: 14px;
  background: #94a3b8;
  border-radius: 50%;
}
.lock-handle {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 44px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 4px;
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.lock-handle.handle-down { transform: rotate(35deg); }
.lock-indicator-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lock-indicator-led.led-green { background: #10b981; box-shadow: 0 0 10px #10b981; }
.lock-indicator-led.led-red { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.lock-bolt {
  width: 18px;
  height: 14px;
  background: #cbd5e1;
  border: 1px solid #475569;
  transition: transform 0.3s ease;
}
.lock-bolt.bolt-extended { transform: translateX(0); }
.lock-bolt.bolt-retracted { transform: translateX(-14px); }

/* 5. PANEL TÁCTIL HUÉSPED */
.scada-glass-panel {
  width: 160px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.glass-room-number {
  font-family: var(--landing-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.glass-btn-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.glass-touch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
}
.glass-touch-btn.btn-active-dnd {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}
.glass-touch-btn.btn-active-mur {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}
.glass-thermo-mini {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 6px;
}

/* 6. TERMOSTATO DOMÓTICO DIAL */
.scada-dial-thermostat {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle, #1e293b 0%, #020617 100%);
  border: 3px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
}
.scada-dial-thermostat.mode-heat { border-color: #f97316; box-shadow: 0 0 25px rgba(249, 115, 22, 0.4); }
.scada-dial-thermostat.mode-cool { border-color: #00f0ff; box-shadow: 0 0 25px rgba(0, 240, 255, 0.4); }
.thermostat-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.thermostat-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.thermo-current { font-size: 0.5625rem; font-family: var(--landing-mono); color: #94a3b8; }
.thermo-target { font-size: 2rem; font-weight: 900; color: #ffffff; font-family: var(--landing-mono); line-height: 1; margin: 4px 0; }
.thermo-mode-badge { font-size: 0.5rem; font-weight: 800; color: #a5b4fc; }

/* 7. PERSIANAS MOTORIZADAS */
.scada-window-frame {
  width: 130px;
  height: 140px;
  background: #020617;
  border: 4px solid #334155;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.window-sunlight {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fef08a 0%, #38bdf8 100%);
  transition: opacity 0.4s ease;
}
.blinds-motor-housing {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background: #1e293b;
  border-bottom: 2px solid #475569;
  z-index: 2;
}
.blinds-slats-container {
  position: absolute;
  top: 14px; left: 0; right: 0;
  background: rgba(30, 41, 59, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-bottom: 3px solid #cbd5e1;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.blind-slat {
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin: 1px 4px;
}

/* 8. GENERADOR DIÉSEL */
.scada-genset-container {
  width: 170px;
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.scada-genset-container.gen-running {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}
.genset-chassis {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.genset-alternator-rotor {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.genset-alternator-rotor.spinning { animation: scadaSpin 1s infinite linear; }
.genset-fuel-bar {
  position: relative;
  height: 14px;
  background: #020617;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #475569;
}
.fuel-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 40%, #10b981 100%);
}
.fuel-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--landing-mono);
  font-size: 0.5625rem;
  font-weight: 800;
  color: #ffffff;
}

/* 9. PARQUE SOLAR */
.scada-solar-array {
  width: 160px;
  background: #0b1120;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 10px;
}
.solar-panels-bank {
  height: 70px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border: 2px solid #3b82f6;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.solar-cell {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 3px;
}
.solar-glare {
  position: absolute;
  top: -20px; left: -20px;
  width: 60px; height: 120px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(25deg);
}
.solar-glare.glare-pulse { animation: solarGlareMove 3s infinite ease-in-out; }
@keyframes solarGlareMove {
  0% { left: -60px; }
  100% { left: 180px; }
}

/* 10. RIEGO PIVOT */
.scada-pivot-field {
  width: 160px;
  background: #020617;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 10px;
  position: relative;
}
.crop-row {
  display: flex;
  justify-content: space-around;
  font-size: 1.25rem;
  margin: 6px 0;
}
.pivot-arm.spraying .spray-stream {
  height: 12px;
  background: repeating-linear-gradient(90deg, #38bdf8 0, #38bdf8 4px, transparent 4px, transparent 8px);
  animation: sprayAnim 0.8s infinite linear;
}
@keyframes sprayAnim {
  0% { transform: translateY(0); opacity: 0.8; }
  100% { transform: translateY(4px); opacity: 0.2; }
}
.moisture-badge-overlay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  color: #a7f3d0;
  margin-top: 8px;
}

/* 11. REACTOR QUÍMICO */
.scada-reactor-vessel {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reactor-top-motor {
  width: 36px;
  height: 20px;
  background: #475569;
  border-radius: 4px 4px 0 0;
}
.reactor-body-tank {
  position: relative;
  width: 110px;
  height: 110px;
  background: rgba(15, 23, 42, 0.8);
  border: 3px solid #00f0ff;
  border-radius: 12px 12px 24px 24px;
  overflow: hidden;
}
.reactor-liquid-chem {
  position: absolute;
  inset: 20px 0 0 0;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.5) 0%, rgba(20, 184, 166, 0.8) 100%);
}
.chem-bubble {
  position: absolute;
  width: 6px; height: 6px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.6;
  animation: bubbleRise 2s infinite ease-in;
}
.b-1 { left: 20%; animation-delay: 0.2s; }
.b-2 { left: 50%; animation-delay: 0.8s; }
.b-3 { left: 80%; animation-delay: 1.4s; }
@keyframes bubbleRise {
  0% { bottom: 0; transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.8; }
  100% { bottom: 80px; transform: scale(1.2); opacity: 0; }
}
.stirrer-shaft {
  position: absolute;
  top: 0; bottom: 10px; left: 50%;
  width: 3px;
  background: #cbd5e1;
  transform: translateX(-50%);
}
.stirrer-impeller {
  position: absolute;
  bottom: 0; left: -14px;
  width: 30px; height: 8px;
  background: #cbd5e1;
  border-radius: 4px;
}
.stirrer-impeller.spinning { animation: scadaSpin 0.5s infinite linear; }
.reactor-params-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
}

/* 12. PASTEURIZADOR LÁCTEO */
.scada-dairy-tank {
  width: 140px;
  background: #0f172a;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 8px;
  text-align: center;
}
.cip-tag {
  font-family: var(--landing-mono);
  font-size: 0.5rem;
  font-weight: 800;
  color: #10b981;
}
.dairy-tank-body {
  height: 80px;
  background: #ffffff;
  border-radius: 8px;
  margin: 6px 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}
.dairy-milk-fluid {
  position: absolute;
  inset: 10px;
  background: #f8fafc;
  border-radius: 6px;
}

/* 13. VELOCÍMETRO TELEMÁTICA */
.scada-speedo-gauge {
  width: 160px;
  background: #020617;
  border: 2px solid #6366f1;
  border-radius: 50% 50% 16px 16px;
  padding: 14px 10px 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
  text-align: center;
}
.scada-speedo-gauge.speed-overspeed {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}
.speedo-gnss-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.5625rem;
  color: #94a3b8;
  font-family: var(--landing-mono);
  margin-bottom: 6px;
}
.speedo-number-box {
  margin: 8px 0;
}
.speed-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--landing-mono);
  line-height: 1;
}
.speed-unit {
  font-size: 0.6875rem;
  color: #a5b4fc;
  font-weight: 800;
  display: block;
}

