


body::before{
    content: "";
    position: fixed;
    inset: 0;

    background-image: url('imagenes/arjentina.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.9;

    z-index: -1;
}




/* Contenedor centralizado */
.contenedor-encendido {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 50px auto;
}

/* Estilos base del botón redondo */
.btn-power {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* Lo hace perfectamente circular */
    background-color: #2c3e50; /* Color apagado por defecto */
    border: 4px solid #34495e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transición elástica profesional */

    /* Activamos la animación de pulso infinito desde el inicio */
    animation: pulso-atencion 2s infinite; 
}

/* Estilos del dibujo interno SVG */
.icono-power {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #ffffff; /* Línea blanca por defecto */
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke 0.4s ease;
}

/* ==========================================
   🔥 LA ANIMACIÓN QUE INCITA A PRESIONAR (PULSO)
   ========================================== */
@keyframes pulso-atencion {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(44, 62, 80, 0.7);
    }
    70% {
        transform: scale(1.05); /* Crece sutilmente */
        box-shadow: 0 0 0 20px rgba(44, 62, 80, 0); /* Desvanece una onda de sombra hacia afuera */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(44, 62, 80, 0);
    }
}

/* ==========================================
   🟢 ESTADO ENCENDIDO (Se activa con JS)
   ========================================== */
.btn-power.on {
    background-color: #2ecc71; /* Verde brillante */
    border-color: #27ae60;
    /* Cambiamos la animación de pulso a una que brille intensamente en verde */
    animation: pulso-encendido 1.5s infinite;
}

.btn-power.on .icono-power {
    stroke: #ffffff;
    filter: drop-shadow(0px 0px 4px rgba(255,255,255,0.8)); /* Resplandor interno */
}

/* Animación de pulso verde brillante para cuando ya está encendido */
@keyframes pulso-encendido {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Texto indicador */
.texto-power {
    font-weight: bold;
    color: #ffffff;
    transition: color 0.4s;
}
.texto-power.on {
    color: #27ae60;
}