/* Contenedor del Hero Slide */
.hero-hmi-slide-1 {
    position: relative;
    width: 100%;
    height: 80vh;
    background-color: #050810;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    font-family: 'Courier New', Courier, monospace;
}

/* Grilla de fondo estilo plano técnico */
.hero-hmi-slide-1 .tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Textos principales */
.hero-hmi-slide-1 .hero-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.hero-hmi-slide-1 .hero-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.hero-hmi-slide-1 .hero-title .highlight {
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hero-hmi-slide-1 .hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.hero-hmi-slide-1 .btn-tech {
    padding: 15px 30px;
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.2);
}

.hero-hmi-slide-1 .btn-tech:hover {
    background: #00d4ff;
    color: #000;
    box-shadow: 0 0 20px #00d4ff;
}

/* --- ANIMACIÓN DE RED SCADA --- */
.hero-hmi-slide-1 .network-animation {
    position: relative;
    width: 500px;
    height: 500px;
    z-index: 5;
}

/* El Nodo Central (Core) */
.hero-hmi-slide-1 .core-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: #0f172a;
    border: 3px solid #00d4ff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    z-index: 3;
}

.hero-hmi-slide-1 .core-text {
    color: #00d4ff;
    font-weight: bold;
}

/* El pulso del servidor central */
.hero-hmi-slide-1 .core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #00d4ff;
    border-radius: 10px;
    animation: corePulse 2s infinite ease-out;
}

@keyframes corePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Nodos Periféricos (Sensores) */
.hero-hmi-slide-1 .node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #1e293b;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-hmi-slide-1 .node-1 {
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.hero-hmi-slide-1 .node-2 {
    top: 30%;
    left: 80%;
    transform: translate(-50%, -50%);
}

.hero-hmi-slide-1 .node-3 {
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-hmi-slide-1 .node-label {
    position: absolute;
    bottom: -25px;
    color: #94a3b8;
    font-size: 12px;
}

/* Conexiones Vectoriales (SVG) */
.hero-hmi-slide-1 .connections {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.hero-hmi-slide-1 .line-link {
    stroke: rgba(0, 212, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -1000;
    }
}