/* =========================================
   SCADA: CALDERA INDUSTRIAL (Boiler)
========================================= */
.boiler-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    /* Espacio para el tubo de vapor */
}

.boiler-label {
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: #334155;
    padding: 2px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* El cuerpo metálico de la caldera */
.boiler-tank {
    width: 160px;
    height: 200px;
    background: #1e293b;
    /* Metal oscuro */
    border: 6px solid #475569;
    border-radius: 30px 30px 10px 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Nivel de agua interno */
.boiler-water {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 62%;
    /* Coincide con el texto del panel */
    background: rgba(14, 165, 233, 0.3);
    /* Azul transparente */
    border-top: 2px dashed #0ea5e9;
    z-index: 1;
}

/* Contenedor del quemador */
.boiler-fire {
    position: absolute;
    bottom: -5px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: flex-end;
    z-index: 2;
    background: radial-gradient(circle at bottom, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
}

/* Llamas de fuego animadas */
.flame {
    width: 18px;
    height: 25px;
    background: #ef4444;
    /* Rojo fuego */
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 20px #f97316, inset 0 0 8px #fbbf24;
    animation: burn 0.4s infinite alternate;
}

.center-flame {
    height: 38px;
    background: #f97316;
    /* Naranja intenso al centro */
    animation-delay: 0.2s;
    /* Desfase para que el fuego parezca real */
}

@keyframes burn {
    0% {
        transform: scaleY(0.85) translateY(2px);
        opacity: 0.8;
    }

    100% {
        transform: scaleY(1.15) translateY(-3px);
        opacity: 1;
        background: #fbd38d;
    }
}

/* Tubo de escape de vapor */
.steam-pipe {
    position: absolute;
    top: 0;
    width: 24px;
    height: 40px;
    background: #475569;
    border: 2px solid #334155;
    border-bottom: none;
    z-index: 1;
    overflow: hidden;
}

/* Animación del vapor subiendo por el tubo */
.steam-flow {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    margin: 0 auto;
    border-radius: 50%;
    filter: blur(2px);
    animation: steamRise 1.2s infinite linear;
}

.delay-steam {
    animation-delay: 0.6s;
}

@keyframes steamRise {
    0% {
        transform: translateY(40px) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10px) scale(2);
        opacity: 0;
    }
}

.control-panel {
    width: 310px !important;
    max-width: 100%;
    /* Protección de seguridad para teléfonos muy pequeños */
}