/* Contenedor principal del SCADA */
.scada-section {
    background-color: #0b0f19;
    padding: 60px 0;
    font-family: 'Courier New', Courier, monospace;
    padding-bottom: 100px;
}

.scada-section .scada-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    background: #1a2235;
    border: 2px solid #334155;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    flex-wrap: wrap;
}

/* --- EL TANQUE --- */
.scada-section .tank-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scada-section .tank-label {
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.scada-section .tank {
    width: 120px;
    height: 180px;
    border: 4px solid #94a3b8;
    border-top: none;
    border-radius: 0 0 10px 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Animación del líquido llenándose */
.scada-section .liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #00d4ff, #0077ff);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: fillTank 6s infinite alternate ease-in-out;
}

@keyframes fillTank {
    0% {
        height: 10%;
    }

    100% {
        height: 85%;
    }
}

/* --- TUBERÍA Y FLUJO --- */
.scada-section .scada-process {
    display: flex;
    align-items: flex-end;
}

.scada-section .pipe-horizontal {
    width: 100px;
    height: 20px;
    background: #64748b;
    margin-bottom: 20px;
    border-top: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
}

.scada-section .flow-arrow {
    animation: moveFlow 2s linear infinite;
}

@keyframes moveFlow {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

/* --- LA BOMBA / MOTOR --- */
.scada-section .pump-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scada-section .pump-label {
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.scada-section .pump {
    width: 60px;
    height: 60px;
    background: #334155;
    border: 3px solid #94a3b8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #00d4ff;
}

.scada-section .pump-blade {
    animation: spinMotor 1s linear infinite;
}

@keyframes spinMotor {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- PANEL DE CONTROL Y LUCES --- */
.scada-section .control-panel {
    background: #0f172a;
    border: 2px solid #475569;
    padding: 20px;
    border-radius: 8px;
    width: 250px;
}

.scada-section .panel-title {
    color: #94a3b8;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.scada-section .indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #e2e8f0;
    font-size: 14px;
}

.scada-section .light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #333;
}

.scada-section .green-light {
    background: #22c55e;
    box-shadow: 0 0 15px #22c55e;
}

.scada-section .yellow-light {
    background: #eab308;
    animation: blinkYellow 1s infinite;
}

.scada-section .red-light {
    background: #880000;
}

@keyframes blinkYellow {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 15px #eab308;
    }

    50% {
        opacity: 0.3;
        box-shadow: none;
    }
}

.scada-section .data-box {
    background: #1e293b;
    padding: 10px;
    margin-top: 10px;
    color: #cbd5e1;
    border: 1px inset #334155;
    font-size: 14px;
}

.scada-section .data-value {
    color: #00d4ff;
    font-weight: bold;
    float: right;
}

.scada-section .pulse-text {
    animation: pulseText 3s infinite alternate;
}

@keyframes pulseText {
    0% {
        color: #00d4ff;
    }

    100% {
        color: #22c55e;
    }
}